openai-agents 0.0.19__py3-none-any.whl → 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of openai-agents might be problematic. Click here for more details.
- agents/__init__.py +0 -1
- agents/_run_impl.py +30 -0
- agents/agent.py +7 -3
- agents/extensions/models/litellm_model.py +7 -3
- agents/handoffs.py +14 -0
- agents/mcp/__init__.py +13 -1
- agents/mcp/server.py +140 -15
- agents/mcp/util.py +89 -5
- agents/model_settings.py +52 -6
- agents/models/chatcmpl_converter.py +12 -0
- agents/models/chatcmpl_stream_handler.py +127 -15
- agents/models/openai_chatcompletions.py +12 -10
- agents/models/openai_responses.py +14 -4
- agents/repl.py +1 -4
- agents/run.py +25 -6
- agents/tool.py +25 -0
- agents/tracing/__init__.py +1 -2
- agents/tracing/processor_interface.py +1 -1
- {openai_agents-0.0.19.dist-info → openai_agents-0.1.0.dist-info}/METADATA +14 -6
- {openai_agents-0.0.19.dist-info → openai_agents-0.1.0.dist-info}/RECORD +22 -22
- {openai_agents-0.0.19.dist-info → openai_agents-0.1.0.dist-info}/WHEEL +0 -0
- {openai_agents-0.0.19.dist-info → openai_agents-0.1.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: openai-agents
|
|
3
|
-
Version: 0.0
|
|
3
|
+
Version: 0.1.0
|
|
4
4
|
Summary: OpenAI Agents SDK
|
|
5
|
-
Project-URL: Homepage, https://github.
|
|
5
|
+
Project-URL: Homepage, https://openai.github.io/openai-agents-python/
|
|
6
6
|
Project-URL: Repository, https://github.com/openai/openai-agents-python
|
|
7
7
|
Author-email: OpenAI <support@openai.com>
|
|
8
8
|
License-Expression: MIT
|
|
@@ -15,6 +15,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.10
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.11
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
19
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
19
20
|
Classifier: Typing :: Typed
|
|
20
21
|
Requires-Python: >=3.9
|
|
@@ -56,14 +57,21 @@ Explore the [examples](examples) directory to see the SDK in action, and read ou
|
|
|
56
57
|
|
|
57
58
|
1. Set up your Python environment
|
|
58
59
|
|
|
59
|
-
|
|
60
|
+
- Option A: Using venv (traditional method)
|
|
61
|
+
```bash
|
|
60
62
|
python -m venv env
|
|
61
|
-
source env/bin/activate
|
|
63
|
+
source env/bin/activate # On Windows: env\Scripts\activate
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
- Option B: Using uv (recommended)
|
|
67
|
+
```bash
|
|
68
|
+
uv venv
|
|
69
|
+
source .venv/bin/activate # On Windows: .venv\Scripts\activate
|
|
62
70
|
```
|
|
63
71
|
|
|
64
72
|
2. Install Agents SDK
|
|
65
73
|
|
|
66
|
-
```
|
|
74
|
+
```bash
|
|
67
75
|
pip install openai-agents
|
|
68
76
|
```
|
|
69
77
|
|
|
@@ -86,7 +94,7 @@ print(result.final_output)
|
|
|
86
94
|
|
|
87
95
|
(_If running this, ensure you set the `OPENAI_API_KEY` environment variable_)
|
|
88
96
|
|
|
89
|
-
(_For Jupyter notebook users, see [hello_world_jupyter.
|
|
97
|
+
(_For Jupyter notebook users, see [hello_world_jupyter.ipynb](examples/basic/hello_world_jupyter.ipynb)_)
|
|
90
98
|
|
|
91
99
|
## Handoffs example
|
|
92
100
|
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
agents/__init__.py,sha256=
|
|
1
|
+
agents/__init__.py,sha256=bsO_4_YL8UzXpI24IE8gKo-qlnDIJ00gvF2rSVfaIy0,7674
|
|
2
2
|
agents/_config.py,sha256=ANrM7GP2VSQehDkMc9qocxkUlPwqU-i5sieMJyEwxpM,796
|
|
3
3
|
agents/_debug.py,sha256=7OKys2lDjeCtGggTkM53m_8vw0WIr3yt-_JPBDAnsw0,608
|
|
4
|
-
agents/_run_impl.py,sha256=
|
|
5
|
-
agents/agent.py,sha256=
|
|
4
|
+
agents/_run_impl.py,sha256=amAggJoriIaUnxs6vjYiZ_vgIIlb1h0v8T3ae8WsS0M,44407
|
|
5
|
+
agents/agent.py,sha256=MQtOFgTBGDc7C-Z4CvtER7qNZHQuxkXbaQ4P2J6DdtE,11997
|
|
6
6
|
agents/agent_output.py,sha256=cVIVwpsgOfloCHL0BD9DSCBCzW_s3T4LesDhvJRu2Uc,7127
|
|
7
7
|
agents/computer.py,sha256=XD44UgiUWSfniv-xKwwDP6wFKVwBiZkpaL1hO-0-7ZA,2516
|
|
8
8
|
agents/exceptions.py,sha256=NHMdHE0cZ6AdA6UgUylTzVHAX05Ol1CkO814a0FdZcs,2862
|
|
9
9
|
agents/function_schema.py,sha256=XoZVE1dnrDYFhHIIv8SmK3CJEsesC0a2Kj0AYEec9Ok,13106
|
|
10
10
|
agents/guardrail.py,sha256=vWWcApo9s_6aHapQ5AMko08MqC8Jrlk-J5iqIRctCDQ,9291
|
|
11
|
-
agents/handoffs.py,sha256=
|
|
11
|
+
agents/handoffs.py,sha256=TSW2cbFVbuwweFhP8QQP01OWctFGYbi6DszcO7NZHME,10095
|
|
12
12
|
agents/items.py,sha256=lXFc_gKLEqwXIcyMKk4Q-6Rjry0MWD93xlvk4Y1W970,9695
|
|
13
13
|
agents/lifecycle.py,sha256=wYFG6PLSKQ7bICKVbB8oGtdoJNINGq9obh2RSKlAkDE,2938
|
|
14
14
|
agents/logger.py,sha256=p_ef7vWKpBev5FFybPJjhrCCQizK08Yy1A2EDO1SNNg,60
|
|
15
|
-
agents/model_settings.py,sha256=
|
|
15
|
+
agents/model_settings.py,sha256=YxZufM4qivPF3ckXjvK2RS_Fk2BhJCDVHHqyH4-Dwv0,5950
|
|
16
16
|
agents/prompts.py,sha256=Ss5y_7s2HFcRAOAKu4WTxQszs5ybI8TfbxgEYdnj9sg,2231
|
|
17
17
|
agents/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
18
|
-
agents/repl.py,sha256=
|
|
18
|
+
agents/repl.py,sha256=FKZlkGfw6QxItTkjFkCAQwXuV_pn69DIamGd3PiKQFk,2361
|
|
19
19
|
agents/result.py,sha256=YCGYHoc5X1_vLKu5QiK6F8C1ZXI3tTfLXaZoqbYgUMA,10753
|
|
20
|
-
agents/run.py,sha256=
|
|
20
|
+
agents/run.py,sha256=Pf-k78LsXiDobVo4dcLkhv090dchQYrCfN7n3lzRTPA,46774
|
|
21
21
|
agents/run_context.py,sha256=vuSUQM8O4CLensQY27-22fOqECnw7yvwL9U3WO8b_bk,851
|
|
22
22
|
agents/stream_events.py,sha256=VFyTu-DT3ZMnHLtMbg-X_lxec0doQxNfx-hVxLB0BpI,1700
|
|
23
23
|
agents/strict_schema.py,sha256=_KuEJkglmq-Fj3HSeYP4WqTvqrxbSKu6gezfz5Brhh0,5775
|
|
24
|
-
agents/tool.py,sha256=
|
|
24
|
+
agents/tool.py,sha256=1DxA3RT0G32tbr6JPB-EMCG8j32zQNCK_vwdAKVqpp4,16538
|
|
25
25
|
agents/tool_context.py,sha256=JAo3hyk5nvUe81IKF71f30Im9vql664zfu5mQJj7jas,941
|
|
26
26
|
agents/usage.py,sha256=GB83eElU-DVkdutGObGDSX5vJNy8ssu3Xbpp5LlHfwU,1643
|
|
27
27
|
agents/version.py,sha256=_1knUwzSK-HUeZTpRUkk6Z-CIcurqXuEplbV5TLJ08E,230
|
|
@@ -30,26 +30,26 @@ agents/extensions/handoff_filters.py,sha256=2cXxu1JROez96CpTiGuT9PIuaIrIE8ksP01f
|
|
|
30
30
|
agents/extensions/handoff_prompt.py,sha256=oGWN0uNh3Z1L7E-Ev2up8W084fFrDNOsLDy7P6bcmic,1006
|
|
31
31
|
agents/extensions/visualization.py,sha256=g2eEwW22qe3A4WtH37LwaHhK3QZE9FYHVw9IcOVpwbk,4699
|
|
32
32
|
agents/extensions/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
|
-
agents/extensions/models/litellm_model.py,sha256=
|
|
33
|
+
agents/extensions/models/litellm_model.py,sha256=Gmk7M4KGZ-Mfk2LUCzHL-FMm5C6_n41QzwSMVxYcfE8,15014
|
|
34
34
|
agents/extensions/models/litellm_provider.py,sha256=wTm00Anq8YoNb9AnyT0JOunDG-HCDm_98ORNy7aNJdw,928
|
|
35
|
-
agents/mcp/__init__.py,sha256=
|
|
36
|
-
agents/mcp/server.py,sha256=
|
|
37
|
-
agents/mcp/util.py,sha256=
|
|
35
|
+
agents/mcp/__init__.py,sha256=yHmmYlrmEHzUas1inRLKL2iPqbb_-107G3gKe_tyg4I,750
|
|
36
|
+
agents/mcp/server.py,sha256=yRW7qK1OHO49aFNQu9bj9CRWxuWiwR-iNBamV-LxW2Y,20088
|
|
37
|
+
agents/mcp/util.py,sha256=psB7P7mbLTOn7pFsrSyVaQ-1jM8JlJRep8giNgvJcQU,7885
|
|
38
38
|
agents/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
39
39
|
agents/models/_openai_shared.py,sha256=4Ngwo2Fv2RXY61Pqck1cYPkSln2tDnb8Ai-ao4QG-iE,836
|
|
40
|
-
agents/models/chatcmpl_converter.py,sha256=
|
|
40
|
+
agents/models/chatcmpl_converter.py,sha256=ePmSVJb0qAumFm6UHrgii7TzvO7krfqsELoUDZfAGLo,18618
|
|
41
41
|
agents/models/chatcmpl_helpers.py,sha256=eIWySobaH7I0AQijAz5i-_rtsXrSvmEHD567s_8Zw1o,1318
|
|
42
|
-
agents/models/chatcmpl_stream_handler.py,sha256=
|
|
42
|
+
agents/models/chatcmpl_stream_handler.py,sha256=AvFyb9Uvq2WzblNXysGKVqLqA8BhGHfeZqNii_4uXjw,19120
|
|
43
43
|
agents/models/fake_id.py,sha256=lbXjUUSMeAQ8eFx4V5QLUnBClHE6adJlYYav55RlG5w,268
|
|
44
44
|
agents/models/interface.py,sha256=TpY_GEk3LLMozCcYAEcC-Y_VRpI3pwE7A7ZM317mk7M,3839
|
|
45
45
|
agents/models/multi_provider.py,sha256=aiDbls5G4YomPfN6qH1pGlj41WS5jlDp2T82zm6qcnM,5578
|
|
46
|
-
agents/models/openai_chatcompletions.py,sha256=
|
|
46
|
+
agents/models/openai_chatcompletions.py,sha256=Br7nWsibVvMr0jff6H6adpe_AjYTgLgoAu6lgQ6LZO8,12191
|
|
47
47
|
agents/models/openai_provider.py,sha256=NMxTNaoTa329GrA7jj51LC02pb_e2eFh-PCvWADJrkY,3478
|
|
48
|
-
agents/models/openai_responses.py,sha256=
|
|
49
|
-
agents/tracing/__init__.py,sha256=
|
|
48
|
+
agents/models/openai_responses.py,sha256=82YIHExAPuXc92uJFIJJCyjdyFNcvt1nctgiPhC2b5Y,16302
|
|
49
|
+
agents/tracing/__init__.py,sha256=5HO_6na5S6EwICgwl50OMtxiIIosUrqalhvldlYvSVc,2991
|
|
50
50
|
agents/tracing/create.py,sha256=Gm9N5O2DeBy6UU86tRN0wnmzWyXb-qAUBbTj9oxIHao,18106
|
|
51
51
|
agents/tracing/logger.py,sha256=J4KUDRSGa7x5UVfUwWe-gbKwoaq8AeETRqkPt3QvtGg,68
|
|
52
|
-
agents/tracing/processor_interface.py,sha256=
|
|
52
|
+
agents/tracing/processor_interface.py,sha256=e1mWcIAoQFHID1BapcrAZ6MxZg98bPVYgbOPclVoCXc,1660
|
|
53
53
|
agents/tracing/processors.py,sha256=lOdZHwo0rQAflVkKWOZinnWyLtS0stALyydiFOC0gss,11389
|
|
54
54
|
agents/tracing/provider.py,sha256=hiMTAiVnmnZ2RW6HYvL1hckXE-GQEqTSRvZCVcBY7pI,9212
|
|
55
55
|
agents/tracing/scope.py,sha256=u17_m8RPpGvbHrTkaO_kDi5ROBWhfOAIgBe7suiaRD4,1445
|
|
@@ -80,7 +80,7 @@ agents/voice/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
|
|
|
80
80
|
agents/voice/models/openai_model_provider.py,sha256=Khn0uT-VhsEbe7_OhBMGFQzXNwL80gcWZyTHl3CaBII,3587
|
|
81
81
|
agents/voice/models/openai_stt.py,sha256=rRsldkvkPhH4T0waX1dhccEqIwmPYh-teK_LRvBgiNI,16882
|
|
82
82
|
agents/voice/models/openai_tts.py,sha256=4KoLQuFDHKu5a1VTJlu9Nj3MHwMlrn9wfT_liJDJ2dw,1477
|
|
83
|
-
openai_agents-0.0.
|
|
84
|
-
openai_agents-0.0.
|
|
85
|
-
openai_agents-0.0.
|
|
86
|
-
openai_agents-0.0.
|
|
83
|
+
openai_agents-0.1.0.dist-info/METADATA,sha256=SHdolY2k2hnYiNuhfVCYCbDtvM1hMTpMz1n6TPXzwnQ,8561
|
|
84
|
+
openai_agents-0.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
85
|
+
openai_agents-0.1.0.dist-info/licenses/LICENSE,sha256=E994EspT7Krhy0qGiES7WYNzBHrh1YDk3r--8d1baRU,1063
|
|
86
|
+
openai_agents-0.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|