MartinEBravo
4dc9b6712e
Merge branch 'main' of https://github.com/openai/openai-agents-python into feat/draw_graph
2025-03-17 10:17:36 +01:00
Rohan Mehta
d60a413c14
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
Rohan Mehta
94792b7d0d
Consolidate to one logger ( #149 )
...
Results in double logging if we dont. Closes #141 .
2025-03-13 11:38:18 -07:00
Rohan Mehta
e863ef255d
Consolidate to one logger
2025-03-13 13:55:15 -04:00
Martín Bravo
ed7bad55ee
Linting
2025-03-13 18:49:12 +01:00
Martín Bravo
fdfa05c759
Add visualization functions for agents using Graphviz
2025-03-13 18:33:12 +01:00
Rohan Mehta
83503d85a6
Update tracing docs to be correct
2025-03-13 13:20:27 -04:00
Rohan Mehta
b2dc3e7ac9
Add examples and documentation for using custom model providers ( #110 )
2025-03-13 08:17:25 -07:00
Rohan Mehta
9428ed0c67
Add request ID
2025-03-12 18:07:59 -07:00
Rohan Mehta
e881d72d38
Add examples and documentation for using custom model providers
2025-03-12 17:34:38 -07:00
Rohan Mehta
a9f717b220
Fix streaming in chat completions
2025-03-12 17:17:07 -07:00
Rohan Mehta
ca8a5bea15
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
d737ad0e1b
Add max_tokens and documentation to model settings
2025-03-12 13:35:10 -07:00
Rohan Mehta
94bdad6291
Merge pull request #89 from eltociear/patch-1
...
chore: update guardrail.py
2025-03-12 13:30:56 -07:00
Rohan Mehta
4f6276c8c7
Remove duplicated code
2025-03-12 13:08:00 -07:00
Muhammad Junaid
b5bbc060d3
fix: support assistant role in message conversion
...
- The _Converter.items_to_messages method was incorrectly rejecting 'assistant'
as a valid role in conversation messages, causing runtime errors when processing
standard chat completion message formats.
- This fix enables proper handling of
complete conversation contexts that include both user and assistant messages.
2025-03-12 21:10:03 +05:00
Ikko Eltociear Ashimine
cafa77fc75
chore: update guardrail.py
...
minor fix
2025-03-12 22:45:17 +09:00
Jai0401
644d8afa1b
fix: resolve linting issues
2025-03-12 16:00:20 +05:30
Jaimin Godhani
7715cb0d5e
Update src/agents/tool.py
...
Co-authored-by: Adrian Cole <64215+codefromthecrypt@users.noreply.github.com>
2025-03-12 14:56:19 +05:30
Jai0401
ef74c7b8e7
feat: Add strict mode option to function_schema and function_tool
2025-03-12 11:45:32 +05:30
Rohan Mehta
e231e4924a
Merge pull request #52 from sunrabbit123/patch-1
...
Fix: remove unreached code in tool.py
2025-03-11 22:09:07 -07:00
Rohan Mehta
def8c9f7d5
Merge pull request #55 from the-praxs/fix/traces-spans-data
...
fix: count `spans` and `traces` correctly
2025-03-11 22:05:46 -07:00
Pratyush Shukla
72e35288de
resort to show total number of spans and traces
2025-03-12 10:20:15 +05:30
Pratyush Shukla
ac571ceec1
Revert "count both spans and traces"
...
This reverts commit 93bca7bf11 .
2025-03-12 10:19:14 +05:30
Pratyush Shukla
93bca7bf11
count both spans and traces
2025-03-12 10:14:01 +05:30
오병진
9185691fde
Update tool.py
2025-03-12 13:13:48 +09:00
hironow
1b195aca12
Merge branch 'main' into hironow/chore-doc-type
...
# Conflicts:
# tests/docs/config.md
# tests/docs/guardrails.md
# tests/docs/tracing.md
2025-03-12 10:13:25 +09:00
hironow
14e1e439a5
Merge branch 'main' into hironow/chore-doc-type
2025-03-12 10:11:38 +09:00
Rohan Mehta
c7058adab0
pin to openai 1.66.2, update tests
2025-03-11 15:26:06 -07:00
Rohan Mehta
001fb19c79
make format
2025-03-11 14:54:10 -07:00
dmitry-openai
723397b062
Merge pull request #8 from openai/repo/gitignore
...
removing ds store, adding gitignore
2025-03-11 11:17:37 -07:00
hironow
25e122125c
chore: fix type in doc and comment
2025-03-12 02:46:36 +09:00
Rohan Mehta
aaec57a426
Initial commit
2025-03-11 09:42:28 -07:00