From c6d653d174c2a2446b5517f9250988133b9a0c57 Mon Sep 17 00:00:00 2001 From: UmmeHabiba1312 Date: Thu, 14 Aug 2025 16:52:33 +0500 Subject: [PATCH] Update handoffs.md --- docs/handoffs.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/handoffs.md b/docs/handoffs.md index 0b868c4af..85707c6b3 100644 --- a/docs/handoffs.md +++ b/docs/handoffs.md @@ -36,6 +36,7 @@ The [`handoff()`][agents.handoffs.handoff] function lets you customize things. - `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. - `input_type`: The type of input expected by the handoff (optional). - `input_filter`: This lets you filter the input received by the next agent. See below for more. +- `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. ```python from agents import Agent, handoff, RunContextWrapper