diff --git a/examples/__pycache__/__init__.cpython-313.pyc b/examples/__pycache__/__init__.cpython-313.pyc deleted file mode 100644 index b690047..0000000 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 35fc865..ae33955 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 daf05e7..0000000 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 8d9218c..0000000 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 f7f3ec7..0000000 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 6fd0d6a..0000000 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 b038691..0000000 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 3e54f44..0000000 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 19e2913..0000000 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 796f509..0000000 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 22bd441..0000000 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 b26111b..0000000 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 54b08cf..0000000 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 af2c299..0000000 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 bf6557a..0000000 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 3579bbe..0000000 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 5347fb1..0000000 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 b494ffe..0000000 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 b527f54..0000000 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 dfc5353..0000000 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 281eefc..0000000 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 3502ff9..0000000 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 b108425..0000000 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 df273d5..0000000 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 4d851c8..0000000 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 7fa3645..0000000 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 f18ec51..0000000 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 3f2547f..0000000 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 5e7ffdd..0000000 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 5a7e4df..0000000 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 edcd014..0000000 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 ce0385b..0000000 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 525e91e..0000000 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 400cd36..0000000 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 bec8e3f..0000000 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 5442e41..0000000 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 753a02e..0000000 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 9fe8788..0000000 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 64f8bb0..0000000 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 6b0149f..0000000 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 8410c67..0000000 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 7245ae2..0000000 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 e1ccf5e..0000000 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 82a6eef..0000000 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 24bf916..0000000 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 360a1a3..0000000 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 c746516..0000000 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 1ac8110..0000000 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 3569e33..0000000 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 3bc8d2e..0000000 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 d1c647a..0000000 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 94a7e8c..0000000 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 d127b93..0000000 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 eb73263..0000000 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 72a6585..0000000 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 2f8fc21..0000000 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 ee957ee..0000000 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 3946c1b..0000000 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 79b6205..0000000 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 50d5644..0000000 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 cb3a119..0000000 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 8318baa..0000000 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 e6400c5..0000000 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 9ee20bd..0000000 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 057a30b..0000000 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 f07f1c9..0000000 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 9730494..0000000 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 fea6e35..0000000 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 bda7d30..0000000 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 b46e0f6..0000000 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 d2b51f4..0000000 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 5befbc6..0000000 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 1b1154b..0000000 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 809c19d..0000000 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 62acacc..0000000 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 772e18b..0000000 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 31d9557..0000000 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 33dfe31..0000000 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 9f95fb8..0000000 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 07ae380..0000000 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 66b64fe..0000000 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 f96c60b..0000000 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 cb247f3..0000000 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 f648281..0000000 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 091f73a..0000000 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 064b4f3..0000000 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 e7d1e60..0000000 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 16ada95..0000000 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 a6a5cbc..0000000 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 5637c60..0000000 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 3944c59..0000000 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 8d78e76..0000000 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 96425e4..0000000 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 63b233a..0000000 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 79c5357..0000000 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 62b33cf..0000000 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 efa27d1..0000000 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 027a1e6..0000000 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 07d2503..0000000 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 17e3c74..0000000 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 756e590..0000000 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 5ea4cfd..0000000 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 7f216bc..0000000 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 9360e43..0000000 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 719f468..0000000 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 da8a566..0000000 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 ce8f3fa..0000000 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 ca52084..0000000 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 017851d..0000000 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 1f28b19..0000000 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 3aed1e6..0000000 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 1d3aac1..0000000 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 baf1700..0000000 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 0cc7384..0000000 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 127efae..0000000 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 6032252..0000000 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 156ba23..0000000 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 3a565c0..0000000 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 fdf2f6e..0000000 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 3f45b35..0000000 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 84f817d..0000000 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 7aae52b..0000000 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 70a74e9..0000000 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 ebc9166..0000000 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 a81c2d1..0000000 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 ebf2d7c..0000000 --- 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 695ad1f..0000000 --- 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 8b13789..0000000 --- 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 3dbad2b..0000000 --- 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 4a33ff6..0000000 --- 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 35fc865..ae33955 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.")