mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
fix(workflows): rename WorkflowOutputEvent.source_executor_id to executor_id for API consistency (#3166)
This commit is contained in:
committed by
GitHub
Unverified
parent
ffe2e787ba
commit
80b25a782b
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user