Skip to content

Improve accuracy of guardrails and lifecycle hook descriptions #1386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/agents/lifecycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down