i run this scenario
Turn one: client agent sends the first message. Server Agent does
agentEmitter.Submit(message1);
agentEmitter.startWork(message2);
agentEmitter.requiresInput(message3);
the client agent receive
Once taskStatusUpdateEvent for TaskState.TASK_STATE_SUBMITTED with message1
Once taskStatusUpdateEvent for TaskState.TASK_STATE_WORKING with message2
Once taskStatusUpdateEvent for TaskState.TASK_STATE_INPUT_REQUIRED with message3
all correct so far
Turn two: client agent sends the second message with the contextId and TaskId from the first turn. Server Agent does
agentEmitter.addArtifact(Parts);
agentEmitter.complete(message4);
the client agent received
twice taskArtifactUpdateEvent with the artifact
twice taskStatusUpdateEvent for TaskState.TASK_STATE_COMPLETED with message4
the issue is that the events taskArtifactUpdateEvent and taskStatusUpdateEvent are triggered twice instead of once.
i run this scenario
Turn one: client agent sends the first message. Server Agent does
the client agent receive
all correct so far
Turn two: client agent sends the second message with the contextId and TaskId from the first turn. Server Agent does
the client agent received
the issue is that the events taskArtifactUpdateEvent and taskStatusUpdateEvent are triggered twice instead of once.