Module types

Module types 

Source
Expand description

Contains all the data structures that represent the Model-Context-Protocol specification.

Structs§

FunctionCall
The details of a function call requested by the model.
FunctionDefinition
The definition of a function, including its parameters.
GetContextRequest
The main request object sent from the MCP host to the agent.
GetContextResponse
The final response object sent from the agent back to the MCP host in a non-streaming context.
Message
A single message in the conversation history.
PartialResponse
Represents a part of a streamed response from the agent. This is a wrapper around the standard Response object, allowing for incremental streaming.
Response
The response from an agent’s handler, which can contain content, tool calls, or tool results. This is the primary object that agent handlers should create and return.
Tool
A definition of a tool that the model can request to use.
ToolCall
A request from the model to call a tool (a function).
ToolInputSchema
The JSON schema for a tool’s input parameters.
ToolResult
The result of a tool call, to be sent back to the model.
UserInfo
Information about the user interacting with the agent.

Enums§

Role
Represents the role of the entity creating a message.