Skip to content

Commit 184eafc

Browse files
docs: Clarify the is_enabled parameter in handoff() documentation (#1472)
1 parent 043b3d6 commit 184eafc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/handoffs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ The [`handoff()`][agents.handoffs.handoff] function lets you customize things.
3636
- `on_handoff`: A callback function executed when the handoff is invoked. This is useful for things like kicking off some data fetching as soon as you know a handoff is being invoked. This function receives the agent context, and can optionally also receive LLM generated input. The input data is controlled by the `input_type` param.
3737
- `input_type`: The type of input expected by the handoff (optional).
3838
- `input_filter`: This lets you filter the input received by the next agent. See below for more.
39+
- `is_enabled`: Whether the handoff is enabled. This can be a boolean or a function that returns a boolean, allowing you to dynamically enable or disable the handoff at runtime.
3940

4041
```python
4142
from agents import Agent, handoff, RunContextWrapper

0 commit comments

Comments
 (0)