claude/client
Types
Values
pub fn new(api_key: String) -> Config
Create a new Config with sensible defaults.
Defaults:
- base_url: “https://api.anthropic.com”
- default_model: “claude-sonnet-4-5-20250929”
- default_max_tokens: 4096
pub fn with_max_tokens(config: Config, max_tokens: Int) -> Config
Set the default max tokens on the config.