mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-07-13 15:14:50 -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__(
|
||||
self, tool: BaseTool, readonly_context: ReadonlyContext = None
|
||||
self, tool: BaseTool, readonly_context: Optional[ReadonlyContext] = None
|
||||
) -> bool:
|
||||
"""Decide whether the passed-in tool should be exposed to LLM based on the
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user