File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @openai/agents-core ' : minor
3
+ ---
4
+
5
+ feat(mcp): add structuredContent support behind ` useStructuredContent ` ; return full CallToolResult from ` callTool `
6
+
7
+ - ` MCPServer#callTool ` now returns the full ` CallToolResult ` (was ` content[] ` ), exposing optional ` structuredContent ` .
8
+ - Add ` useStructuredContent ` option to MCP servers (stdio/streamable-http/SSE), default ` false ` to avoid duplicate data by default.
9
+ - When enabled, function tool outputs include ` structuredContent ` (or return it alone when no ` content ` ).
10
+
11
+ Notes
12
+
13
+ - Type-only breaking change for direct ` callTool ` consumers: use ` result.content ` where arrays were expected.
14
+ - Behavior matches Python SDK feature (openai-agents-python #1150 ) while keeping JS outputs ergonomic (objects/arrays, no JSON stringify/parse overhead).
You can’t perform that action at this time.
0 commit comments