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

Enum AnnotationItem

crates/opencode-provider/src/responses.rs:682–699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

680#[derive(Debug, Clone, Serialize, Deserialize)]
681#[serde(tag = "type")]
682pub enum AnnotationItem {
683 #[serde(rename = "url_citation")]
684 UrlCitation { url: String, title: String },
685 #[serde(rename = "file_citation")]
686 FileCitation {
687 file_id: String,
688 #[serde(default)]
689 filename: Option<String>,
690 #[serde(default)]
691 index: Option<u64>,
692 #[serde(default)]
693 start_index: Option<u64>,
694 #[serde(default)]
695 end_index: Option<u64>,
696 #[serde(default)]
697 quote: Option<String>,
698 },
699}
700
701// ---------------------------------------------------------------------------
702// Streaming State Management

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected