Skip to main content

Chalice x Agents for Amazon Bedrock plug-ins

Project description

Chalice-A4AB

What is this library?

Chalice plugin: Support Agents for Amazon Bedrock

Usage

  1. Install
pip install chalice-a4ab
  1. Replace from chalice.app import Chalice to from chalice_a4ab import Chalice.

Before:

from chalice.app import Chalice

app = Chalice("app-name")

@app.router("path-name")
...

After:

from chalice_a4ab import Chalice

app = Chalice("app-name")

@app.router("path-name")
...
  1. Application work on Agents for Amazon Bedrock

Advanced Usage

Create OpenAPI Schema automatically.

  1. Install Chalice-spec
pip install chalice-spec chalice-a4ab
  1. Write Setting
from chalice_a4ab import Chalice, AgentsForAmazonBedrockConfig

# Set Config for Agents for Amazon bedrock
config = AgentsForAmazonBedrockConfig(
    title="abc"
).apply()

app = Chalice("app-name")

@app.router("path-name")
...

if __name__ == "__main__":
    import boto3
    config.save_to_s3(boto3.Session(), "bucket-name")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chalice_a4ab-0.1.0.tar.gz (8.2 kB view hashes)

Uploaded Source

Built Distribution

chalice_a4ab-0.1.0-py3-none-any.whl (11.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page