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

Class AnthropicRequest

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

Source from the content-addressed store, hash-verified

243
244#[derive(Debug, Serialize)]
245struct AnthropicRequest {
246 model: String,
247 max_tokens: u64,
248 messages: Vec<AnthropicMessage>,
249 #[serde(skip_serializing_if = "Option::is_none")]
250 system: Option<String>,
251 #[serde(skip_serializing_if = "Option::is_none")]
252 stream: Option<bool>,
253 #[serde(skip_serializing_if = "Option::is_none")]
254 thinking: Option<AnthropicThinking>,
255}
256
257#[derive(Debug, Serialize)]
258struct AnthropicMessage {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected