Skip to content

Commit 9fe9a5e

Browse files
authored
Improve accuracy of guardrails and lifecycle hook descriptions (#1386)
1 parent efee1a7 commit 9fe9a5e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The [OpenAI Agents SDK](https://github.com/openai/openai-agents-python) enables
44

55
- **Agents**, which are LLMs equipped with instructions and tools
66
- **Handoffs**, which allow agents to delegate to other agents for specific tasks
7-
- **Guardrails**, which enable the inputs to agents to be validated
7+
- **Guardrails**, which enable validation of agent inputs and outputs
88
- **Sessions**, which automatically maintains conversation history across agent runs
99

1010
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.

src/agents/lifecycle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async def on_tool_start(
4242
agent: TAgent,
4343
tool: Tool,
4444
) -> None:
45-
"""Called before a tool is invoked."""
45+
"""Called concurrently with tool invocation."""
4646
pass
4747

4848
async def on_tool_end(
@@ -93,7 +93,7 @@ async def on_tool_start(
9393
agent: TAgent,
9494
tool: Tool,
9595
) -> None:
96-
"""Called before a tool is invoked."""
96+
"""Called concurrently with tool invocation."""
9797
pass
9898

9999
async def on_tool_end(

0 commit comments

Comments
 (0)