Stream message response
post
<servername>/api/fusion-ai/orchestrator/a2a/v1/{workflowCode}/stream
Start a streaming message invocation for a published workflow. The request method must be `message/stream`. The response is returned as Server-Sent Events whose event payloads contain JSON-RPC task updates.
Request
Path Parameters
-
workflowCode(required): string
Published workflow code.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
id: string
-
jsonrpc: string
Default Value:
2.0 -
method(required): string
Allowed Values:
[ "message/stream" ] -
params(required): object
MessageSendParams
Nested Schema : MessageSendParams
Type:
Show Source
object-
configuration: object
MessageSendConfiguration
-
message: object
Message
-
metadata: object
metadata
Additional Properties Allowed:
true
Nested Schema : Message
Type:
Show Source
object-
contextId: string
Conversation identifier. For `message/stream`, this must be nested under `params.message`.
-
kind: string
Default Value:
message -
messageId: string
-
metadata: object
metadata
Additional Properties Allowed:
true -
parts: array
parts
-
role: string
Allowed Values:
[ "user", "agent" ] -
taskId: string
Optional task identifier used for resumed or task-associated message flows.
Nested Schema : metadata
Type:
objectAdditional Properties Allowed:
trueNested Schema : metadata
Type:
objectAdditional Properties Allowed:
trueNested Schema : TextPart
Type:
Show Source
object-
kind: string
Default Value:
text -
metadata: object
metadata
Additional Properties Allowed:
true -
text: string
Text content.
-
type: string
Part type.Example:
text
Nested Schema : metadata
Type:
objectAdditional Properties Allowed:
trueResponse
Supported Media Types
- text/event-stream
200 Response
Streaming task events started.
Root Schema : SendMessageResponse
Type:
Show Source
object-
error: object
JSONRPCError
-
id: string
-
jsonrpc: string
Default Value:
2.0 -
method: string
-
result: object
task
Nested Schema : JSONRPCError
Type:
Show Source
object-
code: integer
JSON-RPC error code.
-
message: string
JSON-RPC error message.
Nested Schema : task
Type:
Show Source
object-
actionList: array
actionList
-
applicationContext: string
-
applicationName: string
-
assignedDate: string
-
assignees: object
Collection
-
attachments: array
attachments
-
comments: object
comments
-
createdBy: string
-
createdDate: string
-
detailsURL: object
link
-
dueDate: string
-
externalUIURL: string
-
formMetadata: string
-
fromUserDisplayName: string
-
fromUserName: string
-
getcListURL: object
link
-
groupByName: string
-
groupByValue: string
-
hasSubTasksFlag: boolean
Default Value:
false -
history: object
taskHistories
-
href(required): string
(uri)
-
hreflang: string
-
identificationKey: string
-
length: integer
(int32)
-
linkId: string
-
links: array
links
-
mediaType(required): string
-
number: integer
(int32)
-
outcome: string
-
ownerGroup: string
-
ownerRole: string
-
ownerUser: string
-
payload: object
payload
-
permissions: array
permissions
-
priority: integer
(int32)
-
rel(required): string
-
rootTaskNumber: string
-
startDate: string
-
state: string
-
taskDefinitionName: string
-
taskId: string
-
taskNamespace: string
-
title: string
-
titlePrefix: string
shown only for current assignee or creator of task
-
type: string
-
updatedDate: string
Nested Schema : Collection
Type:
Show Source
object-
count: integer
(int32)
-
hasMore: boolean
Default Value:
false -
items: array
items
-
limit: integer
(int32)
-
links: array
links
-
offset: integer
(int32)
-
totalResult: boolean
Default Value:
false -
userLink: object
link
Nested Schema : link
Type:
Show Source
object-
href: string
(uri)
href of the provided link
-
rel: string
relationship with the returned resourceExample:
self
404 Response
Workflow not found.