fix(workflows): rename WorkflowOutputEvent.source_executor_id to executor_id for API consistency (#3166)

This commit is contained in:
Evan Mattson
2026-01-15 11:11:25 +09:00
committed by GitHub
Unverified
parent ffe2e787ba
commit 80b25a782b
7 changed files with 16 additions and 17 deletions
@@ -269,8 +269,7 @@ export interface AgentThread {
export interface WorkflowEvent {
type?: string; // Event class name like "WorkflowOutputEvent", "WorkflowCompletedEvent", "ExecutorInvokedEvent", etc.
data?: unknown;
executor_id?: string; // Present for executor-related events
source_executor_id?: string; // Present for WorkflowOutputEvent
executor_id?: string; // Present for executor-related events and WorkflowOutputEvent
}
export interface WorkflowStartedEvent extends WorkflowEvent {
@@ -286,7 +285,7 @@ export interface WorkflowCompletedEvent extends WorkflowEvent {
export interface WorkflowOutputEvent extends WorkflowEvent {
// Event-specific data for workflow output (new)
readonly event_type: "workflow_output";
source_executor_id: string; // ID of executor that yielded the output
executor_id: string; // ID of executor that yielded the output
}
export interface WorkflowWarningEvent extends WorkflowEvent {