File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change 16
16
17
17
import inspect
18
18
import logging
19
- from typing import (
20
- Any ,
21
- AsyncGenerator ,
22
- Awaitable ,
23
- Callable ,
24
- Literal ,
25
- Optional ,
26
- Union ,
27
- )
19
+ from typing import Any
20
+ from typing import AsyncGenerator
21
+ from typing import Awaitable
22
+ from typing import Callable
23
+ from typing import Literal
24
+ from typing import Optional
25
+ from typing import Union
28
26
29
27
from google .genai import types
30
28
from pydantic import BaseModel
@@ -152,7 +150,12 @@ class LlmAgent(BaseAgent):
152
150
153
151
# LLM-based agent transfer configs - Start
154
152
disallow_transfer_to_parent : bool = False
155
- """Disallows LLM-controlled transferring to the parent agent."""
153
+ """Disallows LLM-controlled transferring to the parent agent.
154
+
155
+ NOTE: Setting this as True also prevents this agent to continue reply to the
156
+ end-user. This behavior prevents one-way transfer, in which end-user may be
157
+ stuck with one agent that cannot transfer to other agents in the agent tree.
158
+ """
156
159
disallow_transfer_to_peers : bool = False
157
160
"""Disallows LLM-controlled transferring to the peer agents."""
158
161
# LLM-based agent transfer configs - End
You can’t perform that action at this time.
0 commit comments