factor_agent.llm#

Modules

anthropic

The Anthropic API backend: the Messages API through the anthropic SDK, its key from ANTHROPIC_API_KEY.

base

The one external seam: an LLM backend turns a request into a reply.

claude_code

The Claude Code backend: claude -p headless, JSON output, every tool off, the local login.

log

The LLM log: every call of a run, in full, one JSON file per call under llm_log/.

openai_compatible

The OpenAI-compatible backend: chat completions at any base_url (OpenAI, DeepSeek, DashScope, Gemini's compatible endpoint, a local vLLM or Ollama), the key from the environment variable the config names.

replay

The replay backend: a recorded run's replies served back, so a campaign reproduces without a provider.

scripted

A scripted backend: replies read from a file, in order.