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

Class AgentPart

crates/opencode-session/src/message_v2.rs:65–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63
64#[derive(Debug, Clone, Serialize, Deserialize)]
65pub struct AgentPart {
66 pub id: String,
67 pub session_id: String,
68 pub message_id: String,
69 pub name: String,
70 #[serde(skip_serializing_if = "Option::is_none")]
71 pub source: Option<AgentSource>,
72}
73
74#[derive(Debug, Clone, Serialize, Deserialize)]
75pub struct AgentSource {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected