Cantrip.FakeLLM (Cantrip v1.3.3)

Copy Markdown View Source

Script deterministic LLM responses for tests and evals. Use this when you need runtime evidence without provider calls; it tests shape, not behavioral quality.

Deterministic llm used in tests.

Summary

Functions

Builds a response with a command in a proper bash tool call.

Builds a response with code in a proper elixir tool call.

Functions

bash_response(command)

Builds a response with a command in a proper bash tool call.

code_response(code)

Builds a response with code in a proper elixir tool call.

invocations(state)

new(responses, opts \\ [])