We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4050b81 commit 42a5d73Copy full SHA for 42a5d73
src/a2a/server/tasks/task_manager.py
@@ -107,7 +107,13 @@ async def save_task_event(
107
)
108
if not self.task_id:
109
self.task_id = task_id_from_event
110
- if not self.context_id and self.context_id != event.contextId:
+ if self.context_id and self.context_id != event.contextId:
111
+ raise ServerError(
112
+ error=InvalidParamsError(
113
+ message=f"Context in event doesn't match TaskManager {self.context_id} : {event.contextId}"
114
+ )
115
116
+ if not self.context_id:
117
self.context_id = event.contextId
118
119
logger.debug(
0 commit comments