Trigger workflow stream
post
<servername>/orchestrator/internal/agent/v1/api/fusion-ai/orchestrator/a2a/v1/{workflowCode}
Trigger an agent workflow and stream the generated response back to the caller.
Request
Path Parameters
-
workflowCode(required): string
Code identifying the workflow to be triggered.
Query Parameters
-
caller: string
Identifier for the caller triggering the workflow.Example:
chatbot
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
agentConfig(required): object
agentConfig
Additional Properties Allowed:
trueAgent configuration used for triggering the workflow. -
llmConfig(required): object
llmConfig
Additional Properties Allowed:
trueLarge language model configuration used for triggering the workflow. -
request(required): object
InvocationRequest
-
toolsConfig(required): object
toolsConfig
Additional Properties Allowed:
trueTool configuration available to the agent for triggering the workflow. -
workflowConfig(required): object
workflowConfig
Additional Properties Allowed:
trueThe configuration used for triggering the workflow.
Nested Schema : agentConfig
Type:
objectAdditional Properties Allowed:
trueAgent configuration used for triggering the workflow.
Nested Schema : llmConfig
Type:
objectAdditional Properties Allowed:
trueLarge language model configuration used for triggering the workflow.
Nested Schema : InvocationRequest
Type:
Show Source
object-
conversational: boolean
Indicates whether the trigger should use conversation context or not.
-
conversationId: string
Identifier of the conversation associated with the trigger.
-
invocationMode: string
Allowed Values:
[ "ADMIN", "USER" ]Trigger mode for the request. -
jobId: string
Optional job identifier associated with the trigger.
-
message(required): string
User message or query to send to the agent workflow.
Nested Schema : toolsConfig
Type:
objectAdditional Properties Allowed:
trueTool configuration available to the agent for triggering the workflow.
Nested Schema : workflowConfig
Type:
objectAdditional Properties Allowed:
trueThe configuration used for triggering the workflow.
Response
Supported Media Types
- text/event-stream
- application/json
200 Response
Workflow triggered successfully. Response is streamed to the caller.
Root Schema : InvokeStreamEvent
Type:
stringServer-sent event stream containing incremental agent response chunks, tool events, metadata, and completion events.
400 Response
Could not trigger workflow because the request is invalid.
Root Schema : ErrorResponse
Type:
Show Source
object-
message: string
Description of the error.
-
status: string
Short status code of the error.
-
userDetails: string
Instructions or hint for user to action upon.
401 Response
Authentication failed.
Root Schema : ErrorResponse
Type:
Show Source
object-
message: string
Description of the error.
-
status: string
Short status code of the error.
-
userDetails: string
Instructions or hint for user to action upon.
404 Response
Workflow not found.
500 Response
Internal server error while triggering the workflow.
Root Schema : ErrorResponse
Type:
Show Source
object-
message: string
Description of the error.
-
status: string
Short status code of the error.
-
userDetails: string
Instructions or hint for user to action upon.