From b2176671c6b87e197213f9ccabf43ed6a94e94cb Mon Sep 17 00:00:00 2001 From: Daniel Hashmi <151331476+DanielHashmi@users.noreply.github.com> Date: Wed, 6 Aug 2025 23:02:23 +0500 Subject: [PATCH 1/2] Update lifecycle.py --- src/agents/lifecycle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agents/lifecycle.py b/src/agents/lifecycle.py index 2cce496c8..58a42ae02 100644 --- a/src/agents/lifecycle.py +++ b/src/agents/lifecycle.py @@ -42,7 +42,7 @@ async def on_tool_start( agent: TAgent, tool: Tool, ) -> None: - """Called before a tool is invoked.""" + """Called concurrently with tool invocation.""" pass async def on_tool_end( @@ -93,7 +93,7 @@ async def on_tool_start( agent: TAgent, tool: Tool, ) -> None: - """Called before a tool is invoked.""" + """Called concurrently with tool invocation.""" pass async def on_tool_end( From f4d06da39354186f8955e47bc44660af11b21d02 Mon Sep 17 00:00:00 2001 From: Daniel Hashmi <151331476+DanielHashmi@users.noreply.github.com> Date: Wed, 6 Aug 2025 23:05:24 +0500 Subject: [PATCH 2/2] Update index.md --- docs/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index 935c4be5b..f8eb7dfec 100644 --- a/docs/index.md +++ b/docs/index.md @@ -4,7 +4,7 @@ The [OpenAI Agents SDK](https://github.com/openai/openai-agents-python) enables - **Agents**, which are LLMs equipped with instructions and tools - **Handoffs**, which allow agents to delegate to other agents for specific tasks -- **Guardrails**, which enable the inputs to agents to be validated +- **Guardrails**, which enable validation of agent inputs and outputs - **Sessions**, which automatically maintains conversation history across agent runs In combination with Python, these primitives are powerful enough to express complex relationships between tools and agents, and allow you to build real-world applications without a steep learning curve. In addition, the SDK comes with built-in **tracing** that lets you visualize and debug your agentic flows, as well as evaluate them and even fine-tune models for your application.