Use the snake_case field name in the task return-type test (#4657)

This commit is contained in:
Jeremiah Lowin 2026-07-27 10:56:03 -04:00 committed by GitHub
commit 6c4ba6b420
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,7 +50,7 @@ def _sync_result_to_wire(result: ToolResult) -> dict[str, Any]:
content, structured_content = mcp_result
call_tool_result = mcp_types.CallToolResult(
content=content,
structuredContent=structured_content,
structured_content=structured_content,
)
else:
call_tool_result = mcp_types.CallToolResult(content=mcp_result)