agentle.mcp.models.call_tool_resultΒΆ

Call Tool Result module for MCP.

This module defines the CallToolResult class which represents the response from a tool invocation in the Model Control Protocol (MCP) system. It provides a structure for returning various content types (text, images, resources) along with metadata and error status from tool executions.

Functions

Field()

!!! abstract "Usage Documentation"

Classes

BaseModel()

Alias for pydantic.BaseModel.

CallToolResult(*[, metadata, isError])

The server's response to a tool call in the MCP system.

EmbeddedResource(*[, type, annotations])

The contents of a resource, embedded into a prompt or tool call result.

ImageContent(*, data, mimeType[, ...])

Image content for a message in the MCP system.

Sequence()

All the operations on a read-only sequence.

TextContent(*[, type, annotations])

Text content for a message in the MCP system.