MCP Content • Rust AI Agent SDK
MCPContent: MCP content types.
MCPContent
Defined in the MCP module.
Rust AI Agent SDK
MCP content types.
Fields
| Name | Type | Description |
|---|---|---|
Text | variant | – |
content | variant | – |
Text | variant | Text content |
text | variant | Text content |
String | variant | Text content |
Methods
text
fn text(text: impl Into<String>) -> SelfCreate text content
Parameters:
| Name | Type |
|---|---|
text | impl Into<String> |
image
fn image(data: impl Into<String>, mime_type: impl Into<String>) -> SelfCreate image content
Parameters:
| Name | Type |
|---|---|
data | impl Into<String> |
mime_type | impl Into<String> |
Source
View on GitHubpraisonai/src/mcp/mod.rs at line 0