Expose Mistral outputs in the get/list workflows API
A request to add the "output" of a workflow to the following APIs:
GET /v2/workflows/
GET /v2/workflows/
Similar to the "input" that is returned today.
For example, for the following workflow:
---
version: '2.0'
wokflow_name:
type: direct
output:
outputKey1: value1
outputKey2:
key2a: value2a
key2b: value2b
tasks:
task1:
action: std.async_noop
The response will be:
{
"definition
"name"
"tags":[
],
"created_
"updated_
"scope"
"input":"",
"project_
"id"
"output": [ outputKey1, outputKey2 ]
}
Blueprint information
- Status:
- Complete
- Approver:
- Renat Akhmerov
- Priority:
- Medium
- Drafter:
- Moshe Elisha
- Direction:
- Approved
- Assignee:
- ali abdelal
- Definition:
- New
- Series goal:
- Accepted for ussuri
- Implementation:
- Implemented
- Milestone target:
- ussuri-2
- Started by
- Renat Akhmerov
- Completed by
- Renat Akhmerov
Related branches
Related bugs
Sprints
Whiteboard
as it was discussed here:- https:/
the output field is part of another new JSON field, which contains both the input and the output.
Gerrit topic: https:/
Addressed by: https:/
Add 'interface' field to Workflow resource