Skip to content

[Feature]: Using shared states in AgentExecutor #5721

@TaoChenOSU

Description

@TaoChenOSU

Description

Currently, the agent executor is limited in a way that it can only receive messages from connected executors and doesn't consider the shared states written by earlier executors.

Here is the scenario we are trying to support:

An executor A that is not directly connected to an agent executor creates artifacts that the agent should consider. Before the workflow gets to the agent executor, it has to run other executors, for example auditing the artifacts or storing them externally, thus developers cannot directly connect executor A to the agent executor.

Executor A could store the artifacts in the shared states, and the agent executor can access the shared states. However, the agent executor doesn't consider the shared states and extract contents from there for the agent invocation.

This essentially boils down to two steps:

  1. Data sharing between disconnected executors via shared states. Options:
  • Key based
  • ?
  1. Consuming the data in the shared states (if there are any) in the agent executor. Options:
  • Context provider that automatically extract information from the shared states.
  • ?

Language/SDK

Both

Metadata

Metadata

Assignees

No one assigned

    Labels

    workflowsRelated to Workflows in agent-framework

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions