Skip to content

(connection) react -> py#strands-agent #463

@cogwirrel

Description

@cogwirrel

Description

Add support for websites to connect to python strands agents.

Motivation

Make it easy to integrate agents with websites.

For #326

Suggested Implementation

  • Update py#strands-agent generator to add openapi generation like fastapi, (making sure we namespace the output, eg dist/packages/{projectRoot}/<agentName>/openapi/openapi.json), vending a generate_openapi_<agent>.py python script that writes the openapi spec.
  • Write react -> py#strands-agent connection generator, and add the client generation using the open-api#ts-hooks generator just like the react -> py#fast-api one, and set up the client provider in the website. We should generate the url from the arn (if it's an arn) - use sigv4/cognito based on auth metadata. We should make sure we support serve-local still where this will be a localhost url rather than an arn.

Contribute to feature

  • I'd be willing to implement this feature

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