Files
langship.sh/pkg/engine/events.go
T
patel-lyzr 0284ff768a feat: enhance agent execution flow with multi-execution view and improved error handling
- Added multi-execution view to display multiple execution statuses.
- Improved error handling in agent triggering to surface failures.
- Updated execution view to support live updates via SSE and added a log panel for node logs.
- Enhanced pipeline canvas to display node statuses during execution.
- Introduced new fields in the build node form for Docker configurations.
- Updated API to support execution streaming and enhanced node catalog descriptions.
2026-05-13 22:15:08 +05:30

28 lines
1.0 KiB
Go

package engine
// EventType identifies the kind of streaming event emitted during workflow execution.
type EventType string
const (
EventNodeStarted EventType = "node_started"
EventNodeCompleted EventType = "node_completed"
EventNodeError EventType = "node_error"
EventNodeLog EventType = "node_log" // streamed log line from an executor
EventToken EventType = "token"
EventToolCallDelta EventType = "tool_call_delta"
EventBusFull EventType = "bus_full"
EventDone EventType = "done"
)
// ExecutionEvent is a streaming event emitted during workflow execution.
type ExecutionEvent struct {
Type EventType `json:"type"`
Node string `json:"node,omitempty"`
NodeType string `json:"node_type,omitempty"`
Content string `json:"content,omitempty"`
Status string `json:"status,omitempty"`
Outputs map[string]any `json:"outputs,omitempty"`
Error string `json:"error,omitempty"`
DurationMs int64 `json:"duration_ms,omitempty"`
}