@sylphai/adal-cli-darwin-arm64 0.2.3 → 0.3.0-beta.4

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.
Files changed (90) hide show
  1. package/adal-cli.js +545 -499
  2. package/backend/adal-backend/_internal/Python +0 -0
  3. package/backend/adal-backend/_internal/Python.framework/Python +0 -0
  4. package/backend/adal-backend/_internal/Python.framework/Resources/Info.plist +3 -3
  5. package/backend/adal-backend/_internal/Python.framework/Versions/3.13/Python +0 -0
  6. package/backend/adal-backend/_internal/Python.framework/Versions/3.13/Resources/Info.plist +3 -3
  7. package/backend/adal-backend/_internal/Python.framework/Versions/Current/Python +0 -0
  8. package/backend/adal-backend/_internal/Python.framework/Versions/Current/Resources/Info.plist +3 -3
  9. package/backend/adal-backend/_internal/base_library.zip +0 -0
  10. package/backend/adal-backend/_internal/deep_research/models/model_pricing.json +14 -1
  11. package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_codecs_iso2022.cpython-313-darwin.so +0 -0
  12. package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_codecs_jp.cpython-313-darwin.so +0 -0
  13. package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_curses.cpython-313-darwin.so +0 -0
  14. package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_datetime.cpython-313-darwin.so +0 -0
  15. package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_decimal.cpython-313-darwin.so +0 -0
  16. package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_elementtree.cpython-313-darwin.so +0 -0
  17. package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_hashlib.cpython-313-darwin.so +0 -0
  18. package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_json.cpython-313-darwin.so +0 -0
  19. package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_lzma.cpython-313-darwin.so +0 -0
  20. package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_pickle.cpython-313-darwin.so +0 -0
  21. package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_posixsubprocess.cpython-313-darwin.so +0 -0
  22. package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_random.cpython-313-darwin.so +0 -0
  23. package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_socket.cpython-313-darwin.so +0 -0
  24. package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_sqlite3.cpython-313-darwin.so +0 -0
  25. package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_ssl.cpython-313-darwin.so +0 -0
  26. package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_struct.cpython-313-darwin.so +0 -0
  27. package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/array.cpython-313-darwin.so +0 -0
  28. package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/binascii.cpython-313-darwin.so +0 -0
  29. package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/fcntl.cpython-313-darwin.so +0 -0
  30. package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/math.cpython-313-darwin.so +0 -0
  31. package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/pyexpat.cpython-313-darwin.so +0 -0
  32. package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/termios.cpython-313-darwin.so +0 -0
  33. package/backend/adal-backend/_internal/{mcp-1.22.0.dist-info → mcp-1.13.1.dist-info}/METADATA +31 -347
  34. package/backend/adal-backend/_internal/mcp-1.13.1.dist-info/RECORD +88 -0
  35. package/backend/adal-backend/_internal/rpds/rpds.cpython-313-darwin.so +0 -0
  36. package/backend/adal-backend/adal-backend +0 -0
  37. package/package.json +1 -1
  38. package/backend/adal-backend/_internal/_cffi_backend.cpython-313-darwin.so +0 -0
  39. package/backend/adal-backend/_internal/cryptography/hazmat/bindings/_rust.abi3.so +0 -0
  40. package/backend/adal-backend/_internal/cryptography-46.0.3.dist-info/METADATA +0 -139
  41. package/backend/adal-backend/_internal/cryptography-46.0.3.dist-info/RECORD +0 -108
  42. package/backend/adal-backend/_internal/cryptography-46.0.3.dist-info/WHEEL +0 -4
  43. package/backend/adal-backend/_internal/cryptography-46.0.3.dist-info/licenses/LICENSE +0 -3
  44. package/backend/adal-backend/_internal/cryptography-46.0.3.dist-info/licenses/LICENSE.APACHE +0 -202
  45. package/backend/adal-backend/_internal/cryptography-46.0.3.dist-info/licenses/LICENSE.BSD +0 -27
  46. package/backend/adal-backend/_internal/mcp-1.22.0.dist-info/INSTALLER +0 -1
  47. package/backend/adal-backend/_internal/mcp-1.22.0.dist-info/RECORD +0 -94
  48. package/backend/adal-backend/_internal/openai_agents-0.2.11.dist-info/INSTALLER +0 -1
  49. package/backend/adal-backend/_internal/openai_agents-0.2.11.dist-info/METADATA +0 -352
  50. package/backend/adal-backend/_internal/openai_agents-0.2.11.dist-info/RECORD +0 -109
  51. package/backend/adal-backend/_internal/openai_agents-0.2.11.dist-info/WHEEL +0 -4
  52. package/backend/adal-backend/_internal/openai_agents-0.2.11.dist-info/licenses/LICENSE +0 -21
  53. /package/backend/adal-backend/_internal/{setuptools/_vendor/jaraco → jaraco}/text/Lorem ipsum.txt +0 -0
  54. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_asyncio.cpython-313-darwin.so +0 -0
  55. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_bisect.cpython-313-darwin.so +0 -0
  56. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_blake2.cpython-313-darwin.so +0 -0
  57. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_bz2.cpython-313-darwin.so +0 -0
  58. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_codecs_cn.cpython-313-darwin.so +0 -0
  59. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_codecs_hk.cpython-313-darwin.so +0 -0
  60. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_codecs_kr.cpython-313-darwin.so +0 -0
  61. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_codecs_tw.cpython-313-darwin.so +0 -0
  62. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_contextvars.cpython-313-darwin.so +0 -0
  63. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_csv.cpython-313-darwin.so +0 -0
  64. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_ctypes.cpython-313-darwin.so +0 -0
  65. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_heapq.cpython-313-darwin.so +0 -0
  66. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_md5.cpython-313-darwin.so +0 -0
  67. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_multibytecodec.cpython-313-darwin.so +0 -0
  68. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_multiprocessing.cpython-313-darwin.so +0 -0
  69. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_opcode.cpython-313-darwin.so +0 -0
  70. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_posixshmem.cpython-313-darwin.so +0 -0
  71. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_queue.cpython-313-darwin.so +0 -0
  72. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_scproxy.cpython-313-darwin.so +0 -0
  73. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_sha1.cpython-313-darwin.so +0 -0
  74. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_sha2.cpython-313-darwin.so +0 -0
  75. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_sha3.cpython-313-darwin.so +0 -0
  76. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_statistics.cpython-313-darwin.so +0 -0
  77. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_uuid.cpython-313-darwin.so +0 -0
  78. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/_zoneinfo.cpython-313-darwin.so +0 -0
  79. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/grp.cpython-313-darwin.so +0 -0
  80. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/mmap.cpython-313-darwin.so +0 -0
  81. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/readline.cpython-313-darwin.so +0 -0
  82. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/resource.cpython-313-darwin.so +0 -0
  83. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/select.cpython-313-darwin.so +0 -0
  84. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/syslog.cpython-313-darwin.so +0 -0
  85. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/unicodedata.cpython-313-darwin.so +0 -0
  86. /package/backend/adal-backend/_internal/{python3.13/lib-dynload → lib-dynload}/zlib.cpython-313-darwin.so +0 -0
  87. /package/backend/adal-backend/_internal/{cryptography-46.0.3.dist-info → mcp-1.13.1.dist-info}/INSTALLER +0 -0
  88. /package/backend/adal-backend/_internal/{mcp-1.22.0.dist-info → mcp-1.13.1.dist-info}/WHEEL +0 -0
  89. /package/backend/adal-backend/_internal/{mcp-1.22.0.dist-info → mcp-1.13.1.dist-info}/entry_points.txt +0 -0
  90. /package/backend/adal-backend/_internal/{mcp-1.22.0.dist-info → mcp-1.13.1.dist-info}/licenses/LICENSE +0 -0
