mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-07-16 04:02:55 -06:00
refactor: make readonly context optional in tool predicate
PiperOrigin-RevId: 759429453
This commit is contained in:
parent
770ecd8bb3
commit
f0e11c72ab
@ -17,7 +17,7 @@ class ToolPredicate(Protocol):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def __call__(
|
def __call__(
|
||||||
self, tool: BaseTool, readonly_context: ReadonlyContext = None
|
self, tool: BaseTool, readonly_context: Optional[ReadonlyContext] = None
|
||||||
) -> bool:
|
) -> bool:
|
||||||
"""Decide whether the passed-in tool should be exposed to LLM based on the
|
"""Decide whether the passed-in tool should be exposed to LLM based on the
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user