MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / AnthropicThinking

Enum AnthropicThinking

crates/opencode-provider/src/anthropic.rs:272–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270#[derive(Debug, Serialize)]
271#[serde(tag = "type")]
272enum AnthropicThinking {
273 #[serde(rename = "enabled")]
274 Enabled {
275 #[serde(rename = "budget_tokens")]
276 budget_tokens: u64,
277 },
278}
279
280fn anthropic_thinking_config(variant: Option<&str>, max_tokens: u64) -> Option<AnthropicThinking> {
281 let variant = variant?.trim().to_ascii_lowercase();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected