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

Class _EchoNode

tests/unittests/runners/test_runner_node.py:46–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45
46class _EchoNode(BaseNode):
47
48 async def _run_impl(
49 self, *, ctx: Context, node_input: Any
50 ) -> AsyncGenerator[Any, None]:
51 text = node_input.parts[0].text if node_input else 'empty'
52 yield f'Echo: {text}'
53
54
55def _user_message(text: str = 'hello') -> types.Content:

Calls

no outgoing calls