Skip to main content

JsonObject

Type Alias JsonObject 

Source
pub type JsonObject<F = Value> = Map<String, F>;
Expand description

A JSON object type alias for convenient handling of JSON data.

You can use crate::object! or crate::model::object to create a json object quickly. This is commonly used for storing arbitrary JSON data in MCP messages.

Aliased Type§

pub struct JsonObject<F = Value> { /* private fields */ }

Trait Implementations§

Source§

impl<S> FromContextPart<ToolCallContext<'_, S>> for JsonObject

Available on crate feature server only.
Source§

fn from_context_part( context: &mut ToolCallContext<'_, S>, ) -> Result<Self, ErrorData>