Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit a539586

Browse files
authored
Merge pull request #24 from yusuf-eren/feature/issue/17
feat: add Tracing Support
2 parents 212e31f + e7a28cf commit a539586

File tree

12 files changed

+936
-730
lines changed

12 files changed

+936
-730
lines changed

examples/basic/lifecycle-example.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
Tool,
1414
Usage,
1515
FunctionTool,
16-
WebSearchTool,
1716
AgentOutputSchema,
1817
} from '../../src/agents';
1918

@@ -119,7 +118,7 @@ const multiplyAgent = new Agent({
119118
const startAgent = new Agent({
120119
name: 'Start Agent',
121120
instructions: "Generate a random number. If it's even, stop. If it's odd, hand off to the multiplier agent.",
122-
tools: [randomNumber, new WebSearchTool({})],
121+
tools: [randomNumber],
123122
output_type: new AgentOutputSchema(FinalResult),
124123
handoffs: [multiplyAgent],
125124
});

package-lock.json

Lines changed: 40 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"homepage": "https://github.com/yusuf-eren/openai-agents-js#readme",
3535
"dependencies": {
3636
"@modelcontextprotocol/sdk": "^1.11.0",
37+
"axios": "^1.9.0",
3738
"dotenv": "^16.4.7",
3839
"graphviz": "^0.0.9",
3940
"openai": "^4.94.0",

0 commit comments

Comments
 (0)