8000 update the doc comments of requested_auth_configs to make it more pr… · tsayan/adk-python@2ea4315 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ea4315

Browse files
seanzhougooglecopybara-github
authored andcommitted
update the doc comments of requested_auth_configs to make it more precise.
PiperOrigin-RevId: 752861847
1 parent 67b6fbb commit 2ea4315

File tree

3 files changed

+10
-64
lines changed

3 files changed

+10
-64
lines changed

.github/workflows/pyink.yml

Lines changed: 0 additions & 59 deletions
This file was deleted.

src/google/adk/events/event_actions.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,13 @@ class EventActions(BaseModel):
4848
"""The agent is escalating to a higher level agent."""
4949

5050
requested_auth_configs: dict[str, AuthConfig] = Field(default_factory=dict)
51-
"""Will only be set by a tool response indicating tool request euc.
52-
dict key is the function call id since one function call response (from model)
53-
could correspond to multiple function calls.
54-
dict value is the required auth config.
51+
"""Authentication configurations requested by tool responses.
52+
53+
This field will only be set by a tool response event indicating tool request
54+
auth credential.
55+
- Keys: The function call id. Since one function response event could contain
56+
multiple function responses that correspond to multiple function calls. Each
57+
function call could request different auth configs. This id is used to
58+
identify the function call.
59+
- Values: The requested auth config.
5560
"""

src/google/adk/tools/mcp_tool/conversion_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def adk_to_mcp_tool_type(tool: BaseTool) -> mcp_types.Tool:
2222
"""Convert a Tool in ADK into MCP tool type.
2323
2424
This function transforms an ADK tool definition into its equivalent
25-
MCP (Model Context Protocol) representation.
25+
representation in the MCP (Model Control Plane) system.
2626
2727
Args:
2828
tool: The ADK tool to convert. It should be an instance of a class derived

0 commit comments

Comments
 (0)
0