Implement SEP-1319: Decouple Request Payload from RPC Methods (#617)

* feat: implement SEP-1319 Decouple Request Payload from RPC Methods

* test: update tests

* fix: update handler trait methods to use new types

* fix: update examples

* fix: correct deprecation version

* fix: update wrapper macros to use new *Params type names
This commit is contained in:
Dale Seo 2026-01-16 12:16:52 -05:00 • committed by GitHub
commit 9e881a645b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 913 additions and 278 deletions

View file

@ -187,10 +187,18 @@
"format": "const",
"const": "tools/call"
},
"CallToolRequestParam": {
"description": "Parameters for calling a tool provided by an MCP server.\n\nContains the tool name and optional arguments needed to execute\nthe tool operation.",
"CallToolRequestParams": {
"description": "Parameters for calling a tool provided by an MCP server.\n\nContains the tool name and optional arguments needed to execute\nthe tool operation.\n\nThis implements `TaskAugmentedRequestParamsMeta` as tool calls can be\nlong-running and may benefit from task-based execution.",
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"arguments": {
"description": "Arguments to pass to the tool (must match the tool's input schema)",
"type": [
@ -204,6 +212,7 @@
"type": "string"
},
"task": {
"description": "Task metadata for async task management (SEP-1319)",
"type": [
"object",
"null"
@ -220,9 +229,17 @@
"format": "const",
"const": "tasks/cancel"
},
"CancelTaskParam": {
"CancelTaskParams": {
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"taskId": {
"type": "string"
}
@ -332,9 +349,17 @@
"format": "const",
"const": "completion/complete"
},
"CompleteRequestParam": {
"CompleteRequestParams": {
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"argument": {
"$ref": "#/definitions/ArgumentInfo"
},
@ -534,10 +559,18 @@
"format": "const",
"const": "prompts/get"
},
"GetPromptRequestParam": {
"GetPromptRequestParams": {
"description": "Parameters for retrieving a specific prompt",
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"arguments": {
"type": [
"object",
@ -558,9 +591,17 @@
"format": "const",
"const": "tasks/get"
},
"GetTaskInfoParam": {
"GetTaskInfoParams": {
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"taskId": {
"type": "string"
}
@ -574,9 +615,17 @@
"format": "const",
"const": "tasks/result"
},
"GetTaskResultParam": {
"GetTaskResultParams": {
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"taskId": {
"type": "string"
}
@ -651,10 +700,18 @@
"version"
]
},
"InitializeRequestParam": {
"InitializeRequestParams": {
"description": "Parameters sent by a client when initializing a connection to an MCP server.\n\nThis contains the client's protocol version, capabilities, and implementation\ninformation, allowing the server to understand what the client supports.",
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"capabilities": {
"description": "The capabilities this client supports (sampling, roots, etc.)",
"allOf": [
@ -953,9 +1010,17 @@
}
]
},
"PaginatedRequestParam": {
"PaginatedRequestParams": {
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"cursor": {
"type": [
"string",
@ -1183,10 +1248,18 @@
"format": "const",
"const": "resources/read"
},
"ReadResourceRequestParam": {
"ReadResourceRequestParams": {
"description": "Parameters for reading a specific resource",
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"uri": {
"description": "The URI of the resource to read",
"type": "string"
@ -1242,7 +1315,7 @@
"$ref": "#/definitions/InitializeResultMethod"
},
"params": {
"$ref": "#/definitions/InitializeRequestParam"
"$ref": "#/definitions/InitializeRequestParams"
}
},
"required": [
@ -1258,7 +1331,7 @@
"$ref": "#/definitions/GetTaskResultMethod"
},
"params": {
"$ref": "#/definitions/GetTaskResultParam"
"$ref": "#/definitions/GetTaskResultParams"
}
},
"required": [
@ -1274,7 +1347,7 @@
"$ref": "#/definitions/CancelTaskMethod"
},
"params": {
"$ref": "#/definitions/CancelTaskParam"
"$ref": "#/definitions/CancelTaskParams"
}
},
"required": [
@ -1290,7 +1363,7 @@
"$ref": "#/definitions/CompleteRequestMethod"
},
"params": {
"$ref": "#/definitions/CompleteRequestParam"
"$ref": "#/definitions/CompleteRequestParams"
}
},
"required": [
@ -1306,7 +1379,7 @@
"$ref": "#/definitions/SetLevelRequestMethod"
},
"params": {
"$ref": "#/definitions/SetLevelRequestParam"
"$ref": "#/definitions/SetLevelRequestParams"
}
},
"required": [
@ -1322,7 +1395,7 @@
"$ref": "#/definitions/GetPromptRequestMethod"
},
"params": {
"$ref": "#/definitions/GetPromptRequestParam"
"$ref": "#/definitions/GetPromptRequestParams"
}
},
"required": [
@ -1338,7 +1411,7 @@
"$ref": "#/definitions/ReadResourceRequestMethod"
},
"params": {
"$ref": "#/definitions/ReadResourceRequestParam"
"$ref": "#/definitions/ReadResourceRequestParams"
}
},
"required": [
@ -1354,7 +1427,7 @@
"$ref": "#/definitions/SubscribeRequestMethod"
},
"params": {
"$ref": "#/definitions/SubscribeRequestParam"
"$ref": "#/definitions/SubscribeRequestParams"
}
},
"required": [
@ -1370,7 +1443,7 @@
"$ref": "#/definitions/UnsubscribeRequestMethod"
},
"params": {
"$ref": "#/definitions/UnsubscribeRequestParam"
"$ref": "#/definitions/UnsubscribeRequestParams"
}
},
"required": [
@ -1386,7 +1459,7 @@
"$ref": "#/definitions/CallToolRequestMethod"
},
"params": {
"$ref": "#/definitions/CallToolRequestParam"
"$ref": "#/definitions/CallToolRequestParams"
}
},
"required": [
@ -1402,7 +1475,7 @@
"$ref": "#/definitions/GetTaskInfoMethod"
},
"params": {
"$ref": "#/definitions/GetTaskInfoParam"
"$ref": "#/definitions/GetTaskInfoParams"
}
},
"required": [
@ -1430,7 +1503,7 @@
"params": {
"anyOf": [
{
"$ref": "#/definitions/PaginatedRequestParam"
"$ref": "#/definitions/PaginatedRequestParams"
},
{
"type": "null"
@ -1451,7 +1524,7 @@
"params": {
"anyOf": [
{
"$ref": "#/definitions/PaginatedRequestParam"
"$ref": "#/definitions/PaginatedRequestParams"
},
{
"type": "null"
@ -1472,7 +1545,7 @@
"params": {
"anyOf": [
{
"$ref": "#/definitions/PaginatedRequestParam"
"$ref": "#/definitions/PaginatedRequestParams"
},
{
"type": "null"
@ -1493,7 +1566,7 @@
"params": {
"anyOf": [
{
"$ref": "#/definitions/PaginatedRequestParam"
"$ref": "#/definitions/PaginatedRequestParams"
},
{
"type": "null"
@ -1514,7 +1587,7 @@
"params": {
"anyOf": [
{
"$ref": "#/definitions/PaginatedRequestParam"
"$ref": "#/definitions/PaginatedRequestParams"
},
{
"type": "null"
@ -1650,10 +1723,18 @@
"format": "const",
"const": "logging/setLevel"
},
"SetLevelRequestParam": {
"SetLevelRequestParams": {
"description": "Parameters for setting the logging level",
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"level": {
"description": "The desired logging level",
"allOf": [
@ -1672,10 +1753,18 @@
"format": "const",
"const": "resources/subscribe"
},
"SubscribeRequestParam": {
"SubscribeRequestParams": {
"description": "Parameters for subscribing to resource updates",
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"uri": {
"description": "The URI of the resource to subscribe to",
"type": "string"
@ -1720,10 +1809,18 @@
"format": "const",
"const": "resources/unsubscribe"
},
"UnsubscribeRequestParam": {
"UnsubscribeRequestParams": {
"description": "Parameters for unsubscribing from resource updates",
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"uri": {
"description": "The URI of the resource to unsubscribe from",
"type": "string"

View file

@ -187,10 +187,18 @@
"format": "const",
"const": "tools/call"
},
"CallToolRequestParam": {
"description": "Parameters for calling a tool provided by an MCP server.\n\nContains the tool name and optional arguments needed to execute\nthe tool operation.",
"CallToolRequestParams": {
"description": "Parameters for calling a tool provided by an MCP server.\n\nContains the tool name and optional arguments needed to execute\nthe tool operation.\n\nThis implements `TaskAugmentedRequestParamsMeta` as tool calls can be\nlong-running and may benefit from task-based execution.",
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"arguments": {
"description": "Arguments to pass to the tool (must match the tool's input schema)",
"type": [
@ -204,6 +212,7 @@
"type": "string"
},
"task": {
"description": "Task metadata for async task management (SEP-1319)",
"type": [
"object",
"null"
@ -220,9 +229,17 @@
"format": "const",
"const": "tasks/cancel"
},
"CancelTaskParam": {
"CancelTaskParams": {
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"taskId": {
"type": "string"
}
@ -332,9 +349,17 @@
"format": "const",
"const": "completion/complete"
},
"CompleteRequestParam": {
"CompleteRequestParams": {
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"argument": {
"$ref": "#/definitions/ArgumentInfo"
},
@ -534,10 +559,18 @@
"format": "const",
"const": "prompts/get"
},
"GetPromptRequestParam": {
"GetPromptRequestParams": {
"description": "Parameters for retrieving a specific prompt",
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"arguments": {
"type": [
"object",
@ -558,9 +591,17 @@
"format": "const",
"const": "tasks/get"
},
"GetTaskInfoParam": {
"GetTaskInfoParams": {
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"taskId": {
"type": "string"
}
@ -574,9 +615,17 @@
"format": "const",
"const": "tasks/result"
},
"GetTaskResultParam": {
"GetTaskResultParams": {
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"taskId": {
"type": "string"
}
@ -651,10 +700,18 @@
"version"
]
},
"InitializeRequestParam": {
"InitializeRequestParams": {
"description": "Parameters sent by a client when initializing a connection to an MCP server.\n\nThis contains the client's protocol version, capabilities, and implementation\ninformation, allowing the server to understand what the client supports.",
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"capabilities": {
"description": "The capabilities this client supports (sampling, roots, etc.)",
"allOf": [
@ -953,9 +1010,17 @@
}
]
},
"PaginatedRequestParam": {
"PaginatedRequestParams": {
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"cursor": {
"type": [
"string",
@ -1183,10 +1248,18 @@
"format": "const",
"const": "resources/read"
},
"ReadResourceRequestParam": {
"ReadResourceRequestParams": {
"description": "Parameters for reading a specific resource",
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"uri": {
"description": "The URI of the resource to read",
"type": "string"
@ -1242,7 +1315,7 @@
"$ref": "#/definitions/InitializeResultMethod"
},
"params": {
"$ref": "#/definitions/InitializeRequestParam"
"$ref": "#/definitions/InitializeRequestParams"
}
},
"required": [
@ -1258,7 +1331,7 @@
"$ref": "#/definitions/GetTaskResultMethod"
},
"params": {
"$ref": "#/definitions/GetTaskResultParam"
"$ref": "#/definitions/GetTaskResultParams"
}
},
"required": [
@ -1274,7 +1347,7 @@
"$ref": "#/definitions/CancelTaskMethod"
},
"params": {
"$ref": "#/definitions/CancelTaskParam"
"$ref": "#/definitions/CancelTaskParams"
}
},
"required": [
@ -1290,7 +1363,7 @@
"$ref": "#/definitions/CompleteRequestMethod"
},
"params": {
"$ref": "#/definitions/CompleteRequestParam"
"$ref": "#/definitions/CompleteRequestParams"
}
},
"required": [
@ -1306,7 +1379,7 @@
"$ref": "#/definitions/SetLevelRequestMethod"
},
"params": {
"$ref": "#/definitions/SetLevelRequestParam"
"$ref": "#/definitions/SetLevelRequestParams"
}
},
"required": [
@ -1322,7 +1395,7 @@
"$ref": "#/definitions/GetPromptRequestMethod"
},
"params": {
"$ref": "#/definitions/GetPromptRequestParam"
"$ref": "#/definitions/GetPromptRequestParams"
}
},
"required": [
@ -1338,7 +1411,7 @@
"$ref": "#/definitions/ReadResourceRequestMethod"
},
"params": {
"$ref": "#/definitions/ReadResourceRequestParam"
"$ref": "#/definitions/ReadResourceRequestParams"
}
},
"required": [
@ -1354,7 +1427,7 @@
"$ref": "#/definitions/SubscribeRequestMethod"
},
"params": {
"$ref": "#/definitions/SubscribeRequestParam"
"$ref": "#/definitions/SubscribeRequestParams"
}
},
"required": [
@ -1370,7 +1443,7 @@
"$ref": "#/definitions/UnsubscribeRequestMethod"
},
"params": {
"$ref": "#/definitions/UnsubscribeRequestParam"
"$ref": "#/definitions/UnsubscribeRequestParams"
}
},
"required": [
@ -1386,7 +1459,7 @@
"$ref": "#/definitions/CallToolRequestMethod"
},
"params": {
"$ref": "#/definitions/CallToolRequestParam"
"$ref": "#/definitions/CallToolRequestParams"
}
},
"required": [
@ -1402,7 +1475,7 @@
"$ref": "#/definitions/GetTaskInfoMethod"
},
"params": {
"$ref": "#/definitions/GetTaskInfoParam"
"$ref": "#/definitions/GetTaskInfoParams"
}
},
"required": [
@ -1430,7 +1503,7 @@
"params": {
"anyOf": [
{
"$ref": "#/definitions/PaginatedRequestParam"
"$ref": "#/definitions/PaginatedRequestParams"
},
{
"type": "null"
@ -1451,7 +1524,7 @@
"params": {
"anyOf": [
{
"$ref": "#/definitions/PaginatedRequestParam"
"$ref": "#/definitions/PaginatedRequestParams"
},
{
"type": "null"
@ -1472,7 +1545,7 @@
"params": {
"anyOf": [
{
"$ref": "#/definitions/PaginatedRequestParam"
"$ref": "#/definitions/PaginatedRequestParams"
},
{
"type": "null"
@ -1493,7 +1566,7 @@
"params": {
"anyOf": [
{
"$ref": "#/definitions/PaginatedRequestParam"
"$ref": "#/definitions/PaginatedRequestParams"
},
{
"type": "null"
@ -1514,7 +1587,7 @@
"params": {
"anyOf": [
{
"$ref": "#/definitions/PaginatedRequestParam"
"$ref": "#/definitions/PaginatedRequestParams"
},
{
"type": "null"
@ -1650,10 +1723,18 @@
"format": "const",
"const": "logging/setLevel"
},
"SetLevelRequestParam": {
"SetLevelRequestParams": {
"description": "Parameters for setting the logging level",
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"level": {
"description": "The desired logging level",
"allOf": [
@ -1672,10 +1753,18 @@
"format": "const",
"const": "resources/subscribe"
},
"SubscribeRequestParam": {
"SubscribeRequestParams": {
"description": "Parameters for subscribing to resource updates",
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"uri": {
"description": "The URI of the resource to subscribe to",
"type": "string"
@ -1720,10 +1809,18 @@
"format": "const",
"const": "resources/unsubscribe"
},
"UnsubscribeRequestParam": {
"UnsubscribeRequestParams": {
"description": "Parameters for unsubscribing from resource updates",
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"uri": {
"description": "The URI of the resource to unsubscribe from",
"type": "string"

View file

@ -504,10 +504,18 @@
}
]
},
"CreateElicitationRequestParam": {
"description": "Parameters for creating an elicitation request to gather user input.\n\nThis structure contains everything needed to request interactive input from a user:\n- A human-readable message explaining what information is needed\n- A type-safe schema defining the expected structure of the response\n\n# Example\n\n```rust\nuse rmcp::model::*;\n\nlet params = CreateElicitationRequestParam {\n message: \"Please provide your email\".to_string(),\n requested_schema: ElicitationSchema::builder()\n .required_email(\"email\")\n .build()\n .unwrap(),\n};\n```",
"CreateElicitationRequestParams": {
"description": "Parameters for creating an elicitation request to gather user input.\n\nThis structure contains everything needed to request interactive input from a user:\n- A human-readable message explaining what information is needed\n- A type-safe schema defining the expected structure of the response\n\n# Example\n\n```rust\nuse rmcp::model::*;\n\nlet params = CreateElicitationRequestParams {\n meta: None,\n message: \"Please provide your email\".to_string(),\n requested_schema: ElicitationSchema::builder()\n .required_email(\"email\")\n .build()\n .unwrap(),\n};\n```",
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"message": {
"description": "Human-readable message explaining what input is needed from the user.\nThis should be clear and provide sufficient context for the user to understand\nwhat information they need to provide.",
"type": "string"
@ -551,10 +559,18 @@
"format": "const",
"const": "sampling/createMessage"
},
"CreateMessageRequestParam": {
"description": "Parameters for creating a message through LLM sampling.\n\nThis structure contains all the necessary information for a client to\ngenerate an LLM response, including conversation history, model preferences,\nand generation parameters.",
"CreateMessageRequestParams": {
"description": "Parameters for creating a message through LLM sampling.\n\nThis structure contains all the necessary information for a client to\ngenerate an LLM response, including conversation history, model preferences,\nand generation parameters.\n\nThis implements `TaskAugmentedRequestParamsMeta` as sampling requests can be\nlong-running and may benefit from task-based execution.",
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"includeContext": {
"description": "How much context to include from MCP servers",
"anyOf": [
@ -610,6 +626,14 @@
"null"
]
},
"task": {
"description": "Task metadata for async task management (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"temperature": {
"description": "Temperature for controlling randomness (0.0 to 1.0)",
"type": [
@ -2111,7 +2135,7 @@
"$ref": "#/definitions/CreateMessageRequestMethod"
},
"params": {
"$ref": "#/definitions/CreateMessageRequestParam"
"$ref": "#/definitions/CreateMessageRequestParams"
}
},
"required": [
@ -2127,7 +2151,7 @@
"$ref": "#/definitions/ElicitationCreateRequestMethod"
},
"params": {
"$ref": "#/definitions/CreateElicitationRequestParam"
"$ref": "#/definitions/CreateElicitationRequestParams"
}
},
"required": [

View file

@ -504,10 +504,18 @@
}
]
},
"CreateElicitationRequestParam": {
"description": "Parameters for creating an elicitation request to gather user input.\n\nThis structure contains everything needed to request interactive input from a user:\n- A human-readable message explaining what information is needed\n- A type-safe schema defining the expected structure of the response\n\n# Example\n\n```rust\nuse rmcp::model::*;\n\nlet params = CreateElicitationRequestParam {\n message: \"Please provide your email\".to_string(),\n requested_schema: ElicitationSchema::builder()\n .required_email(\"email\")\n .build()\n .unwrap(),\n};\n```",
"CreateElicitationRequestParams": {
"description": "Parameters for creating an elicitation request to gather user input.\n\nThis structure contains everything needed to request interactive input from a user:\n- A human-readable message explaining what information is needed\n- A type-safe schema defining the expected structure of the response\n\n# Example\n\n```rust\nuse rmcp::model::*;\n\nlet params = CreateElicitationRequestParams {\n meta: None,\n message: \"Please provide your email\".to_string(),\n requested_schema: ElicitationSchema::builder()\n .required_email(\"email\")\n .build()\n .unwrap(),\n};\n```",
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"message": {
"description": "Human-readable message explaining what input is needed from the user.\nThis should be clear and provide sufficient context for the user to understand\nwhat information they need to provide.",
"type": "string"
@ -551,10 +559,18 @@
"format": "const",
"const": "sampling/createMessage"
},
"CreateMessageRequestParam": {
"description": "Parameters for creating a message through LLM sampling.\n\nThis structure contains all the necessary information for a client to\ngenerate an LLM response, including conversation history, model preferences,\nand generation parameters.",
"CreateMessageRequestParams": {
"description": "Parameters for creating a message through LLM sampling.\n\nThis structure contains all the necessary information for a client to\ngenerate an LLM response, including conversation history, model preferences,\nand generation parameters.\n\nThis implements `TaskAugmentedRequestParamsMeta` as sampling requests can be\nlong-running and may benefit from task-based execution.",
"type": "object",
"properties": {
"_meta": {
"description": "Protocol-level metadata for this request (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"includeContext": {
"description": "How much context to include from MCP servers",
"anyOf": [
@ -610,6 +626,14 @@
"null"
]
},
"task": {
"description": "Task metadata for async task management (SEP-1319)",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"temperature": {
"description": "Temperature for controlling randomness (0.0 to 1.0)",
"type": [
@ -2111,7 +2135,7 @@
"$ref": "#/definitions/CreateMessageRequestMethod"
},
"params": {
"$ref": "#/definitions/CreateMessageRequestParam"
"$ref": "#/definitions/CreateMessageRequestParams"
}
},
"required": [
@ -2127,7 +2151,7 @@
"$ref": "#/definitions/ElicitationCreateRequestMethod"
},
"params": {
"$ref": "#/definitions/CreateElicitationRequestParam"
"$ref": "#/definitions/CreateElicitationRequestParams"
}
},
"required": [