refactor: align agent lifecycle
This commit is contained in:
@@ -25,10 +25,10 @@ describe("agent-events sequencing", () => {
|
||||
list.push(evt.seq);
|
||||
});
|
||||
|
||||
emitAgentEvent({ runId: "run-1", stream: "job", data: {} });
|
||||
emitAgentEvent({ runId: "run-1", stream: "job", data: {} });
|
||||
emitAgentEvent({ runId: "run-2", stream: "job", data: {} });
|
||||
emitAgentEvent({ runId: "run-1", stream: "job", data: {} });
|
||||
emitAgentEvent({ runId: "run-1", stream: "lifecycle", data: {} });
|
||||
emitAgentEvent({ runId: "run-1", stream: "lifecycle", data: {} });
|
||||
emitAgentEvent({ runId: "run-2", stream: "lifecycle", data: {} });
|
||||
emitAgentEvent({ runId: "run-1", stream: "lifecycle", data: {} });
|
||||
|
||||
stop();
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export type AgentEventStream =
|
||||
| "job"
|
||||
| "lifecycle"
|
||||
| "tool"
|
||||
| "assistant"
|
||||
| "error"
|
||||
|
||||
Reference in New Issue
Block a user