Duo Agents Platform - Add flowSessionEvents field to get a flow events
Currently we have the duoWorkflowEvents field to get all of the events based on a flow ID. But this is scoped to a user, so we need a new field flowSessionEvents that takes a flow ID and then returns all of the event. This is project scoped for now with possibly in the future to reuse this for group/instance scope.
query getFlowSessionEvents($workflowId: AiDuoWorkflowsWorkflowID!, $projectPath: ID!){
project(fullPath: $projectPath){
flowSessionEvents(flowId: $workflowId){
nodes {
checkpoint
errors
flowPrompt # Equals workflowGoal
flowStatus # Equals workflowStatus
flowDefinition # Equals workflowDefinition
}
}
}
}
Edited by 🤖 GitLab Bot 🤖