@@ -1,352 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: openai-agents
3
- Version: 0.2.11
4
- Summary: OpenAI Agents SDK
5
- Project-URL: Homepage, https://openai.github.io/openai-agents-python/
6
- Project-URL: Repository, https://github.com/openai/openai-agents-python
7
- Author-email: OpenAI <support@openai.com>
8
- License-Expression: MIT
9
- License-File: LICENSE
10
- Classifier: Intended Audience :: Developers
11
- Classifier: License :: OSI Approved :: MIT License
12
- Classifier: Operating System :: OS Independent
13
- Classifier: Programming Language :: Python :: 3
14
- Classifier: Programming Language :: Python :: 3.9
15
- Classifier: Programming Language :: Python :: 3.10
16
- Classifier: Programming Language :: Python :: 3.11
17
- Classifier: Programming Language :: Python :: 3.12
18
- Classifier: Programming Language :: Python :: 3.13
19
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
- Classifier: Typing :: Typed
21
- Requires-Python: >=3.9
22
- Requires-Dist: griffe<2,>=1.5.6
23
- Requires-Dist: mcp<2,>=1.11.0; python_version >= '3.10'
24
- Requires-Dist: openai<2,>=1.104.1
25
- Requires-Dist: pydantic<3,>=2.10
26
- Requires-Dist: requests<3,>=2.0
27
- Requires-Dist: types-requests<3,>=2.0
28
- Requires-Dist: typing-extensions<5,>=4.12.2
29
- Provides-Extra: litellm
30
- Requires-Dist: litellm<2,>=1.67.4.post1; extra == 'litellm'
31
- Provides-Extra: realtime
32
- Requires-Dist: websockets<16,>=15.0; extra == 'realtime'
33
- Provides-Extra: sqlalchemy
34
- Requires-Dist: asyncpg>=0.29.0; extra == 'sqlalchemy'
35
- Requires-Dist: sqlalchemy>=2.0; extra == 'sqlalchemy'
36
- Provides-Extra: viz
37
- Requires-Dist: graphviz>=0.17; extra == 'viz'
38
- Provides-Extra: voice
39
- Requires-Dist: numpy<3,>=2.2.0; (python_version >= '3.10') and extra == 'voice'
40
- Requires-Dist: websockets<16,>=15.0; extra == 'voice'
41
- Description-Content-Type: text/markdown
42
-
43
- # OpenAI Agents SDK
44
-
45
- The OpenAI Agents SDK is a lightweight yet powerful framework for building multi-agent workflows. It is provider-agnostic, supporting the OpenAI Responses and Chat Completions APIs, as well as 100+ other LLMs.
46
-
47
- <img src="https://cdn.openai.com/API/docs/images/orchestration.png" alt="Image of the Agents Tracing UI" style="max-height: 803px;">
48
-
49
- > [!NOTE]
50
- > Looking for the JavaScript/TypeScript version? Check out [Agents SDK JS/TS](https://github.com/openai/openai-agents-js).
51
-
52
- ### Core concepts:
53
-
54
- 1. [**Agents**](https://openai.github.io/openai-agents-python/agents): LLMs configured with instructions, tools, guardrails, and handoffs
55
- 2. [**Handoffs**](https://openai.github.io/openai-agents-python/handoffs/): A specialized tool call used by the Agents SDK for transferring control between agents
56
- 3. [**Guardrails**](https://openai.github.io/openai-agents-python/guardrails/): Configurable safety checks for input and output validation
57
- 4. [**Sessions**](#sessions): Automatic conversation history management across agent runs
58
- 5. [**Tracing**](https://openai.github.io/openai-agents-python/tracing/): Built-in tracking of agent runs, allowing you to view, debug and optimize your workflows
59
-
60
- Explore the [examples](examples) directory to see the SDK in action, and read our [documentation](https://openai.github.io/openai-agents-python/) for more details.
61
-
62
- ## Get started
63
-
64
- To get started, set up your Python environment (Python 3.9 or newer required), and then install OpenAI Agents SDK package.
65
-
66
- ### venv
67
-
68
- ```bash
69
- python -m venv .venv
70
- source .venv/bin/activate # On Windows: .venv\Scripts\activate
71
- pip install openai-agents
72
- ```
73
-
74
- For voice support, install with the optional `voice` group: `pip install 'openai-agents[voice]'`.
75
-
76
- ### uv
77
-
78
- If you're familiar with [uv](https://docs.astral.sh/uv/), using the tool would be even similar:
79
-
80
- ```bash
81
- uv init
82
- uv add openai-agents
83
- ```
84
-
85
- For voice support, install with the optional `voice` group: `uv add 'openai-agents[voice]'`.
86
-
87
- ## Hello world example
88
-
89
- ```python
90
- from agents import Agent, Runner
91
-
92
- agent = Agent(name="Assistant", instructions="You are a helpful assistant")
93
-
94
- result = Runner.run_sync(agent, "Write a haiku about recursion in programming.")
95
- print(result.final_output)
96
-
97
- # Code within the code,
98
- # Functions calling themselves,
99
- # Infinite loop's dance.
100
- ```
101
-
102
- (_If running this, ensure you set the `OPENAI_API_KEY` environment variable_)
103
-
104
- (_For Jupyter notebook users, see [hello_world_jupyter.ipynb](examples/basic/hello_world_jupyter.ipynb)_)
105
-
106
- ## Handoffs example
107
-
108
- ```python
109
- from agents import Agent, Runner
110
- import asyncio
111
-
112
- spanish_agent = Agent(
113
- name="Spanish agent",
114
- instructions="You only speak Spanish.",
115
- )
116
-
117
- english_agent = Agent(
118
- name="English agent",
119
- instructions="You only speak English",
120
- )
121
-
122
- triage_agent = Agent(
123
- name="Triage agent",
124
- instructions="Handoff to the appropriate agent based on the language of the request.",
125
- handoffs=[spanish_agent, english_agent],
126
- )
127
-
128
-
129
- async def main():
130
- result = await Runner.run(triage_agent, input="Hola, ¿cómo estás?")
131
- print(result.final_output)
132
- # ¡Hola! Estoy bien, gracias por preguntar. ¿Y tú, cómo estás?
133
-
134
-
135
- if __name__ == "__main__":
136
- asyncio.run(main())
137
- ```
138
-
139
- ## Functions example
140
-
141
- ```python
142
- import asyncio
143
-
144
- from agents import Agent, Runner, function_tool
145
-
146
-
147
- @function_tool
148
- def get_weather(city: str) -> str:
149
- return f"The weather in {city} is sunny."
150
-
151
-
152
- agent = Agent(
153
- name="Hello world",
154
- instructions="You are a helpful agent.",
155
- tools=[get_weather],
156
- )
157
-
158
-
159
- async def main():
160
- result = await Runner.run(agent, input="What's the weather in Tokyo?")
161
- print(result.final_output)
162
- # The weather in Tokyo is sunny.
163
-
164
-
165
- if __name__ == "__main__":
166
- asyncio.run(main())
167
- ```
168
-
169
- ## The agent loop
170
-
171
- When you call `Runner.run()`, we run a loop until we get a final output.
172
-
173
- 1. We call the LLM, using the model and settings on the agent, and the message history.
174
- 2. The LLM returns a response, which may include tool calls.
175
- 3. If the response has a final output (see below for more on this), we return it and end the loop.
176
- 4. If the response has a handoff, we set the agent to the new agent and go back to step 1.
177
- 5. We process the tool calls (if any) and append the tool responses messages. Then we go to step 1.
178
-
179
- There is a `max_turns` parameter that you can use to limit the number of times the loop executes.
180
-
181
- ### Final output
182
-
183
- Final output is the last thing the agent produces in the loop.
184
-
185
- 1. If you set an `output_type` on the agent, the final output is when the LLM returns something of that type. We use [structured outputs](https://platform.openai.com/docs/guides/structured-outputs) for this.
186
- 2. If there's no `output_type` (i.e. plain text responses), then the first LLM response without any tool calls or handoffs is considered as the final output.
187
-
188
- As a result, the mental model for the agent loop is:
189
-
190
- 1. If the current agent has an `output_type`, the loop runs until the agent produces structured output matching that type.
191
- 2. If the current agent does not have an `output_type`, the loop runs until the current agent produces a message without any tool calls/handoffs.
192
-
193
- ## Common agent patterns
194
-
195
- The Agents SDK is designed to be highly flexible, allowing you to model a wide range of LLM workflows including deterministic flows, iterative loops, and more. See examples in [`examples/agent_patterns`](examples/agent_patterns).
196
-
197
- ## Tracing
198
-
199
- The Agents SDK automatically traces your agent runs, making it easy to track and debug the behavior of your agents. Tracing is extensible by design, supporting custom spans and a wide variety of external destinations, including [Logfire](https://logfire.pydantic.dev/docs/integrations/llms/openai/#openai-agents), [AgentOps](https://docs.agentops.ai/v1/integrations/agentssdk), [Braintrust](https://braintrust.dev/docs/guides/traces/integrations#openai-agents-sdk), [Scorecard](https://docs.scorecard.io/docs/documentation/features/tracing#openai-agents-sdk-integration), and [Keywords AI](https://docs.keywordsai.co/integration/development-frameworks/openai-agent). For more details about how to customize or disable tracing, see [Tracing](http://openai.github.io/openai-agents-python/tracing), which also includes a larger list of [external tracing processors](http://openai.github.io/openai-agents-python/tracing/#external-tracing-processors-list).
200
-
201
- ## Long running agents & human-in-the-loop
202
-
203
- You can use the Agents SDK [Temporal](https://temporal.io/) integration to run durable, long-running workflows, including human-in-the-loop tasks. View a demo of Temporal and the Agents SDK working in action to complete long-running tasks [in this video](https://www.youtube.com/watch?v=fFBZqzT4DD8), and [view docs here](https://github.com/temporalio/sdk-python/tree/main/temporalio/contrib/openai_agents).
204
-
205
- ## Sessions
206
-
207
- The Agents SDK provides built-in session memory to automatically maintain conversation history across multiple agent runs, eliminating the need to manually handle `.to_input_list()` between turns.
208
-
209
- ### Quick start
210
-
211
- ```python
212
- from agents import Agent, Runner, SQLiteSession
213
-
214
- # Create agent
215
- agent = Agent(
216
- name="Assistant",
217
- instructions="Reply very concisely.",
218
- )
219
-
220
- # Create a session instance
221
- session = SQLiteSession("conversation_123")
222
-
223
- # First turn
224
- result = await Runner.run(
225
- agent,
226
- "What city is the Golden Gate Bridge in?",
227
- session=session
228
- )
229
- print(result.final_output) # "San Francisco"
230
-
231
- # Second turn - agent automatically remembers previous context
232
- result = await Runner.run(
233
- agent,
234
- "What state is it in?",
235
- session=session
236
- )
237
- print(result.final_output) # "California"
238
-
239
- # Also works with synchronous runner
240
- result = Runner.run_sync(
241
- agent,
242
- "What's the population?",
243
- session=session
244
- )
245
- print(result.final_output) # "Approximately 39 million"
246
- ```
247
-
248
- ### Session options
249
-
250
- - **No memory** (default): No session memory when session parameter is omitted
251
- - **`session: Session = DatabaseSession(...)`**: Use a Session instance to manage conversation history
252
-
253
- ```python
254
- from agents import Agent, Runner, SQLiteSession
255
-
256
- # Custom SQLite database file
257
- session = SQLiteSession("user_123", "conversations.db")
258
- agent = Agent(name="Assistant")
259
-
260
- # Different session IDs maintain separate conversation histories
261
- result1 = await Runner.run(
262
- agent,
263
- "Hello",
264
- session=session
265
- )
266
- result2 = await Runner.run(
267
- agent,
268
- "Hello",
269
- session=SQLiteSession("user_456", "conversations.db")
270
- )
271
- ```
272
-
273
- ### Custom session implementations
274
-
275
- You can implement your own session memory by creating a class that follows the `Session` protocol:
276
-
277
- ```python
278
- from agents.memory import Session
279
- from typing import List
280
-
281
- class MyCustomSession:
282
- """Custom session implementation following the Session protocol."""
283
-
284
- def __init__(self, session_id: str):
285
- self.session_id = session_id
286
- # Your initialization here
287
-
288
- async def get_items(self, limit: int | None = None) -> List[dict]:
289
- # Retrieve conversation history for the session
290
- pass
291
-
292
- async def add_items(self, items: List[dict]) -> None:
293
- # Store new items for the session
294
- pass
295
-
296
- async def pop_item(self) -> dict | None:
297
- # Remove and return the most recent item from the session
298
- pass
299
-
300
- async def clear_session(self) -> None:
301
- # Clear all items for the session
302
- pass
303
-
304
- # Use your custom session
305
- agent = Agent(name="Assistant")
306
- result = await Runner.run(
307
- agent,
308
- "Hello",
309
- session=MyCustomSession("my_session")
310
- )
311
- ```
312
-
313
- ## Development (only needed if you need to edit the SDK/examples)
314
-
315
- 0. Ensure you have [`uv`](https://docs.astral.sh/uv/) installed.
316
-
317
- ```bash
318
- uv --version
319
- ```
320
-
321
- 1. Install dependencies
322
-
323
- ```bash
324
- make sync
325
- ```
326
-
327
- 2. (After making changes) lint/test
328
-
329
- ```
330
- make check # run tests linter and typechecker
331
- ```
332
-
333
- Or to run them individually:
334
-
335
- ```
336
- make tests # run tests
337
- make mypy # run typechecker
338
- make lint # run linter
339
- make format-check # run style checker
340
- ```
341
-
342
- ## Acknowledgements
343
-
344
- We'd like to acknowledge the excellent work of the open-source community, especially:
345
-
346
- - [Pydantic](https://docs.pydantic.dev/latest/) (data validation) and [PydanticAI](https://ai.pydantic.dev/) (advanced agent framework)
347
- - [LiteLLM](https://github.com/BerriAI/litellm) (unified interface for 100+ LLMs)
348
- - [MkDocs](https://github.com/squidfunk/mkdocs-material)
349
- - [Griffe](https://github.com/mkdocstrings/griffe)
350
- - [uv](https://github.com/astral-sh/uv) and [ruff](https://github.com/astral-sh/ruff)
351
-
352
- We're committed to continuing to build the Agents SDK as an open source framework so others in the community can expand on our approach.
@@ -1,109 +0,0 @@
1
- agents/__init__.py,sha256=Kr6-8HItTfnz5HFS9x7PVD99v_Lu9VxlE27UjX3BH8M,8000
2
- agents/_config.py,sha256=ANrM7GP2VSQehDkMc9qocxkUlPwqU-i5sieMJyEwxpM,796
3
- agents/_debug.py,sha256=7OKys2lDjeCtGggTkM53m_8vw0WIr3yt-_JPBDAnsw0,608
4
- agents/_run_impl.py,sha256=cEGeEQDc3NCNGwwfpKWnTCXgxyznSmWgDpQkRq-6JgM,46461
5
- agents/agent.py,sha256=IINVHZyO5iFTN3rf94YB9Hv3hUIOouVUFt9cagSJwvQ,19120
6
- agents/agent_output.py,sha256=teTFK8unUN3esXhmEBO0bQGYQm1Axd5rYleDt9TFDgw,7153
7
- agents/computer.py,sha256=XD44UgiUWSfniv-xKwwDP6wFKVwBiZkpaL1hO-0-7ZA,2516
8
- agents/exceptions.py,sha256=NHMdHE0cZ6AdA6UgUylTzVHAX05Ol1CkO814a0FdZcs,2862
9
- agents/function_schema.py,sha256=jXdpjl90lODRzdoOR_kUmEbfA3T8Dfa7kkSV8xWQDDo,13558
10
- agents/guardrail.py,sha256=7P-kd9rKPhgB8rtI31MCV5ho4ZrEaNCQxHvE8IK3EOk,9582
11
- agents/handoffs.py,sha256=kDTM3nj3E_0khiJPMJAIN00gektMTRNbaYSbc5ZCnBM,11411
12
- agents/items.py,sha256=aHo7KTXZLBcHSrKHWDaBB6L7XmBCAIekG5e0xOIhkyM,9828
13
- agents/lifecycle.py,sha256=hGsqzumOSaal6oAjTqTfvBXl-ShAOkC42sthJigB5Fg,4308
14
- agents/logger.py,sha256=p_ef7vWKpBev5FFybPJjhrCCQizK08Yy1A2EDO1SNNg,60
15
- agents/model_settings.py,sha256=7Ul-Xg-aNVXIbK6V4Rm2t5EEfNR0tsy_A9ac_wFqLLk,6828
16
- agents/prompts.py,sha256=Ss5y_7s2HFcRAOAKu4WTxQszs5ybI8TfbxgEYdnj9sg,2231
17
- agents/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
18
- agents/repl.py,sha256=NX0BE5YDnmGQ2rdQsmLm3CKkQZ5m4GC95xXmUsAXJVs,2539
19
- agents/result.py,sha256=YCGYHoc5X1_vLKu5QiK6F8C1ZXI3tTfLXaZoqbYgUMA,10753
20
- agents/run.py,sha256=pPVHg6NexEriaBSAOHjDaioEi5pKnEcUXkSaofIxtNM,62260
21
- agents/run_context.py,sha256=vuSUQM8O4CLensQY27-22fOqECnw7yvwL9U3WO8b_bk,851
22
- agents/stream_events.py,sha256=VFyTu-DT3ZMnHLtMbg-X_lxec0doQxNfx-hVxLB0BpI,1700
23
- agents/strict_schema.py,sha256=_KuEJkglmq-Fj3HSeYP4WqTvqrxbSKu6gezfz5Brhh0,5775
24
- agents/tool.py,sha256=1B2GgRlPIAhiS4uxzot9mpdaAOJyIKzikzCzIDPawDE,17031
25
- agents/tool_context.py,sha256=lbnctijZeanXAThddkklF7vDrXK1Ie2_wx6JZPCOihI,1434
26
- agents/usage.py,sha256=Tb5udGd3DPgD0JBdRD8fDctTE4M-zKML5uRn8ZG1yBc,1675
27
- agents/version.py,sha256=_1knUwzSK-HUeZTpRUkk6Z-CIcurqXuEplbV5TLJ08E,230
28
- agents/extensions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
- agents/extensions/handoff_filters.py,sha256=Bzkjb1SmIHoibgO26oesNO2Qdx2avfDGkHrSTb-XAr0,2029
30
- agents/extensions/handoff_prompt.py,sha256=oGWN0uNh3Z1L7E-Ev2up8W084fFrDNOsLDy7P6bcmic,1006
31
- agents/extensions/visualization.py,sha256=sf9D_C-HMwkbWdZccTZvvMPRy_NSiwbm48tRJlESQBI,5144
32
- agents/extensions/memory/__init__.py,sha256=Yionp3G3pj53zenHPZUHhR9aIDVEpu0d_PcvdytBRes,534
33
- agents/extensions/memory/sqlalchemy_session.py,sha256=H0aykdB4lUikmzKgwWQqI1PSYZBvHA4TDnaj9rP4HDI,11583
34
- agents/extensions/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
- agents/extensions/models/litellm_model.py,sha256=cDLOcZVojLx-CZbipVJ5dn4RnXdegrXSPROVR-5Lxdc,15883
36
- agents/extensions/models/litellm_provider.py,sha256=ZHgh1nMoEvA7NpawkzLh3JDuDFtwXUV94Rs7UrwWqAk,1083
37
- agents/mcp/__init__.py,sha256=yHmmYlrmEHzUas1inRLKL2iPqbb_-107G3gKe_tyg4I,750
38
- agents/mcp/server.py,sha256=4T58xiWCLiCm6JoUy_3jYWz5A8ZNsHiV1hIxjahoedU,26624
39
- agents/mcp/util.py,sha256=YVdPst1wWkTwbeshs-FYbr_MtrYJwO_4NzhSwj5aE5c,8239
40
- agents/memory/__init__.py,sha256=H6Nh01MRlinnEFb2Ca0ezqerIzAHuJ1izeXeYhkPrUM,255
41
- agents/memory/openai_conversations_session.py,sha256=Xiod8qk-qX4-348FvLLIG35fy0m_JiQkNqNF_woc_a8,3341
42
- agents/memory/session.py,sha256=pyyFn3r07ydhoy7vn1e_ky9OUa1a_7DKoEo8aZz2d3s,3038
43
- agents/memory/sqlite_session.py,sha256=6HGzSL70mQgutITIPZUC2x2Qtj6U4hXiZTceu3Da7TM,10130
44
- agents/models/__init__.py,sha256=E0XVqWayVAsFqxucDLBW30siaqfNQsVrAnfidG_C3ok,287
45
- agents/models/_openai_shared.py,sha256=4Ngwo2Fv2RXY61Pqck1cYPkSln2tDnb8Ai-ao4QG-iE,836
46
- agents/models/chatcmpl_converter.py,sha256=fZHui5V0KwTr27L_Io-4iQxPXr0ZoEMOv1_kJNxW-y8,20320
47
- agents/models/chatcmpl_helpers.py,sha256=eIWySobaH7I0AQijAz5i-_rtsXrSvmEHD567s_8Zw1o,1318
48
- agents/models/chatcmpl_stream_handler.py,sha256=LEaQ6N9AgzOSczo3fTrv-ckkb1guBGiuNeHBAaoinCE,27429
49
- agents/models/default_models.py,sha256=mlvBePn8H4UkHo7lN-wh7A3k2ciLgBUFKpROQxzdTfs,2098
50
- agents/models/fake_id.py,sha256=lbXjUUSMeAQ8eFx4V5QLUnBClHE6adJlYYav55RlG5w,268
51
- agents/models/interface.py,sha256=-AFUHC8iRuGZmtQwguDw4s-M4OPL2y2mct4TAmWvVrU,4057
52
- agents/models/multi_provider.py,sha256=aiDbls5G4YomPfN6qH1pGlj41WS5jlDp2T82zm6qcnM,5578
53
- agents/models/openai_chatcompletions.py,sha256=abwQj8CqUHa2KB4NC_DVeJhZOygyAnr4N4maZtYhchU,13321
54
- agents/models/openai_provider.py,sha256=vBu3mlgDBrI_cZVVmfnWBHoPlJlsmld3lfdX8sNQQAM,3624
55
- agents/models/openai_responses.py,sha256=MagaTTlq0tpTzQbOiSHHLOURcthu_dnNp71Lwq3lqjs,18222
56
- agents/realtime/README.md,sha256=5YCYXH5ULmlWoWo1PE9TlbHjeYgjnp-xY8ZssSFY2Vk,126
57
- agents/realtime/__init__.py,sha256=7qvzK8QJuHRnPHxDgDj21v8-lnSN4Uurg9znwJv_Tqg,4923
58
- agents/realtime/_default_tracker.py,sha256=4OMxBvD1MnZmMn6JZYKL42uWhVzvK6NdDLDfPP54d78,1765
59
- agents/realtime/_util.py,sha256=uawurhWKi3_twNFcZ5Yn1mVvv0RKl4IoyCSag8hGxrE,313
60
- agents/realtime/agent.py,sha256=yZDgycnLFtJcfl7UHak5GEyL2vdBGxegfqEiuuzGPEk,4027
61
- agents/realtime/config.py,sha256=49ZsKY9ySBFRfiL3RGWW1aVNhahzmoNATb3Buj2npJk,5963
62
- agents/realtime/events.py,sha256=eANiNNyYlp_1Ybdl-MOwXRVTDtrK9hfgn6iw0xNxnaY,5889
63
- agents/realtime/handoffs.py,sha256=avLFix5kEutel57IRcddssGiVHzGptOzWL9OqPaLVh8,6702
64
- agents/realtime/items.py,sha256=psT6AH65qmngmPsgwk6CXacVo5tEDYq0Za3EitHFpTA,5052
65
- agents/realtime/model.py,sha256=Lnb9pEcvnlIdXJUcldVyioaX5lpmrBou5FZoNJe4XfA,6457
66
- agents/realtime/model_events.py,sha256=YixBKmzlCrhtzCosj0SysyZpyHbZ90455gDr4Kr7Ey8,4338
67
- agents/realtime/model_inputs.py,sha256=OW2bn3wD5_pXLunDUf35jhG2q_bTKbC_D7Qu-83aOEA,2243
68
- agents/realtime/openai_realtime.py,sha256=MVg_OzVLmC7vHWr580P42TJlY32PzGAvY40JaUmM6x0,31676
69
- agents/realtime/runner.py,sha256=KfU7utmc9QFH2htIKN2IN9H-5EnB0qN9ezmvlRTnOm4,2511
70
- agents/realtime/session.py,sha256=hPIxQSsVh5whkgYnEpxk_AgvG3suuDVnpPyqVoPJBRM,26822
71
- agents/tracing/__init__.py,sha256=5HO_6na5S6EwICgwl50OMtxiIIosUrqalhvldlYvSVc,2991
72
- agents/tracing/create.py,sha256=xpJ4ZRnGyUDPKoVVkA_8hmdhtwOKGhSkwRco2AQIhAo,18003
73
- agents/tracing/logger.py,sha256=J4KUDRSGa7x5UVfUwWe-gbKwoaq8AeETRqkPt3QvtGg,68
74
- agents/tracing/processor_interface.py,sha256=e1mWcIAoQFHID1BapcrAZ6MxZg98bPVYgbOPclVoCXc,1660
75
- agents/tracing/processors.py,sha256=yAGJ2aIlhU5kvdDLBx1R9_Qsbuq3296b0743GYbSnYM,11432
76
- agents/tracing/provider.py,sha256=a8bOZtBUih13Gjq8OtyIcx3AWJmCErc43gqPrccx_5k,10098
77
- agents/tracing/scope.py,sha256=u17_m8RPpGvbHrTkaO_kDi5ROBWhfOAIgBe7suiaRD4,1445
78
- agents/tracing/setup.py,sha256=2h9TH1GAKcXKM1U99dOKKR3XlHp8JKzh2JG3DQPKyhY,612
79
- agents/tracing/span_data.py,sha256=nI2Fbu1ORE8ybE6m6RuddTJF5E5xFmEj8Mq5bSFv4bE,9017
80
- agents/tracing/spans.py,sha256=6vVzocGMsdgIma1ksqkBZmhar91xj4RpgcpUC3iibqg,6606
81
- agents/tracing/traces.py,sha256=EU5KNlNOTC9GFBls5ONDA0FkaUdLrM6y-cLK5953kqE,4784
82
- agents/tracing/util.py,sha256=J7IZgVDmeW0aZDw8LBSjBKrlQbcOmaqZE7XQjolPwi8,490
83
- agents/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
84
- agents/util/_coro.py,sha256=S38XUYFC7bqTELSgMUBsAX1GoRlIrV7coupcUAWH__4,45
85
- agents/util/_error_tracing.py,sha256=hdkYNx180b18lP0PSB1toE5atNHsMg_Bm9Osw812vLo,421
86
- agents/util/_json.py,sha256=eKeQeMlQkBXRFeL3ilNZFmszGyfhtzZdW_GW_As6dcg,972
87
- agents/util/_pretty_print.py,sha256=pnrM81KRG4G21jZnYrYBCkPgtUeP8qcnJm-9tpAV1WA,2738
88
- agents/util/_transforms.py,sha256=CZe74NOHkHneyo4fHYfFWksCSTn-kXtEyejL9P0_xlA,270
89
- agents/util/_types.py,sha256=8KxYfCw0gYSMWcQmacJoc3Q7Lc46LmT-AWvhF10KJ-E,160
90
- agents/voice/__init__.py,sha256=4VWBUjyoXC6dGFuk-oZQGg8T32bFxVwy371c-zDK-EU,1537
91
- agents/voice/events.py,sha256=4aPAZC0__ocgmg_mcX4c1zv9Go-YdKIVItQ2kYgtye0,1216
92
- agents/voice/exceptions.py,sha256=QcyfvaUTBe4gxbFP82oDSa_puzZ4Z4O4k01B8pAHnK0,233
93
- agents/voice/imports.py,sha256=VaE5I8aJTP9Zl_0-y9dx1UcAP7KPRDMaikFK2jFnn8s,348
94
- agents/voice/input.py,sha256=FSbdHMIdLVKX4vYcmf3WBJ5dAlh5zMDjCAuGfXOZTQs,2910
95
- agents/voice/model.py,sha256=LWnIWEwU0-aFkff3kbTKkxejnYqzS2XHG5Qm2YcrzFI,5956
96
- agents/voice/pipeline.py,sha256=F_b9QSPVbIJAlxpDoHqSt3mWqRqLnm8Dbfk4H9sJ-3M,6491
97
- agents/voice/pipeline_config.py,sha256=_cynbnzxvQijxkGrMYHJzIV54F9bRvDsPV24qexVO8c,1759
98
- agents/voice/result.py,sha256=Yx9JCMGCE9OfXacaBFfFLQJRwkNo5-h4Nqm9OPnemU4,11107
99
- agents/voice/utils.py,sha256=MrRomVqBLXeMAOue-Itwh0Fc5HjB0QCMKXclqFPhrbI,1309
100
- agents/voice/workflow.py,sha256=m_-_4qU1gEE5gcGahiE2IrIimmRW2X1rR20zZEGivSc,3795
101
- agents/voice/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
102
- agents/voice/models/openai_model_provider.py,sha256=Khn0uT-VhsEbe7_OhBMGFQzXNwL80gcWZyTHl3CaBII,3587
103
- agents/voice/models/openai_stt.py,sha256=LcVDS7f1pmbm--PWX-IaV9uLg9uv5_L3vSCbVnTJeGs,16864
104
- agents/voice/models/openai_tts.py,sha256=4KoLQuFDHKu5a1VTJlu9Nj3MHwMlrn9wfT_liJDJ2dw,1477
105
- openai_agents-0.2.11.dist-info/METADATA,sha256=Uo-6qX652GabhL5x0gMkYNoLCaXx4maS2xfavemZeJ8,12381
106
- openai_agents-0.2.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
107
- openai_agents-0.2.11.dist-info/licenses/LICENSE,sha256=E994EspT7Krhy0qGiES7WYNzBHrh1YDk3r--8d1baRU,1063
108
- openai_agents-0.2.11.dist-info/INSTALLER,sha256=sz0Tnp99msIbbLB51q7U9nA6AvRKcsOeUKhrHH0Ulg4,12
109
- openai_agents-0.2.11.dist-info/RECORD,,
@@ -1,4 +0,0 @@
1
- Wheel-Version: 1.0
2
- Generator: hatchling 1.27.0
3
- Root-Is-Purelib: true
4
- Tag: py3-none-any
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 OpenAI
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.