Compare the boundary your test needs
Keep the client request, response source and application assertion visible. Authored fixtures, provider recording and a selected replay are separate cases.
| Task | aimock (formerly llmock) | Gostly |
|---|---|---|
| Client boundary | Select a supported AI wire and client endpoint. The documented suite includes LLM providers, MCP tools/resources and other AI services. | Configure the supported HTTP service route for the selected application request. |
| Response preparation | Supply an authored fixture or review a response saved through HTTP record mode. | Capture a permitted HTTP exchange, review it, build the service library and confirm effective MOCK. |
| When a request misses | With a configured HTTP provider, record mode forwards misses and saves responses. Proxy-only forwards without saving; strict mode refuses misses before forwarding. | Define the intended match and miss cases. Inspect the selected response and client result rather than assuming a fallback. |
| Recording freshness | Recordings can include system/tool hashes for comparison on re-recording. These describe input metadata changes, not model-output quality. | Decide when to review or refresh the case and apply your application assertion after changing a relevant input. |
| Data and connections | HTTP recording excludes auth headers from saved fixtures, while response content remains. Selected upstream credentials may be forwarded. | Review captured content, library copies and configured connections before using or sharing the case. |
| License and setup | MIT-licensed repository. Configure the fixture source, client route and mode for the selected case. | Use the supported licensed stack with a Gostly account and license key. |
Fixtures, provider forwarding and freshness
The current project is aimock, formerly llmock. Its documented suite extends beyond LLM calls to MCP and other AI services. Select the supported wire your client needs; authored fixtures and reviewed recordings give you different ways to prepare a response. Matching controls include messages, turns and tool results.
In HTTP record mode, a fixture miss forwards to the configured provider and the response is saved. Proxy-only mode forwards without saving. Strict mode refuses misses before provider forwarding. Keep these choices separate when checking the connection your test actually uses.
The recording documentation describes saved system/tool hashes and comparison on re-recording. That can identify changes in the recorded input metadata; it does not judge model-output quality or establish that a whole agent still behaves correctly. Apply your application assertion after changing a relevant prompt or tool input.
HTTP auth headers are excluded from saved aimock fixtures, but response content remains and selected upstream credentials may be forwarded. Remote fixture loading is also documented. Review sensitive fixture content, retained copies and actual connections; those configuration choices do not imply that every mode stays offline.
Choose the response your test needs
An authored aimock fixture can describe a selected text or tool-call response for a supported client wire. Its Chat Completions guide includes JSON and SSE examples. Check that your client receives and handles the response you intended.
For a streaming case: You need streaming replay that approximates the provider’s token timing. aimock documents an approximation of time to first token and average pace; chunk counts can differ. Verify the timing and parsing your own client requires.
For the Gostly HTTP workflow, capture a permitted exchange, review and build the service library, configure the service route and confirm effective MOCK. Your caller's assertion determines whether the selected response produces the intended application result. A replayed HTTP response does not establish a whole agent's outcome.
License and setup
The aimock repository is MIT-licensed. Choose the fixture source, supported client endpoint and recording/replay mode for your case; review any configured provider connection.
The Gostly workflow here uses the supported licensed stack, a Gostly account and license key. Complete the library build and confirm the service's effective MOCK mode before applying your application assertion.
Prepare your evaluation
Choose one nonproduction request and an application assertion, such as a tool argument or rendered result.
- Configure the caller. Select the supported endpoint and route before making the request. Supply an authored fixture or review an authorized recording.
- Distinguish nearby requests. Change a meaningful matching field and declare which request should select the intended response.
- Inspect a miss. Write down the expected miss behavior and observe it with the selected mode. Do not assume provider forwarding or its absence.
- Review freshness. Change a prompt or tool input, inspect the relevant recording metadata and apply the application assertion again. A saved response is not proof that the real provider's behavior is unchanged.
- Review what remains. Inspect the fixture/library and configured connections before sharing the case. Record accepted observations after running it.
This is a reader-authored evaluation plan, not an executed result. The Gostly path starts from the reviewed HTTP exchange; it does not describe a native aimock/llmock fixture import.
References
Read the project documentation
- Official aimock repositoryCurrent project identity, supported wires, matching and streaming timing.
- Project licenseMIT license for the repository.
- Project changelogPackage history; dated entries and Unreleased changes are separate.
- Record and replayHTTP forwarding modes, saved content and system/tool hash metadata.
- Supported AI service guidesDocumented suite beyond a single LLM cassette.
- Chat Completions fixturesAuthored text/tool responses and supported JSON/SSE wire examples.
- For AIExisting Gostly product background.