Skip to content

Commit 36bfdfd

Browse files
authored
fix: Fix mypy errors and enable streaming for hw example (#15)
1 parent 224d4f5 commit 36bfdfd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/helloworld/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
version='1.0.0',
2828
defaultInputModes=['text'],
2929
defaultOutputModes=['text'],
30-
capabilities=AgentCapabilities(),
30+
capabilities=AgentCapabilities(streaming=True),
3131
skills=[skill],
3232
authentication=AgentAuthentication(schemes=['public']),
3333
)

src/a2a/server/agent_execution/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __init__(
1919
task_id: str | None = None,
2020
context_id: str | None = None,
2121
task: Task | None = None,
22-
related_tasks: list[Task] = None,
22+
related_tasks: list[Task] | None = None,
2323
):
2424
if related_tasks is None:
2525
related_tasks = []

src/a2a/server/events/in_memory_queue_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class InMemoryQueueManager(QueueManager):
1818
true scalable deployment.
1919
"""
2020

21-
def __init__(self):
21+
def __init__(self) -> None:
2222
self._task_queue: dict[str, EventQueue] = {}
2323
self._lock = asyncio.Lock()
2424

0 commit comments

Comments
 (0)