pub struct GetContextRequest {
pub messages: Vec<Message>,
pub tools: Option<Vec<Tool>>,
pub user: Option<UserInfo>,
pub max_tokens: Option<i32>,
pub client_context: Option<HashMap<String, Value>>,
}Expand description
The main request object sent from the MCP host to the agent.
Fields§
§messages: Vec<Message>§tools: Option<Vec<Tool>>§user: Option<UserInfo>§max_tokens: Option<i32>§client_context: Option<HashMap<String, Value>>Trait Implementations§
Source§impl Clone for GetContextRequest
impl Clone for GetContextRequest
Source§fn clone(&self) -> GetContextRequest
fn clone(&self) -> GetContextRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GetContextRequest
impl Debug for GetContextRequest
Source§impl<'de> Deserialize<'de> for GetContextRequest
impl<'de> Deserialize<'de> for GetContextRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GetContextRequest
impl RefUnwindSafe for GetContextRequest
impl Send for GetContextRequest
impl Sync for GetContextRequest
impl Unpin for GetContextRequest
impl UnwindSafe for GetContextRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more