mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
## Summary Setup the foundations of the workflow framework, adding types and initial implementation. ## Examples ### Looping over some input to call the LLM **workflow** ```typescript { id: 'my_test_workflow', name: 'Just a test workflow', type: 'graph', inputs: [ { name: 'input', type: 'array', required: true, }, ], steps: [ { id: 'mainLoop', type: NodeType.loop, configuration: { inputList: 'input', itemVar: 'prompt', output: { source: 'output', destination: 'results', }, steps: [ { id: 'step1', type: NodeType.prompt, configuration: { prompt: 'How much is {prompt}? Please just output the result without anything else', output: 'output', }, }, ], }, }, ], outputs: [ { name: 'results', ref: 'results', }, ], } ``` **Running** ```ts workchatFramework.workflows.run({ id: 'my_test_workflow', inputs: { input: ['3 + 3', '7 - 1', '4 * 6'] }, request, }) ``` **Output** ```ts { runId: '6f254746-57fc-4fd3-8bfa-25014725f53f', output: { results: [ '6', '6', '24' ] } } ``` --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> |
||
---|---|---|
.. | ||
development/plugins/expressions/public | ||
extend | ||
reference | ||
release-notes | ||
settings-gen | ||
CHANGELOG.asciidoc | ||
docset.yml |