Skip to main content

objectiveai_sdk/agent/mock/
continuation.rs

1use schemars::JsonSchema;
2use serde::{Deserialize, Serialize};
3
4#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
5#[schemars(rename = "agent.mock.Continuation")]
6pub struct Continuation {
7    pub upstream: super::Upstream,
8    /// Full slash-separated lineage of the agent this continuation
9    /// belongs to (e.g. `A/B/agtcpl-<uuid>-<created>`). Minted on the
10    /// agent's first spawn and preserved verbatim across every
11    /// continuation round so the agent's identity stays stable
12    /// regardless of who resumes the conversation.
13    pub agent_instance_hierarchy: String,
14    pub messages: Vec<super::super::completions::message::Message>,
15    pub mcp_sessions: indexmap::IndexMap<String, String>,
16}