MCPcopy Index your code
hub / github.com/google/adk-python / display_result

Function display_result

contributing/samples/workflows/auth_oauth/agent.py:118–129  ·  view source on GitHub ↗

Displays the result of accessing the resource.

(node_input: dict)

Source from the content-addressed store, hash-verified

116
117
118def display_result(node_input: dict):
119 """Displays the result of accessing the resource."""
120 if node_input["status"] == "Success":
121 repos_str = ", ".join(node_input["repos"])
122 yield Event(message=f"Successfully fetched repositories: {repos_str}")
123 else:
124 yield Event(
125 message=(
126 "Failed to fetch repositories. Error:"
127 f" {node_input.get('message', 'Unknown error')}"
128 )
129 )
130
131
132root_agent = Workflow(

Callers

nothing calls this directly

Calls 3

EventClass · 0.90
joinMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected