pub struct ToolResponse<T> {
pub artifact_id: ArtifactId,
pub mcp_execution_id: McpExecutionId,
pub artifact: T,
pub metadata: ExecutionMetadata,
}Fields§
§artifact_id: ArtifactId§mcp_execution_id: McpExecutionId§artifact: T§metadata: ExecutionMetadataImplementations§
Source§impl<T: Serialize + JsonSchema> ToolResponse<T>
impl<T: Serialize + JsonSchema> ToolResponse<T>
pub const fn new( artifact_id: ArtifactId, mcp_execution_id: McpExecutionId, artifact: T, metadata: ExecutionMetadata, ) -> Self
pub fn to_json(&self) -> Result<JsonValue, Error>
Source§impl<T: JsonSchema> ToolResponse<T>
impl<T: JsonSchema> ToolResponse<T>
Trait Implementations§
Source§impl<T: Clone> Clone for ToolResponse<T>
impl<T: Clone> Clone for ToolResponse<T>
Source§fn clone(&self) -> ToolResponse<T>
fn clone(&self) -> ToolResponse<T>
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<T: Debug> Debug for ToolResponse<T>
impl<T: Debug> Debug for ToolResponse<T>
Source§impl<'de, T> Deserialize<'de> for ToolResponse<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for ToolResponse<T>where
T: Deserialize<'de>,
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
Source§impl<T> JsonSchema for ToolResponse<T>where
T: JsonSchema,
impl<T> JsonSchema for ToolResponse<T>where
T: JsonSchema,
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl<T> Freeze for ToolResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for ToolResponse<T>where
T: RefUnwindSafe,
impl<T> Send for ToolResponse<T>where
T: Send,
impl<T> Sync for ToolResponse<T>where
T: Sync,
impl<T> Unpin for ToolResponse<T>where
T: Unpin,
impl<T> UnwindSafe for ToolResponse<T>where
T: UnwindSafe,
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