Skip to content

[RFE] Support output_shields in agent creation #247

@TamiTakamiya

Description

@TamiTakamiya

Is your feature request related to a problem? Please describe.
#179 added the support of input_shields on initializing AsyncAgent. We would like to have the support of output_shields as well.

Describe the solution you'd like
The current code added with #179 assumes all sheilds defined are input shields.

We need to have a way to distinguish input and output shields as shields defined in a run file do not seem to have a clear indicator to identify that it should be used for input or output.

Here are the naming convention of shield_id that I propose for that purpose:

  • If the shield_id starts with input_, it will be used for input only.
  • If the shield_id starts with output_, it will be used for output only.
  • If the shield_id starts with inout_, it will be used both for input and output.
  • Otherwise, it will be used for input only.

Using this convention, build list for input_shields and output_shields, then they are passed to
the get_agent method and and AsyncAgent is instantiated accordingly.

Describe alternatives you've considered
While instances of agent are internally created as a part of lightspeed-stack API call, we may want to have a separate API just to instantiate an agent.

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions