factor_agent.llm.claude_code.ClaudeCodeBackend#
- class ClaudeCodeBackend(model, effort=None, executable='claude', timeout_seconds=900.0)[source]#
Bases:
objectComplete a request with one headless Claude Code call.
- Parameters:
- modelstr
The
--modelof every call.- effortstr, optional
The
--effortof every call; Claude Code’s default if None.- executablestr
The Claude Code command.
- timeout_secondsfloat
Seconds a call may take.
Methods#
The command line of every call; the prompt goes on stdin. |
|
Run the call and read its JSON reply. |
|
Build from a role's config: |
Attributes#
- ClaudeCodeBackend.OPTIONS = ('effort', 'executable', 'timeout_seconds')#
The options a role’s config may give besides
backendandmodel.