oa::network::mcp::McpToolResult

Result returned by a tool call handler.

StRust public API

Declaration

pub struct McpToolResult { pub text: String, pub structured_content_json: String, pub is_error: bool, }
Public Rust declaration.

Public Methods

fn clone(&self) -> McpToolResult
fn fmt(&self, f: &mut Formatter<'_>) -> Result

Associated Functions

pub fn success(text: impl Into<String>) -> Self
pub fn error(text: impl Into<String>) -> Self
fn default() -> McpToolResult

Public Data Members

textStringfield
structured_content_jsonStringfield
is_errorboolfield

Public Method Documentation

fn clone( &self ) -> McpToolResult
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
pub fn success( text: impl Into<String> ) -> Self
No public source comment is attached to this declaration.
pub fn error( text: impl Into<String> ) -> Self
No public source comment is attached to this declaration.
fn default() -> McpToolResult
No public source comment is attached to this declaration.