You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Curious if there's any LangChain integration capability with these features yet? Here's an example with boto3:
importboto3client=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')
foreventineventstream:
print(event)
The text was updated successfully, but these errors were encountered:
1. Add CodeInterpreter to the create_agent method for the existing agent
executor implementation.
2. Add the ability to return files in the output.
3. Add example notebook showing how to use the code interpreter and the
files output.
Related to Issue 309 - Bedrock Inline Agents and Code Interpreter
#309
Curious if there's any LangChain integration capability with these features yet? Here's an example with boto3:
The text was updated successfully, but these errors were encountered: