Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve workflow step execute API #215

Conversation

dbwiddis
Copy link
Member

Description

Changes the workflow step execute() API to:

  • pass a nodeId to identify the step uniquely
  • improve on the workflowdata list by passing the input data and previous node data separately
  • adds a map for previous step inputs

Issues Resolved

Part of #210

Submitting with the API change first in order to get compiling classes with the new API, to enable in-progress work to update the API and work in parallel.

Left a TODO to improve the parsing for collecting previous data from the list; for now, recreating the workflow data list to preserve the previous behavior.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Daniel Widdis <[email protected]>
Copy link
Member

@joshpalis joshpalis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks Dan for the changes

Copy link
Member

@owaiskazi19 owaiskazi19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can get this one in and then backport to main and 2.x

@dbwiddis dbwiddis merged commit cac2e0b into opensearch-project:feature/agent_framework Nov 30, 2023
10 checks passed
@dbwiddis dbwiddis deleted the improve-execute-api branch November 30, 2023 01:14
dbwiddis added a commit to dbwiddis/flow-framework that referenced this pull request Nov 30, 2023
* Improve workflow step execute API

Signed-off-by: Daniel Widdis <[email protected]>

* Fix typo

Signed-off-by: Daniel Widdis <[email protected]>

---------

Signed-off-by: Daniel Widdis <[email protected]>
dbwiddis added a commit that referenced this pull request Nov 30, 2023
Improve workflow step execute API (#215)

* Improve workflow step execute API



* Fix typo



---------

Signed-off-by: Daniel Widdis <[email protected]>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 30, 2023
Improve workflow step execute API (#215)

* Improve workflow step execute API

* Fix typo

---------

Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit 7c06865)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dbwiddis pushed a commit that referenced this pull request Nov 30, 2023
… (#222)

[Backport-main] Improve workflow step execute API (#215) (#221)

Improve workflow step execute API (#215)

* Improve workflow step execute API

* Fix typo

---------


(cherry picked from commit 7c06865)

Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants