mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-12-18 19:32:21 -06:00
update the doc comments of requested_auth_configs to make it more precise.
PiperOrigin-RevId: 752861847
This commit is contained in:
committed by
Copybara-Service
parent
67b6fbbe01
commit
2ea4315e9f
@@ -48,8 +48,13 @@ class EventActions(BaseModel):
|
||||
"""The agent is escalating to a higher level agent."""
|
||||
|
||||
requested_auth_configs: dict[str, AuthConfig] = Field(default_factory=dict)
|
||||
"""Will only be set by a tool response indicating tool request euc.
|
||||
dict key is the function call id since one function call response (from model)
|
||||
could correspond to multiple function calls.
|
||||
dict value is the required auth config.
|
||||
"""Authentication configurations requested by tool responses.
|
||||
|
||||
This field will only be set by a tool response event indicating tool request
|
||||
auth credential.
|
||||
- Keys: The function call id. Since one function response event could contain
|
||||
multiple function responses that correspond to multiple function calls. Each
|
||||
function call could request different auth configs. This id is used to
|
||||
identify the function call.
|
||||
- Values: The requested auth config.
|
||||
"""
|
||||
|
||||
@@ -22,7 +22,7 @@ def adk_to_mcp_tool_type(tool: BaseTool) -> mcp_types.Tool:
|
||||
"""Convert a Tool in ADK into MCP tool type.
|
||||
|
||||
This function transforms an ADK tool definition into its equivalent
|
||||
MCP (Model Context Protocol) representation.
|
||||
representation in the MCP (Model Control Plane) system.
|
||||
|
||||
Args:
|
||||
tool: The ADK tool to convert. It should be an instance of a class derived
|
||||
|
||||
Reference in New Issue
Block a user