Skip to content

Commit 419acd4

Browse files
dcramerclaude
andauthored
feat: enable telemetry for embedded AI agents (#667)
Enable input/output recording in Vercel AI integration and add experimental telemetry to callEmbeddedAgent for better observability of AI-powered tool calls. Co-authored-by: Claude <noreply@anthropic.com>
1 parent dd8746b commit 419acd4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎packages/mcp-core/src/internal/agents/callEmbeddedAgent.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ export async function callEmbeddedAgent<
4545
maxSteps: 5,
4646
temperature: 1, // GPT-5 only supports temperature of 1
4747
experimental_output: Output.object({ schema }),
48+
experimental_telemetry: {
49+
isEnabled: true,
50+
functionId: "callEmbeddedAgent",
51+
},
4852
// Disable strict schema validation for both output and tool parameter schemas.
4953
//
5054
// OpenAI's structured outputs have limitations:

0 commit comments

Comments
 (0)