mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 11:05:39 -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> |
||
---|---|---|
.. | ||
images | ||
add-data-tutorials.md | ||
advanced.md | ||
application-service.md | ||
building-kibana.md | ||
ci-metrics.md | ||
configuration-service.md | ||
contributing.md | ||
core-packages.md | ||
dashboard-enhanced-plugin.md | ||
dependencies-versions.md | ||
development-basepath.md | ||
development-best-practices.md | ||
development-documentation.md | ||
development-getting-started.md | ||
development-github.md | ||
development-plugin-resources.md | ||
development-pull-request.md | ||
development-security.md | ||
development-telemetry.md | ||
development-tests.md | ||
development-visualize-index.md | ||
elasticsearch-service.md | ||
enhanced-embeddables-plugin.md | ||
external-plugin-development.md | ||
external-plugin-functional-tests.md | ||
external-plugin-localization.md | ||
http-service.md | ||
index.md | ||
interpreting-ci-failures.md | ||
kibana-architecture.md | ||
kibana-dashboard-plugin.md | ||
kibana-debugging.md | ||
kibana-expressions-plugin.md | ||
kibana-issue-reporting.md | ||
kibana-linting.md | ||
kibana-navigation.md | ||
kibana-platform-api.md | ||
kibana-platform-plugin-api.md | ||
legacy-url-aliases.md | ||
logging-config-changes.md | ||
logging-service.md | ||
monorepo-packages.md | ||
patterns.md | ||
plugin-list.md | ||
plugin-performance.md | ||
plugin-tooling.md | ||
pr-review.md | ||
reporting-integration.md | ||
running-elasticsearch.md | ||
running-kibana-advanced.md | ||
sample-data.md | ||
saved-objects-service.md | ||
security-best-practices.md | ||
sharing-saved-objects.md | ||
stability.md | ||
testing-kibana-plugin.md | ||
toc.yml | ||
translations-plugin.md | ||
typescript.md | ||
ui-settings-service.md | ||
uiactions-plugin.md | ||
upgrading-nodejs.md |