1.6 LLM Mocks

Videos in module 1.6 LLM Mocks of A²D Cloud.

7 videos

1.6 LLM MocksIntro

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 →
1.6 LLM MocksFeature

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 →
1.6 LLM MocksFeature

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 →
1.6 LLM MocksFeature

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 →
1.6 LLM MocksFeature

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 →
1.6 LLM MocksFeature

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 →
1.6 LLM MocksTutorial

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


Every video links to its written documentation page.