1.6 LLM Mocks
Videos in module 1.6 LLM Mocks of A²D Cloud.
7 videos
LLM mocks: deterministic models without an API key
What an LLM mock is: a fake model on the real provider API. Tour the Travel Assistant LLM, its scenarios and Connect tab, and call it twice to get the same answer.
Related docs →Create an OpenAI Chat Completions mock
Create an OpenAI mock with any-key auth, add a flight status scenario and a catch-all, try it in the Playground, and call Chat Completions and the models endpoint with a made-up key.
Related docs →Create an Anthropic Messages mock
Create an Anthropic mock with Claude model names, a header-triggered 529 overloaded error, a room scenario and the fallback, then call the Messages API.
Related docs →Scenarios and broker presets
Apply broker presets to drive an agent down each path: a tool call, then an answer from the tool output, and transient 429 and 503 errors switched on by a header.
Related docs →Streaming and API keys
Stream a mock answer token by token over server-sent events, set the chunk size and delay, and require a specific API key so a wrong one gets a 401.
Related docs →Connect a client to an LLM mock
Point curl, the OpenAI SDK or an agent config at the mock: swap the base URL, keep any key, and get the same answer twice.
Related docs →Tutorial: test an agent deterministically
Mock the planner model with the tool call, then answer preset, run the trip agent twice, generate one test per scenario, and run them in a Test Lab suite on the Mocking Service.
Related docs →Next Steps
- LLM Mocks — read the written documentation
- A²D Cloud videos — all modules in this area
Every video links to its written documentation page.