Add Workflow tab and run-progress API for workflow runs
This commit is contained in:
@@ -63,3 +63,12 @@ func (s *Server) GetTaskWorkflow(w http.ResponseWriter, r *http.Request, taskID
|
||||
}
|
||||
writeJSON(w, http.StatusOK, tw)
|
||||
}
|
||||
|
||||
func (s *Server) GetWorkflowRun(w http.ResponseWriter, r *http.Request, taskID string) {
|
||||
run, err := s.agents.WorkflowRun(r.Context(), taskID)
|
||||
if err != nil {
|
||||
writeAgentError(w, err)
|
||||
return
|
||||
}
|
||||
writeJSON(w, http.StatusOK, run)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user