Documentation
¶
Overview ¶
Package claudecode adapts the Claude Code CLI (`claude`) into an inference backend.
The CLI is launched in headless print mode with every tool disabled, in an empty scratch directory, with a sanitized environment: agent2api uses it as a plain LLM, never as an agent that touches the machine.
Index ¶
Constants ¶
const ID = "claude-code"
ID is the adapter id used to namespace this backend's models.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter is the Claude Code backend.
func (*Adapter) EnforcesSchema ¶ added in v0.1.3
EnforcesSchema implements adapter.SchemaEnforcer. The CLI holds the answer to a caller's JSON Schema with `--json-schema`; an install too old for the flag says so, and the frontend refuses the request rather than returning JSON nobody checked.