| 44 | |
| 45 | |
| 46 | class _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 | |
| 55 | def _user_message(text: str = 'hello') -> types.Content: |
no outgoing calls