context_server: Fix casing of mimeType
in tool responses (#30703)
Closes #30243 Release Notes: - Fixed wrong casing for the `mimeType` field when parsing MCP server image responses.
This commit is contained in:
parent
748840519c
commit
49f3ec7f35
1 changed files with 1 additions and 1 deletions
|
@ -604,7 +604,7 @@ pub struct CallToolResponse {
|
|||
pub enum ToolResponseContent {
|
||||
#[serde(rename = "text")]
|
||||
Text { text: String },
|
||||
#[serde(rename = "image")]
|
||||
#[serde(rename = "image", rename_all = "camelCase")]
|
||||
Image { data: String, mime_type: String },
|
||||
#[serde(rename = "resource")]
|
||||
Resource { resource: ResourceContents },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue