Anthropic (LLM)
Anthropic (LLM)
Use Anthropic as the LLM (dialogue + reasoning) provider.
Setup
- Set
ANTHROPIC_API_KEY
# .env
ANTHROPIC_API_KEY=...
Example
from siphon.plugins import anthropic
llm = anthropic.LLM(
model="claude-3-5-sonnet-20241022",
temperature=0.3,
)
Common options
model(default:claude-3-5-sonnet-20241022)api_key(default:None)max_tokens(default:150)temperature(default:0.3)parallel_tool_calls(default:True)