feat(08.1-01): update AgentWaitingEvent with structured question data
- Add options array for predefined question choices - Add multiSelect boolean for multi-selection questions - Update dispatch manager test mock with getPendingQuestion
This commit is contained in:
@@ -73,6 +73,7 @@ function createMockAgentManager(
|
|||||||
stop: vi.fn().mockResolvedValue(undefined),
|
stop: vi.fn().mockResolvedValue(undefined),
|
||||||
resume: vi.fn().mockResolvedValue(undefined),
|
resume: vi.fn().mockResolvedValue(undefined),
|
||||||
getResult: vi.fn().mockResolvedValue(null),
|
getResult: vi.fn().mockResolvedValue(null),
|
||||||
|
getPendingQuestion: vi.fn().mockResolvedValue(null),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -183,7 +183,9 @@ export interface AgentWaitingEvent extends DomainEvent {
|
|||||||
name: string;
|
name: string;
|
||||||
taskId: string;
|
taskId: string;
|
||||||
sessionId: string;
|
sessionId: string;
|
||||||
question: string; // The question being asked
|
question: string;
|
||||||
|
options?: Array<{ label: string; description?: string }>;
|
||||||
|
multiSelect?: boolean;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user