agent_client_protocol/ext.rs
1//! Extension types and constants for protocol extensibility.
2
3use schemars::JsonSchema;
4use serde::{Deserialize, Serialize};
5use serde_json::value::RawValue;
6use std::sync::Arc;
7
8#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]
9#[serde(transparent)]
10#[schemars(with = "serde_json::Value")]
11pub struct ExtMethod {
12 #[serde(skip)] // this is used for routing, but when serializing we only want the params
13 pub method: Arc<str>,
14 pub params: Arc<RawValue>,
15}