Implement interaction features in Step5Interaction component and add routing for interaction view

- Introduced the Step5Interaction component for user interaction with report agents and simulation profiles.
- Added chat functionality to communicate with report agents and selected simulation agents.
- Implemented a survey feature to gather responses from multiple agents.
- Enhanced routing by adding a new InteractionView for seamless navigation to the interaction interface.
- Updated the router configuration to include the new interaction route.
- Improved UI elements and styles for better user experience in the interaction process.
This commit is contained in:
666ghj
2025-12-16 17:50:43 +08:00
parent 3b20672527
commit 70922a3525
6 changed files with 2339 additions and 0 deletions

View File

@@ -168,3 +168,11 @@ export const getEnvStatus = (data) => {
return service.post('/api/simulation/env-status', data)
}
/**
* 批量采访 Agent
* @param {Object} data - { simulation_id, interviews: [{ agent_id, prompt }] }
*/
export const interviewAgents = (data) => {
return requestWithRetry(() => service.post('/api/simulation/interview/batch', data), 3, 1000)
}