MCP Resource • Rust AI Agent SDK
MCPResource: An MCP resource.
MCPResource
Defined in the MCP module.
Rust AI Agent SDK
An MCP resource.
Fields
| Name | Type | Description |
|---|---|---|
uri | String | Resource URI |
name | String | Resource name |
description | Option<String> | Resource description |
mime_type | Option<String> | MIME type |
Methods
new
fn new(uri: impl Into<String>, name: impl Into<String>) -> SelfCreate a new resource
Parameters:
| Name | Type |
|---|---|
uri | impl Into<String> |
name | impl Into<String> |
Source
View on GitHubpraisonai/src/mcp/mod.rs at line 359