Expand description
Contains all the data structures that represent the Model-Context-Protocol specification.
Structs§
- Function
Call - The details of a function call requested by the model.
- Function
Definition - The definition of a function, including its parameters.
- GetContext
Request - The main request object sent from the MCP host to the agent.
- GetContext
Response - 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.
- Partial
Response - Represents a part of a streamed response from the agent.
This is a wrapper around the standard
Responseobject, 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.
- Tool
Call - A request from the model to call a tool (a function).
- Tool
Input Schema - The JSON schema for a tool’s input parameters.
- Tool
Result - The result of a tool call, to be sent back to the model.
- User
Info - Information about the user interacting with the agent.
Enums§
- Role
- Represents the role of the entity creating a message.