Skip to content

Commit f3d9982

Browse files
committed
chore(changeset): minor bump for @openai/agents-core (MCP structuredContent)
1 parent cf3caeb commit f3d9982

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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).

0 commit comments

Comments
 (0)