You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 1. Echo back the client's message to show it in the UI. This is not done by default so the agent developer has full control over what is shown to the user.
# In future tutorials, this is where we'll add more sophisticated response logic.
19
24
await adk.messages.create(
20
25
task_id=params.task.id,
21
-
trace_id=params.task.id,
22
-
content=TextContent(
23
-
author="user",
24
-
content=params.event.content,
25
-
),
26
-
)
27
-
28
-
await adk.messages.create(
29
-
task_id=params.task.id,
30
-
trace_id=params.task.id,
31
26
content=TextContent(
32
27
author="agent",
33
-
content="Hello world! I just received this message: {params.event.content}",
28
+
content=f"Hello! I've received your message. I can't respond right now, but in future tutorials we'll see how you can get me to intelligently respond to your message.",
0 commit comments