diff --git a/examples/__pycache__/__init__.cpython-313.pyc b/examples/__pycache__/__init__.cpython-313.pyc deleted file mode 100644 index b6900478..00000000 Binary files a/examples/__pycache__/__init__.cpython-313.pyc and /dev/null differ diff --git a/examples/tools/computer_use.py b/examples/tools/computer_use.py index 35fc865d..ae339552 100644 --- a/examples/tools/computer_use.py +++ b/examples/tools/computer_use.py @@ -28,7 +28,7 @@ async def main(): instructions="You are a helpful agent.", tools=[ComputerTool(computer)], # Use the computer using model, and set truncation to auto because its required - model="computer-use-preview-2025-02-04", + model="computer-use-preview", model_settings=ModelSettings(truncation="auto"), ) result = await Runner.run(agent, "Search for SF sports news and summarize.") diff --git a/src/agents/__pycache__/__init__.cpython-311.pyc b/src/agents/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index daf05e7e..00000000 Binary files a/src/agents/__pycache__/__init__.cpython-311.pyc and /dev/null differ diff --git a/src/agents/__pycache__/__init__.cpython-313.pyc b/src/agents/__pycache__/__init__.cpython-313.pyc deleted file mode 100644 index 8d9218c7..00000000 Binary files a/src/agents/__pycache__/__init__.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/__init__.cpython-39.pyc b/src/agents/__pycache__/__init__.cpython-39.pyc deleted file mode 100644 index f7f3ec7d..00000000 Binary files a/src/agents/__pycache__/__init__.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/_config.cpython-311.pyc b/src/agents/__pycache__/_config.cpython-311.pyc deleted file mode 100644 index 6fd0d6a7..00000000 Binary files a/src/agents/__pycache__/_config.cpython-311.pyc and /dev/null differ diff --git a/src/agents/__pycache__/_config.cpython-313.pyc b/src/agents/__pycache__/_config.cpython-313.pyc deleted file mode 100644 index b0386911..00000000 Binary files a/src/agents/__pycache__/_config.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/_config.cpython-39.pyc b/src/agents/__pycache__/_config.cpython-39.pyc deleted file mode 100644 index 3e54f44e..00000000 Binary files a/src/agents/__pycache__/_config.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/_debug.cpython-313.pyc b/src/agents/__pycache__/_debug.cpython-313.pyc deleted file mode 100644 index 19e29135..00000000 Binary files a/src/agents/__pycache__/_debug.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/_debug.cpython-39.pyc b/src/agents/__pycache__/_debug.cpython-39.pyc deleted file mode 100644 index 796f5099..00000000 Binary files a/src/agents/__pycache__/_debug.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/_run_impl.cpython-313.pyc b/src/agents/__pycache__/_run_impl.cpython-313.pyc deleted file mode 100644 index 22bd441d..00000000 Binary files a/src/agents/__pycache__/_run_impl.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/_run_impl.cpython-39.pyc b/src/agents/__pycache__/_run_impl.cpython-39.pyc deleted file mode 100644 index b26111b6..00000000 Binary files a/src/agents/__pycache__/_run_impl.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/_strict_schema.cpython-313.pyc b/src/agents/__pycache__/_strict_schema.cpython-313.pyc deleted file mode 100644 index 54b08cff..00000000 Binary files a/src/agents/__pycache__/_strict_schema.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/_utils.cpython-313.pyc b/src/agents/__pycache__/_utils.cpython-313.pyc deleted file mode 100644 index af2c299c..00000000 Binary files a/src/agents/__pycache__/_utils.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/_utils.cpython-39.pyc b/src/agents/__pycache__/_utils.cpython-39.pyc deleted file mode 100644 index bf6557a6..00000000 Binary files a/src/agents/__pycache__/_utils.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/agent.cpython-311.pyc b/src/agents/__pycache__/agent.cpython-311.pyc deleted file mode 100644 index 3579bbed..00000000 Binary files a/src/agents/__pycache__/agent.cpython-311.pyc and /dev/null differ diff --git a/src/agents/__pycache__/agent.cpython-313.pyc b/src/agents/__pycache__/agent.cpython-313.pyc deleted file mode 100644 index 5347fb14..00000000 Binary files a/src/agents/__pycache__/agent.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/agent.cpython-39.pyc b/src/agents/__pycache__/agent.cpython-39.pyc deleted file mode 100644 index b494ffe4..00000000 Binary files a/src/agents/__pycache__/agent.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/agent_output.cpython-313.pyc b/src/agents/__pycache__/agent_output.cpython-313.pyc deleted file mode 100644 index b527f54e..00000000 Binary files a/src/agents/__pycache__/agent_output.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/agent_output.cpython-39.pyc b/src/agents/__pycache__/agent_output.cpython-39.pyc deleted file mode 100644 index dfc5353b..00000000 Binary files a/src/agents/__pycache__/agent_output.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/call_agent_tool.cpython-313.pyc b/src/agents/__pycache__/call_agent_tool.cpython-313.pyc deleted file mode 100644 index 281eefcb..00000000 Binary files a/src/agents/__pycache__/call_agent_tool.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/call_agent_tool.cpython-39.pyc b/src/agents/__pycache__/call_agent_tool.cpython-39.pyc deleted file mode 100644 index 3502ff97..00000000 Binary files a/src/agents/__pycache__/call_agent_tool.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/computer.cpython-313.pyc b/src/agents/__pycache__/computer.cpython-313.pyc deleted file mode 100644 index b1084258..00000000 Binary files a/src/agents/__pycache__/computer.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/computer.cpython-39.pyc b/src/agents/__pycache__/computer.cpython-39.pyc deleted file mode 100644 index df273d50..00000000 Binary files a/src/agents/__pycache__/computer.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/exceptions.cpython-311.pyc b/src/agents/__pycache__/exceptions.cpython-311.pyc deleted file mode 100644 index 4d851c8e..00000000 Binary files a/src/agents/__pycache__/exceptions.cpython-311.pyc and /dev/null differ diff --git a/src/agents/__pycache__/exceptions.cpython-313.pyc b/src/agents/__pycache__/exceptions.cpython-313.pyc deleted file mode 100644 index 7fa36452..00000000 Binary files a/src/agents/__pycache__/exceptions.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/exceptions.cpython-39.pyc b/src/agents/__pycache__/exceptions.cpython-39.pyc deleted file mode 100644 index f18ec51c..00000000 Binary files a/src/agents/__pycache__/exceptions.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/function_schema.cpython-313.pyc b/src/agents/__pycache__/function_schema.cpython-313.pyc deleted file mode 100644 index 3f2547f2..00000000 Binary files a/src/agents/__pycache__/function_schema.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/function_schema.cpython-39.pyc b/src/agents/__pycache__/function_schema.cpython-39.pyc deleted file mode 100644 index 5e7ffdd9..00000000 Binary files a/src/agents/__pycache__/function_schema.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/guardrail.cpython-311.pyc b/src/agents/__pycache__/guardrail.cpython-311.pyc deleted file mode 100644 index 5a7e4dfe..00000000 Binary files a/src/agents/__pycache__/guardrail.cpython-311.pyc and /dev/null differ diff --git a/src/agents/__pycache__/guardrail.cpython-313.pyc b/src/agents/__pycache__/guardrail.cpython-313.pyc deleted file mode 100644 index edcd014f..00000000 Binary files a/src/agents/__pycache__/guardrail.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/guardrail.cpython-39.pyc b/src/agents/__pycache__/guardrail.cpython-39.pyc deleted file mode 100644 index ce0385b4..00000000 Binary files a/src/agents/__pycache__/guardrail.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/guardrail_base.cpython-313.pyc b/src/agents/__pycache__/guardrail_base.cpython-313.pyc deleted file mode 100644 index 525e91e8..00000000 Binary files a/src/agents/__pycache__/guardrail_base.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/guardrail_base.cpython-39.pyc b/src/agents/__pycache__/guardrail_base.cpython-39.pyc deleted file mode 100644 index 400cd36c..00000000 Binary files a/src/agents/__pycache__/guardrail_base.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/guardrails.cpython-313.pyc b/src/agents/__pycache__/guardrails.cpython-313.pyc deleted file mode 100644 index bec8e3f8..00000000 Binary files a/src/agents/__pycache__/guardrails.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/handoff.cpython-313.pyc b/src/agents/__pycache__/handoff.cpython-313.pyc deleted file mode 100644 index 5442e419..00000000 Binary files a/src/agents/__pycache__/handoff.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/handoff.cpython-39.pyc b/src/agents/__pycache__/handoff.cpython-39.pyc deleted file mode 100644 index 753a02ea..00000000 Binary files a/src/agents/__pycache__/handoff.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/handoffs.cpython-313.pyc b/src/agents/__pycache__/handoffs.cpython-313.pyc deleted file mode 100644 index 9fe87884..00000000 Binary files a/src/agents/__pycache__/handoffs.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/handoffs.cpython-39.pyc b/src/agents/__pycache__/handoffs.cpython-39.pyc deleted file mode 100644 index 64f8bb0c..00000000 Binary files a/src/agents/__pycache__/handoffs.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/items.cpython-311.pyc b/src/agents/__pycache__/items.cpython-311.pyc deleted file mode 100644 index 6b0149fe..00000000 Binary files a/src/agents/__pycache__/items.cpython-311.pyc and /dev/null differ diff --git a/src/agents/__pycache__/items.cpython-313.pyc b/src/agents/__pycache__/items.cpython-313.pyc deleted file mode 100644 index 8410c679..00000000 Binary files a/src/agents/__pycache__/items.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/items.cpython-39.pyc b/src/agents/__pycache__/items.cpython-39.pyc deleted file mode 100644 index 7245ae29..00000000 Binary files a/src/agents/__pycache__/items.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/lifecycle.cpython-313.pyc b/src/agents/__pycache__/lifecycle.cpython-313.pyc deleted file mode 100644 index e1ccf5e1..00000000 Binary files a/src/agents/__pycache__/lifecycle.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/lifecycle.cpython-39.pyc b/src/agents/__pycache__/lifecycle.cpython-39.pyc deleted file mode 100644 index 82a6eef7..00000000 Binary files a/src/agents/__pycache__/lifecycle.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/logger.cpython-313.pyc b/src/agents/__pycache__/logger.cpython-313.pyc deleted file mode 100644 index 24bf9161..00000000 Binary files a/src/agents/__pycache__/logger.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/logger.cpython-39.pyc b/src/agents/__pycache__/logger.cpython-39.pyc deleted file mode 100644 index 360a1a3b..00000000 Binary files a/src/agents/__pycache__/logger.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/model_settings.cpython-313.pyc b/src/agents/__pycache__/model_settings.cpython-313.pyc deleted file mode 100644 index c7465166..00000000 Binary files a/src/agents/__pycache__/model_settings.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/model_settings.cpython-39.pyc b/src/agents/__pycache__/model_settings.cpython-39.pyc deleted file mode 100644 index 1ac8110a..00000000 Binary files a/src/agents/__pycache__/model_settings.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/output_tool.cpython-313.pyc b/src/agents/__pycache__/output_tool.cpython-313.pyc deleted file mode 100644 index 3569e335..00000000 Binary files a/src/agents/__pycache__/output_tool.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/output_tool.cpython-39.pyc b/src/agents/__pycache__/output_tool.cpython-39.pyc deleted file mode 100644 index 3bc8d2e5..00000000 Binary files a/src/agents/__pycache__/output_tool.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/result.cpython-313.pyc b/src/agents/__pycache__/result.cpython-313.pyc deleted file mode 100644 index d1c647a7..00000000 Binary files a/src/agents/__pycache__/result.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/result.cpython-39.pyc b/src/agents/__pycache__/result.cpython-39.pyc deleted file mode 100644 index 94a7e8c2..00000000 Binary files a/src/agents/__pycache__/result.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/run.cpython-313.pyc b/src/agents/__pycache__/run.cpython-313.pyc deleted file mode 100644 index d127b935..00000000 Binary files a/src/agents/__pycache__/run.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/run.cpython-39.pyc b/src/agents/__pycache__/run.cpython-39.pyc deleted file mode 100644 index eb73263a..00000000 Binary files a/src/agents/__pycache__/run.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/run_context.cpython-313.pyc b/src/agents/__pycache__/run_context.cpython-313.pyc deleted file mode 100644 index 72a6585a..00000000 Binary files a/src/agents/__pycache__/run_context.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/run_context.cpython-39.pyc b/src/agents/__pycache__/run_context.cpython-39.pyc deleted file mode 100644 index 2f8fc216..00000000 Binary files a/src/agents/__pycache__/run_context.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/stream_events.cpython-313.pyc b/src/agents/__pycache__/stream_events.cpython-313.pyc deleted file mode 100644 index ee957ee6..00000000 Binary files a/src/agents/__pycache__/stream_events.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/stream_events.cpython-39.pyc b/src/agents/__pycache__/stream_events.cpython-39.pyc deleted file mode 100644 index 3946c1b2..00000000 Binary files a/src/agents/__pycache__/stream_events.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/strict_schema.cpython-313.pyc b/src/agents/__pycache__/strict_schema.cpython-313.pyc deleted file mode 100644 index 79b6205a..00000000 Binary files a/src/agents/__pycache__/strict_schema.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/strict_schema.cpython-39.pyc b/src/agents/__pycache__/strict_schema.cpython-39.pyc deleted file mode 100644 index 50d5644d..00000000 Binary files a/src/agents/__pycache__/strict_schema.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/tool.cpython-313.pyc b/src/agents/__pycache__/tool.cpython-313.pyc deleted file mode 100644 index cb3a1197..00000000 Binary files a/src/agents/__pycache__/tool.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/tool.cpython-39.pyc b/src/agents/__pycache__/tool.cpython-39.pyc deleted file mode 100644 index 8318baa4..00000000 Binary files a/src/agents/__pycache__/tool.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/tool_converter.cpython-313.pyc b/src/agents/__pycache__/tool_converter.cpython-313.pyc deleted file mode 100644 index e6400c54..00000000 Binary files a/src/agents/__pycache__/tool_converter.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/tool_converter.cpython-39.pyc b/src/agents/__pycache__/tool_converter.cpython-39.pyc deleted file mode 100644 index 9ee20bd4..00000000 Binary files a/src/agents/__pycache__/tool_converter.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/usage.cpython-313.pyc b/src/agents/__pycache__/usage.cpython-313.pyc deleted file mode 100644 index 057a30b9..00000000 Binary files a/src/agents/__pycache__/usage.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/usage.cpython-39.pyc b/src/agents/__pycache__/usage.cpython-39.pyc deleted file mode 100644 index f07f1c9d..00000000 Binary files a/src/agents/__pycache__/usage.cpython-39.pyc and /dev/null differ diff --git a/src/agents/__pycache__/version.cpython-313.pyc b/src/agents/__pycache__/version.cpython-313.pyc deleted file mode 100644 index 9730494b..00000000 Binary files a/src/agents/__pycache__/version.cpython-313.pyc and /dev/null differ diff --git a/src/agents/__pycache__/version.cpython-39.pyc b/src/agents/__pycache__/version.cpython-39.pyc deleted file mode 100644 index fea6e35d..00000000 Binary files a/src/agents/__pycache__/version.cpython-39.pyc and /dev/null differ diff --git a/src/agents/extensions/__pycache__/__init__.cpython-313.pyc b/src/agents/extensions/__pycache__/__init__.cpython-313.pyc deleted file mode 100644 index bda7d30b..00000000 Binary files a/src/agents/extensions/__pycache__/__init__.cpython-313.pyc and /dev/null differ diff --git a/src/agents/extensions/__pycache__/__init__.cpython-39.pyc b/src/agents/extensions/__pycache__/__init__.cpython-39.pyc deleted file mode 100644 index b46e0f6d..00000000 Binary files a/src/agents/extensions/__pycache__/__init__.cpython-39.pyc and /dev/null differ diff --git a/src/agents/extensions/__pycache__/handoff_filters.cpython-313.pyc b/src/agents/extensions/__pycache__/handoff_filters.cpython-313.pyc deleted file mode 100644 index d2b51f4f..00000000 Binary files a/src/agents/extensions/__pycache__/handoff_filters.cpython-313.pyc and /dev/null differ diff --git a/src/agents/extensions/__pycache__/handoff_filters.cpython-39.pyc b/src/agents/extensions/__pycache__/handoff_filters.cpython-39.pyc deleted file mode 100644 index 5befbc68..00000000 Binary files a/src/agents/extensions/__pycache__/handoff_filters.cpython-39.pyc and /dev/null differ diff --git a/src/agents/extensions/__pycache__/handoff_prompt.cpython-313.pyc b/src/agents/extensions/__pycache__/handoff_prompt.cpython-313.pyc deleted file mode 100644 index 1b1154bd..00000000 Binary files a/src/agents/extensions/__pycache__/handoff_prompt.cpython-313.pyc and /dev/null differ diff --git a/src/agents/models/__pycache__/__init__.cpython-311.pyc b/src/agents/models/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index 809c19df..00000000 Binary files a/src/agents/models/__pycache__/__init__.cpython-311.pyc and /dev/null differ diff --git a/src/agents/models/__pycache__/__init__.cpython-313.pyc b/src/agents/models/__pycache__/__init__.cpython-313.pyc deleted file mode 100644 index 62acacc3..00000000 Binary files a/src/agents/models/__pycache__/__init__.cpython-313.pyc and /dev/null differ diff --git a/src/agents/models/__pycache__/__init__.cpython-39.pyc b/src/agents/models/__pycache__/__init__.cpython-39.pyc deleted file mode 100644 index 772e18bd..00000000 Binary files a/src/agents/models/__pycache__/__init__.cpython-39.pyc and /dev/null differ diff --git a/src/agents/models/__pycache__/_openai_shared.cpython-311.pyc b/src/agents/models/__pycache__/_openai_shared.cpython-311.pyc deleted file mode 100644 index 31d95579..00000000 Binary files a/src/agents/models/__pycache__/_openai_shared.cpython-311.pyc and /dev/null differ diff --git a/src/agents/models/__pycache__/_openai_shared.cpython-313.pyc b/src/agents/models/__pycache__/_openai_shared.cpython-313.pyc deleted file mode 100644 index 33dfe316..00000000 Binary files a/src/agents/models/__pycache__/_openai_shared.cpython-313.pyc and /dev/null differ diff --git a/src/agents/models/__pycache__/_openai_shared.cpython-39.pyc b/src/agents/models/__pycache__/_openai_shared.cpython-39.pyc deleted file mode 100644 index 9f95fb8d..00000000 Binary files a/src/agents/models/__pycache__/_openai_shared.cpython-39.pyc and /dev/null differ diff --git a/src/agents/models/__pycache__/fake_id.cpython-313.pyc b/src/agents/models/__pycache__/fake_id.cpython-313.pyc deleted file mode 100644 index 07ae380a..00000000 Binary files a/src/agents/models/__pycache__/fake_id.cpython-313.pyc and /dev/null differ diff --git a/src/agents/models/__pycache__/fake_id.cpython-39.pyc b/src/agents/models/__pycache__/fake_id.cpython-39.pyc deleted file mode 100644 index 66b64fe7..00000000 Binary files a/src/agents/models/__pycache__/fake_id.cpython-39.pyc and /dev/null differ diff --git a/src/agents/models/__pycache__/interface.cpython-313.pyc b/src/agents/models/__pycache__/interface.cpython-313.pyc deleted file mode 100644 index f96c60bf..00000000 Binary files a/src/agents/models/__pycache__/interface.cpython-313.pyc and /dev/null differ diff --git a/src/agents/models/__pycache__/interface.cpython-39.pyc b/src/agents/models/__pycache__/interface.cpython-39.pyc deleted file mode 100644 index cb247f32..00000000 Binary files a/src/agents/models/__pycache__/interface.cpython-39.pyc and /dev/null differ diff --git a/src/agents/models/__pycache__/map.cpython-313.pyc b/src/agents/models/__pycache__/map.cpython-313.pyc deleted file mode 100644 index f648281c..00000000 Binary files a/src/agents/models/__pycache__/map.cpython-313.pyc and /dev/null differ diff --git a/src/agents/models/__pycache__/map.cpython-39.pyc b/src/agents/models/__pycache__/map.cpython-39.pyc deleted file mode 100644 index 091f73a3..00000000 Binary files a/src/agents/models/__pycache__/map.cpython-39.pyc and /dev/null differ diff --git a/src/agents/models/__pycache__/openai_chatcompletions.cpython-313.pyc b/src/agents/models/__pycache__/openai_chatcompletions.cpython-313.pyc deleted file mode 100644 index 064b4f35..00000000 Binary files a/src/agents/models/__pycache__/openai_chatcompletions.cpython-313.pyc and /dev/null differ diff --git a/src/agents/models/__pycache__/openai_chatcompletions.cpython-39.pyc b/src/agents/models/__pycache__/openai_chatcompletions.cpython-39.pyc deleted file mode 100644 index e7d1e60d..00000000 Binary files a/src/agents/models/__pycache__/openai_chatcompletions.cpython-39.pyc and /dev/null differ diff --git a/src/agents/models/__pycache__/openai_provider.cpython-313.pyc b/src/agents/models/__pycache__/openai_provider.cpython-313.pyc deleted file mode 100644 index 16ada953..00000000 Binary files a/src/agents/models/__pycache__/openai_provider.cpython-313.pyc and /dev/null differ diff --git a/src/agents/models/__pycache__/openai_provider.cpython-39.pyc b/src/agents/models/__pycache__/openai_provider.cpython-39.pyc deleted file mode 100644 index a6a5cbc3..00000000 Binary files a/src/agents/models/__pycache__/openai_provider.cpython-39.pyc and /dev/null differ diff --git a/src/agents/models/__pycache__/openai_responses.cpython-313.pyc b/src/agents/models/__pycache__/openai_responses.cpython-313.pyc deleted file mode 100644 index 5637c603..00000000 Binary files a/src/agents/models/__pycache__/openai_responses.cpython-313.pyc and /dev/null differ diff --git a/src/agents/models/__pycache__/openai_responses.cpython-39.pyc b/src/agents/models/__pycache__/openai_responses.cpython-39.pyc deleted file mode 100644 index 3944c595..00000000 Binary files a/src/agents/models/__pycache__/openai_responses.cpython-39.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/__init__.cpython-311.pyc b/src/agents/tracing/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index 8d78e766..00000000 Binary files a/src/agents/tracing/__pycache__/__init__.cpython-311.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/__init__.cpython-313.pyc b/src/agents/tracing/__pycache__/__init__.cpython-313.pyc deleted file mode 100644 index 96425e4e..00000000 Binary files a/src/agents/tracing/__pycache__/__init__.cpython-313.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/__init__.cpython-39.pyc b/src/agents/tracing/__pycache__/__init__.cpython-39.pyc deleted file mode 100644 index 63b233ae..00000000 Binary files a/src/agents/tracing/__pycache__/__init__.cpython-39.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/_strict_schema.cpython-313.pyc b/src/agents/tracing/__pycache__/_strict_schema.cpython-313.pyc deleted file mode 100644 index 79c5357f..00000000 Binary files a/src/agents/tracing/__pycache__/_strict_schema.cpython-313.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/create.cpython-311.pyc b/src/agents/tracing/__pycache__/create.cpython-311.pyc deleted file mode 100644 index 62b33cf3..00000000 Binary files a/src/agents/tracing/__pycache__/create.cpython-311.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/create.cpython-313.pyc b/src/agents/tracing/__pycache__/create.cpython-313.pyc deleted file mode 100644 index efa27d1a..00000000 Binary files a/src/agents/tracing/__pycache__/create.cpython-313.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/create.cpython-39.pyc b/src/agents/tracing/__pycache__/create.cpython-39.pyc deleted file mode 100644 index 027a1e65..00000000 Binary files a/src/agents/tracing/__pycache__/create.cpython-39.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/logger.cpython-311.pyc b/src/agents/tracing/__pycache__/logger.cpython-311.pyc deleted file mode 100644 index 07d25033..00000000 Binary files a/src/agents/tracing/__pycache__/logger.cpython-311.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/logger.cpython-313.pyc b/src/agents/tracing/__pycache__/logger.cpython-313.pyc deleted file mode 100644 index 17e3c740..00000000 Binary files a/src/agents/tracing/__pycache__/logger.cpython-313.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/logger.cpython-39.pyc b/src/agents/tracing/__pycache__/logger.cpython-39.pyc deleted file mode 100644 index 756e590d..00000000 Binary files a/src/agents/tracing/__pycache__/logger.cpython-39.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/processor_interface.cpython-311.pyc b/src/agents/tracing/__pycache__/processor_interface.cpython-311.pyc deleted file mode 100644 index 5ea4cfd5..00000000 Binary files a/src/agents/tracing/__pycache__/processor_interface.cpython-311.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/processor_interface.cpython-313.pyc b/src/agents/tracing/__pycache__/processor_interface.cpython-313.pyc deleted file mode 100644 index 7f216bc0..00000000 Binary files a/src/agents/tracing/__pycache__/processor_interface.cpython-313.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/processor_interface.cpython-39.pyc b/src/agents/tracing/__pycache__/processor_interface.cpython-39.pyc deleted file mode 100644 index 9360e432..00000000 Binary files a/src/agents/tracing/__pycache__/processor_interface.cpython-39.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/processors.cpython-311.pyc b/src/agents/tracing/__pycache__/processors.cpython-311.pyc deleted file mode 100644 index 719f4687..00000000 Binary files a/src/agents/tracing/__pycache__/processors.cpython-311.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/processors.cpython-313.pyc b/src/agents/tracing/__pycache__/processors.cpython-313.pyc deleted file mode 100644 index da8a5664..00000000 Binary files a/src/agents/tracing/__pycache__/processors.cpython-313.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/processors.cpython-39.pyc b/src/agents/tracing/__pycache__/processors.cpython-39.pyc deleted file mode 100644 index ce8f3fae..00000000 Binary files a/src/agents/tracing/__pycache__/processors.cpython-39.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/scope.cpython-311.pyc b/src/agents/tracing/__pycache__/scope.cpython-311.pyc deleted file mode 100644 index ca52084c..00000000 Binary files a/src/agents/tracing/__pycache__/scope.cpython-311.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/scope.cpython-313.pyc b/src/agents/tracing/__pycache__/scope.cpython-313.pyc deleted file mode 100644 index 017851d9..00000000 Binary files a/src/agents/tracing/__pycache__/scope.cpython-313.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/scope.cpython-39.pyc b/src/agents/tracing/__pycache__/scope.cpython-39.pyc deleted file mode 100644 index 1f28b19c..00000000 Binary files a/src/agents/tracing/__pycache__/scope.cpython-39.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/setup.cpython-311.pyc b/src/agents/tracing/__pycache__/setup.cpython-311.pyc deleted file mode 100644 index 3aed1e68..00000000 Binary files a/src/agents/tracing/__pycache__/setup.cpython-311.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/setup.cpython-313.pyc b/src/agents/tracing/__pycache__/setup.cpython-313.pyc deleted file mode 100644 index 1d3aac14..00000000 Binary files a/src/agents/tracing/__pycache__/setup.cpython-313.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/setup.cpython-39.pyc b/src/agents/tracing/__pycache__/setup.cpython-39.pyc deleted file mode 100644 index baf17001..00000000 Binary files a/src/agents/tracing/__pycache__/setup.cpython-39.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/span_data.cpython-311.pyc b/src/agents/tracing/__pycache__/span_data.cpython-311.pyc deleted file mode 100644 index 0cc7384b..00000000 Binary files a/src/agents/tracing/__pycache__/span_data.cpython-311.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/span_data.cpython-313.pyc b/src/agents/tracing/__pycache__/span_data.cpython-313.pyc deleted file mode 100644 index 127efae0..00000000 Binary files a/src/agents/tracing/__pycache__/span_data.cpython-313.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/span_data.cpython-39.pyc b/src/agents/tracing/__pycache__/span_data.cpython-39.pyc deleted file mode 100644 index 6032252f..00000000 Binary files a/src/agents/tracing/__pycache__/span_data.cpython-39.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/spans.cpython-311.pyc b/src/agents/tracing/__pycache__/spans.cpython-311.pyc deleted file mode 100644 index 156ba234..00000000 Binary files a/src/agents/tracing/__pycache__/spans.cpython-311.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/spans.cpython-313.pyc b/src/agents/tracing/__pycache__/spans.cpython-313.pyc deleted file mode 100644 index 3a565c09..00000000 Binary files a/src/agents/tracing/__pycache__/spans.cpython-313.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/spans.cpython-39.pyc b/src/agents/tracing/__pycache__/spans.cpython-39.pyc deleted file mode 100644 index fdf2f6e0..00000000 Binary files a/src/agents/tracing/__pycache__/spans.cpython-39.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/traces.cpython-311.pyc b/src/agents/tracing/__pycache__/traces.cpython-311.pyc deleted file mode 100644 index 3f45b351..00000000 Binary files a/src/agents/tracing/__pycache__/traces.cpython-311.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/traces.cpython-313.pyc b/src/agents/tracing/__pycache__/traces.cpython-313.pyc deleted file mode 100644 index 84f817db..00000000 Binary files a/src/agents/tracing/__pycache__/traces.cpython-313.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/traces.cpython-39.pyc b/src/agents/tracing/__pycache__/traces.cpython-39.pyc deleted file mode 100644 index 7aae52b3..00000000 Binary files a/src/agents/tracing/__pycache__/traces.cpython-39.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/util.cpython-311.pyc b/src/agents/tracing/__pycache__/util.cpython-311.pyc deleted file mode 100644 index 70a74e91..00000000 Binary files a/src/agents/tracing/__pycache__/util.cpython-311.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/util.cpython-313.pyc b/src/agents/tracing/__pycache__/util.cpython-313.pyc deleted file mode 100644 index ebc9166f..00000000 Binary files a/src/agents/tracing/__pycache__/util.cpython-313.pyc and /dev/null differ diff --git a/src/agents/tracing/__pycache__/util.cpython-39.pyc b/src/agents/tracing/__pycache__/util.cpython-39.pyc deleted file mode 100644 index a81c2d19..00000000 Binary files a/src/agents/tracing/__pycache__/util.cpython-39.pyc and /dev/null differ diff --git a/src/openai_agents.egg-info/PKG-INFO b/src/openai_agents.egg-info/PKG-INFO deleted file mode 100644 index ebf2d7c2..00000000 --- a/src/openai_agents.egg-info/PKG-INFO +++ /dev/null @@ -1,217 +0,0 @@ -Metadata-Version: 2.2 -Name: openai-agents -Version: 0.0.1 -Summary: OpenAI Agents SDK -Author-email: OpenAI -Project-URL: Homepage, https://github.com/openai/openai-agents-python -Project-URL: Repository, https://github.com/openai/openai-agents-python -Classifier: Typing :: Typed -Classifier: Intended Audience :: Developers -Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.9 -Classifier: Programming Language :: Python :: 3.10 -Classifier: Programming Language :: Python :: 3.11 -Classifier: Programming Language :: Python :: 3.12 -Classifier: Intended Audience :: Developers -Classifier: Intended Audience :: Information Technology -Classifier: Operating System :: OS Independent -Classifier: Operating System :: POSIX -Classifier: Operating System :: MacOS -Classifier: Operating System :: POSIX :: Linux -Classifier: Operating System :: Microsoft :: Windows -Classifier: Topic :: Software Development :: Libraries :: Python Modules -Requires-Python: >=3.9 -Description-Content-Type: text/markdown -Requires-Dist: openai@ {root:parent:uri}/openai-1.30.1-py3-none-any.whl -Requires-Dist: pydantic<3,>=2.10 -Requires-Dist: griffe<2,>=1.5.6 -Requires-Dist: typing-extensions<5,>=4.12.2 -Requires-Dist: requests<3,>=2.0 -Requires-Dist: types-requests<3,>=2.0 - -# OpenAI Agents SDK - -The OpenAI Agents SDK is a lightweight yet powerful framework for building multi-agent workflows. - -### Core concepts: -1. [**Agents,**](docs/agents.md) which are LLMs configured with instructions, tools, guardrails, and handoffs -2. [**Handoffs,**](docs/handoffs.md) which allow agents to transfer control to other agents for specific tasks -3. [**Guardrails,**](docs/guardrails.md) which makes it easy to watch an agent execution and validate inputs/outputs -4. [**Tracing,**](docs/tracing.md) which automatically captures the entire agentic run, allowing you to view, debug and optimize your workflows - -Explore examples of the SDK in action in the [examples](examples) directory. - -## Using the SDK - -1. Set up python env - -``` -python -m venv env -source env/bin/activate -``` - -2. Install Agents SDK - -``` -pip install git+ssh://git@github.com/openai/agentsdk_prototype.git#subdirectory=agents -``` - -## Development (only needed if you need to edit the SDK/examples) - -0. Ensure you have [`uv`](https://docs.astral.sh/uv/) installed. - -```bash -uv --version -``` - -1. Install dependencies/setup virtual environment - -```bash -uv sync -``` - -2. Install the dependencies - -```bash -uv sync --all-extras --all-packages -``` - -3. Activate the virtual environment - -```bash -source .venv/bin/activate -``` - -## Tests - -Make sure the virtual environment is activated first. - -```bash -pytest -``` - -## Hello world example - -```py -from agents.agent import Agent -from agents.run import Runner -import asyncio - -agent = Agent( - name="Hello world", - instructions="You are a helpful agent." -) - -async def main(): - out = await Runner.run(agent, input="Hola, ¿cómo estás?") - print(out) - - -if __name__ == "__main__": - asyncio.run(main()) - -# The capital of the United States is Washington, D.C. -``` - -## Handoffs example - -```py -from agents.agent import Agent -from agents.run import Runner -import asyncio - -spanish_agent = Agent( - name="spanish_agent", - instructions="You only speak Spanish.", -) - -english_agent = Agent( - name="english_agent", - instructions="You only speak English", -) - -triage_agent = Agent( - name="triage_agent", - instructions="Handoff to the appropriate agent based on the language of the request.", - handoffs=[spanish_agent, english_agent], -) - - -async def main(): - out = await Runner.run(triage_agent, input="Hola, ¿cómo estás?") - print(out) - - -if __name__ == "__main__": - asyncio.run(main()) - -# ¡Hola! Estoy bien, gracias por preguntar. ¿Y tú, cómo estás? -``` - -## Functions example - -```python -from agents.agent import Agent -from agents.run import Runner -import asyncio -from agents.tool import function_tool - - -@function_tool -def get_weather(city: str) -> str: - print(f"Getting weather for {city}") - return f"The weather in {city} is sunny." - - -agent = Agent( - name="Hello world", - instructions="You are a helpful agent.", - tools=[get_weather], -) - - -async def main(): - out = await Runner.run(agent, input="What's the weather in Tokyo?") - print(out.final_output) - - -if __name__ == "__main__": - asyncio.run(main()) -``` - -For more complex systems, we recommend including detailed instructions about handoffs. We have a recommendation in `handoff.RECOMMENDED_PROMPT_PREFIX` that can be used to add these instructions to an agent. - -```py -agent = Agent( - ..., - instructions=f"{handoff.RECOMMENDED_PROMPT_PREFIX}\n\n{instructions}" -) -``` - -## The agent loop - -When you call `Runner.run()`, we run a loop until we get a final output. - -1. We call the LLM, using the model and settings on the agent, and the message history. -2. The LLM returns a response, which may include tool calls. -3. If the response has a final output (see below for the more on this), we return it and end the loop. -4. If the response has a handoff, we set the agent to the new agent and go back to step 1. -5. We process the tool calls (if any) and append the tool responses messsages. Then we go to step 1. - -There is a `max_turns` parameter that you can use to limit the number of times the loop executes. - -### Final output - -There are two ways to get a **final output**: - -1. If you set an `output_type` on the agent, the LLM is given a special tool called `final_output`. If it uses this tool, the output of the tool is the final output. -2. If there's no `output_type`, then we assume the final output is a string. As soon as the LLM produces a message without any tool calls, that is considered the final output. - -As a result, the mental model for the agent loop is: - -1. If the current agent has an `output_type`, the loop runs until the agent uses that tool to return the final output. -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. - -## Common agent patterns - -There are a number of useful patterns in agentic apps. There are a number of examples in [`examples/agent_patterns`](examples/agent_patterns), and we recommend reading them. diff --git a/src/openai_agents.egg-info/SOURCES.txt b/src/openai_agents.egg-info/SOURCES.txt deleted file mode 100644 index 695ad1fc..00000000 --- a/src/openai_agents.egg-info/SOURCES.txt +++ /dev/null @@ -1,81 +0,0 @@ -README.md -pyproject.toml -src/agents/__init__.py -src/agents/_config.py -src/agents/_debug.py -src/agents/_run_impl.py -src/agents/_utils.py -src/agents/agent.py -src/agents/agent_output.py -src/agents/call_agent_tool.py -src/agents/computer.py -src/agents/exceptions.py -src/agents/function_schema.py -src/agents/guardrail.py -src/agents/handoffs.py -src/agents/items.py -src/agents/lifecycle.py -src/agents/logger.py -src/agents/model_settings.py -src/agents/result.py -src/agents/run.py -src/agents/run_context.py -src/agents/strict_schema.py -src/agents/tool.py -src/agents/usage.py -src/agents/version.py -src/agents/extensions/__init__.py -src/agents/extensions/handoff_filters.py -src/agents/extensions/handoff_prompt.py -src/agents/models/__init__.py -src/agents/models/_openai_shared.py -src/agents/models/fake_id.py -src/agents/models/interface.py -src/agents/models/map.py -src/agents/models/openai_chatcompletions.py -src/agents/models/openai_responses.py -src/agents/tracing/__init__.py -src/agents/tracing/create.py -src/agents/tracing/logger.py -src/agents/tracing/processor_interface.py -src/agents/tracing/processors.py -src/agents/tracing/scope.py -src/agents/tracing/setup.py -src/agents/tracing/span_data.py -src/agents/tracing/spans.py -src/agents/tracing/traces.py -src/agents/tracing/util.py -src/openai_agents.egg-info/PKG-INFO -src/openai_agents.egg-info/SOURCES.txt -src/openai_agents.egg-info/dependency_links.txt -src/openai_agents.egg-info/requires.txt -src/openai_agents.egg-info/top_level.txt -tests/test_agent_config.py -tests/test_agent_hooks.py -tests/test_agent_runner.py -tests/test_agent_runner_streamed.py -tests/test_agent_tracing.py -tests/test_config.py -tests/test_doc_parsing.py -tests/test_function_schema.py -tests/test_function_tool.py -tests/test_function_tool_decorator.py -tests/test_global_hooks.py -tests/test_guardrails.py -tests/test_handoff_tool.py -tests/test_items_helpers.py -tests/test_max_turns.py -tests/test_model_mapper.py -tests/test_openai_chatcompletions_converter.py -tests/test_openai_responses_converter.py -tests/test_output_tool.py -tests/test_responses.py -tests/test_run_config.py -tests/test_run_step_execution.py -tests/test_run_step_processing.py -tests/test_tool_converter.py -tests/test_trace_processor.py -tests/test_tracing.py -tests/test_tracing_errors.py -tests/test_tracing_errors_streamed.py -tests/testing_processor.py \ No newline at end of file diff --git a/src/openai_agents.egg-info/dependency_links.txt b/src/openai_agents.egg-info/dependency_links.txt deleted file mode 100644 index 8b137891..00000000 --- a/src/openai_agents.egg-info/dependency_links.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/openai_agents.egg-info/requires.txt b/src/openai_agents.egg-info/requires.txt deleted file mode 100644 index 3dbad2b8..00000000 --- a/src/openai_agents.egg-info/requires.txt +++ /dev/null @@ -1,6 +0,0 @@ -openai@ {root:parent:uri}/openai-1.30.1-py3-none-any.whl -pydantic<3,>=2.10 -griffe<2,>=1.5.6 -typing-extensions<5,>=4.12.2 -requests<3,>=2.0 -types-requests<3,>=2.0 diff --git a/src/openai_agents.egg-info/top_level.txt b/src/openai_agents.egg-info/top_level.txt deleted file mode 100644 index 4a33ff62..00000000 --- a/src/openai_agents.egg-info/top_level.txt +++ /dev/null @@ -1 +0,0 @@ -agents diff --git a/tests/examples/tools/computer_use.py b/tests/examples/tools/computer_use.py index 35fc865d..ae339552 100644 --- a/tests/examples/tools/computer_use.py +++ b/tests/examples/tools/computer_use.py @@ -28,7 +28,7 @@ async def main(): instructions="You are a helpful agent.", tools=[ComputerTool(computer)], # Use the computer using model, and set truncation to auto because its required - model="computer-use-preview-2025-02-04", + model="computer-use-preview", model_settings=ModelSettings(truncation="auto"), ) result = await Runner.run(agent, "Search for SF sports news and summarize.")