Skip to content

Commit 65701a9

Browse files
committed
update simple app
1 parent 1dc220e commit 65701a9

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

02-use-cases/beginner/a2a_simple/agent.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,10 @@ class MyAgentExecutor(A2aAgentExecutor):
3838
capabilities=AgentCapabilities(streaming=True),
3939
description=agent.description,
4040
name=agent.name,
41-
defaultInputModes=["text"],
42-
defaultOutputModes=["text"],
41+
default_input_modes=["text"],
42+
default_output_modes=["text"],
4343
provider=AgentProvider(organization="agentkit", url=""),
44-
skills=[
45-
AgentSkill(id="0", name="chat", description="Chat", tags=["chat"])
46-
],
44+
skills=[AgentSkill(id="0", name="chat", description="Chat", tags=["chat"])],
4745
url="http://0.0.0.0:8000",
4846
version="1.0.0",
4947
)

02-use-cases/beginner/a2a_simple/remote/agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class MyAgentExecutor(A2aAgentExecutor):
4646
capabilities=AgentCapabilities(streaming=True),
4747
description=root_agent.description,
4848
name=root_agent.name,
49-
defaultInputModes=["text"],
50-
defaultOutputModes=["text"],
49+
default_input_modes=["text"],
50+
default_output_modes=["text"],
5151
provider=AgentProvider(organization="agentkit", url=""),
5252
skills=[AgentSkill(id="0", name="chat", description="Chat", tags=["chat"])],
5353
url="http://localhost:8001",

0 commit comments

Comments
 (0)