Commit graph

244 commits

Author SHA1 Message Date
James Hills
370a748bcc
Update tracing.md
Add callout for ZDR intracing
2025-03-17 09:13:22 -07:00
Bagatur
4ebf0742f1 docs: List LangSmith tracing integration 2025-03-17 08:47:28 -07:00
Rohan Mehta
64e263b614 Pretty print result classes 2025-03-17 11:11:39 -04:00
Vincenzo Domina
1f58528f1c
Add TracingProcessor export to __init__.py 2025-03-17 10:37:43 +01:00
heartkilla
54a48a3967 fix reasoning order in examples 2025-03-17 14:56:43 +09:00
Rohan Mehta
09d70c074d utils directory 2025-03-16 18:48:45 -04:00
Rohan Mehta
951193bd21
feat: Add strict_mode option to function_schema and function_tool (#60)
This PR introduces a `strict_mode: bool = True` option to
`@function_tool`, allowing optional parameters when set to False. This
change enables more flexibility while maintaining strict JSON schema
validation by default.

resolves #43 

## Changes:

- Added `strict_mode` parameter to `@function_tool` and passed it to
`function_schema` and `FunctionTool`.
- Updated `function_schema.py` to respect `strict_mode` and allow
optional parameters when set to False.
- Added unit tests to verify optional parameters work correctly,
including multiple optional params with different types.

## Tests:

- Verified function calls with missing optional parameters behave as
expected.
- Added async tests to validate behavior under different configurations.
2025-03-16 17:43:46 -04:00
Alexander Song
f0ef7d71eb docs: add arize-phoenix to tracing documentation 2025-03-14 17:50:10 -07:00
Alex Hall
4d2fa9d91c Merge branch 'main' of github.com:openai/openai-agents-python into alex/inline-snapshot 2025-03-14 14:16:34 +02:00
CCM
8540b1e65b
fix typo in agent_lifecycle_example.py 2025-03-14 19:14:26 +08:00
Kento Yamanaka
792cdea464 fix: use first_agent instead of second_agent for a task to generate random number 2025-03-13 18:26:49 -07:00
Carlos Souza
26828e5e68
Fix typo on Agent documentation
Argument name is not description but handoff_description
2025-03-13 16:18:40 -04:00
Rohan Mehta
cdbf6b0514
Create model_provider.md 2025-03-13 14:43:14 -04:00
Rohan Mehta
7f68a7da2a
Consolidate to one logger (#149)
Results in double logging if we dont. Closes #141.
2025-03-13 11:38:18 -07:00
Vincent Koc
333858b518
Merge branch 'main' into patch-1 2025-03-14 05:33:08 +11:00
Rohan Mehta
697f647e4c
Update tracing docs to be correct (#146)
Incorrect docs. Closes #121
2025-03-13 10:55:57 -07:00
Rohan Mehta
17f0a425ba Consolidate to one logger 2025-03-13 13:55:15 -04:00
Rohan Mehta
e7c80ec208
Update model docs with common issues (#148)
These are common issues faced by devs, so adding docs to help.
2025-03-13 10:53:50 -07:00
Rohan Mehta
8a6967b6d4 Update model docs with common issues 2025-03-13 13:43:18 -04:00
Rohan Mehta
4db24bdb3c Update tracing docs to be correct 2025-03-13 13:20:27 -04:00
Rohan Mehta
e069279801
Update custom models to use tools (#144) 2025-03-13 10:12:28 -07:00
Rohan Mehta
6ab8c91d23 Update custom models to use tools 2025-03-13 13:10:26 -04:00
Rohan Mehta
691be07339
v0.0.4 (#140) 2025-03-13 08:19:46 -07:00
Rohan Mehta
a012c0d320 v0.0.4 2025-03-13 11:18:40 -04:00
Rohan Mehta
16cfce117c
Add examples and documentation for using custom model providers (#110) 2025-03-13 08:17:25 -07:00
Dmitry Pimenov
3ef5f4712a
Add Scorecard as supported external trace processors (#80)
Incredibly excited to add Scorecard as an external trace processor for
the Agents SDK!
2025-03-12 21:25:42 -07:00
Rohan Mehta
6402f743e2
Merge pull request #114 from openai/rm/pr114
Add request ID
2025-03-12 18:09:13 -07:00
Rohan Mehta
341198ff92 Add request ID 2025-03-12 18:07:59 -07:00
Rohan Mehta
7b8122686f
Merge pull request #113 from openai/examples/jupyter
Adding Jupyter notebook example
2025-03-12 17:43:25 -07:00
Rohan Mehta
25a633139d Add examples and documentation for using custom model providers 2025-03-12 17:34:38 -07:00
Dmitry Pimenov
26f9cb42de fixing mypy error 2025-03-12 17:30:59 -07:00
Dmitry Pimenov
65546703cb fixing lint issues 2025-03-12 17:28:44 -07:00
Dare
f8655c3b44
Merge branch 'main' into main 2025-03-12 17:24:39 -07:00
Dmitry Pimenov
536d7826d5 added a Jupyter example to clarify how to use the SDK with an existing event loop 2025-03-12 17:24:35 -07:00
Rohan Mehta
1670d409b0
Merge pull request #112 from openai/pr112
Fix streaming in chat completions
2025-03-12 17:21:55 -07:00
Rohan Mehta
2302b478af Fix streaming in chat completions 2025-03-12 17:17:07 -07:00
Rohan Mehta
5626cb1951
Rename pull_request_template.md. to pull_request_template.md 2025-03-12 16:47:14 -07:00
Rohan Mehta
5a577f962a
Create pull_request_template.md. 2025-03-12 16:46:53 -07:00
Dmitry Pimenov
912a625915
Merge pull request #108 from dingkwang/main
Bug #107. fix typo in tracing.md
2025-03-12 15:03:55 -07:00
Dingkang Wang
9f938716d1 fix typo in tracing.md 2025-03-12 14:54:11 -07:00
Vincent Koc
7e85c03533
Update tracing.md 2025-03-13 07:56:27 +11:00
Vincent Koc
03869a75ac
Merge branch 'main' into patch-1 2025-03-13 07:53:07 +11:00
Rohan Mehta
18b10f1371
Merge pull request #105 from openai/pr105
Add max_tokens and documentation to model settings
2025-03-12 13:45:21 -07:00
Rohan Mehta
fde49cfcf7 Add max_tokens and documentation to model settings 2025-03-12 13:35:10 -07:00
Dmitry Pimenov
97a09067cf
Merge pull request #104 from openai/readme/new-trace-provider
Adding Keywords AI as a trace processor
2025-03-12 13:33:02 -07:00
Rohan Mehta
d4f01e60b6
Merge pull request #83 from HarshJa1n/fix-guardrail-trigger
Fix guardrail trigger in input_guardrails.py
2025-03-12 13:32:23 -07:00
Rohan Mehta
3a95993753
Merge pull request #84 from leykun10/fix-doc-error
Replace undefined variable name in documentation code snippet
2025-03-12 13:31:12 -07:00
Rohan Mehta
f461bea2ce
Merge pull request #89 from eltociear/patch-1
chore: update guardrail.py
2025-03-12 13:30:56 -07:00
Rohan Mehta
94d7441673
Merge pull request #103 from openai/pr103
Remove duplicated code
2025-03-12 13:29:16 -07:00
Dmitry Pimenov
2f2e2fce5a adding Keywords AI as a trace processor 2025-03-12 13:15:53 -07:00