objectiveai-sdk 2.0.11

ObjectiveAI SDK, definitions, and utilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
#[schemars(rename = "agent.openrouter.Continuation")]
pub struct Continuation {
    pub upstream: super::Upstream,
    pub messages: Vec<super::super::completions::message::Message>,
    pub mcp_sessions: indexmap::IndexMap<String, String>,
    /// Per-agent reverse-attach session id baked into this agent's
    /// `client_objectiveai_mcp` proxy URL path segment. Persisted
    /// across continuation resumes so the proxy URLs stored in
    /// `mcp_sessions` keep matching the registered WS reverse-attach
    /// route. `None` when this agent never used `client_objectiveai_mcp`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    #[schemars(extend("omitempty" = true))]
    pub ws_session_id: Option<String>,
}