ClaudeCliBackend
LlmBackend for the Anthropic claude CLI.
Usage
ClaudeCliBackend()The default (no-arg) construction delivers the prompt over stdin with abstract model tiers and structured-output parsing. The cc_sentiment preset configures inline -p prompting with {is_error, result} envelope parsing.
Parameter Attributes
inline_system_prompt: str = ""verbose: bool = False
Attributes
models: dict[TModel, str]-
Mapping from abstract model size to a Claude model alias (
haiku/sonnet/opus). inline_system_prompt: str-
System prompt that build_argv passes via
--system-prompt. verbose: bool-
Whether build_argv appends
--verbose.
Example
ClaudeCliBackend().build_command(“haiku”, None, agent=False)[:5] [‘claude’, ‘-p’, ‘–no-session-persistence’, ‘–model’, ‘haiku’]