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

Bedrock Inline Agents and Code Interpreter #309

Open
austinmw opened this issue Dec 18, 2024 · 1 comment
Open

Bedrock Inline Agents and Code Interpreter #309

austinmw opened this issue Dec 18, 2024 · 1 comment
Labels
bedrock agents enhancement New feature or request

Comments

@austinmw
Copy link

Curious if there's any LangChain integration capability with these features yet? Here's an example with boto3:

import boto3
client = boto3.client('bedrock-agent-runtime', region_name='us-west-2')

response = client.invoke_inline_agent(
    actionGroups=[
        {
            'actionGroupName': 'CodeInterpreterAction',
            'parentActionGroupSignature': 'AMAZON.CodeInterpreter'
        },
    ],
    enableTrace=True,
    endSession=False,
    foundationModel='anthropic.claude-3-sonnet-20240229-v1:0',
    inputText='Calculate the square root of 169 added to the sum of the fibonacci sequence up to 321.',
    instruction='You are a helpful assistant who can perform complex calculations and return the outputs from running Python code.',
    sessionId='session-1'
)

eventstream = response.get('completion')

for event in eventstream:
    print(event)
@3coins 3coins added enhancement New feature or request bedrock agents labels Dec 20, 2024
@3coins
Copy link
Collaborator

3coins commented Dec 20, 2024

cc @bakjohn
cc @kcgourishetti

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bedrock agents enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants