MCP Resource • Rust AI Agent SDK

MCPResource: An MCP resource.

MCPResource

Defined in the MCP module.

Rust AI Agent SDK

An MCP resource.

Fields

NameTypeDescription
uriStringResource URI
nameStringResource name
descriptionOption<String>Resource description
mime_typeOption<String>MIME type

Methods

new

rust
fn new(uri: impl Into<String>, name: impl Into<String>) -> Self

Create a new resource

Parameters:

NameType
uriimpl Into&lt;String&gt;
nameimpl Into&lt;String&gt;

Source

View on GitHub

praisonai/src/mcp/mod.rs at line 359


Related Documentation