Replies: 1 comment
|
Closing this one in favor of #1252, same issue with a cleaner repro. Let's keep the conversation there. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm struggling to get the
AgentCoreCodeInterpretertool to work properly with a Strands agent. I want the agent to be able to use the code interpreter to generate a visualization of some data and make it available to the user (ultimately via a web interface, but for now I'm just trying to get it to save an image file locally).I'm starting with this example from the AgentCore documentation, and I've modified the prompt to request a graph. I also modified the system prompt slightly, and I added the
file_readandfile_writetools so that the agent can write the resulting file locally. Here's my test code:When I run this code, I get this output:
Every time it tries to read files from the sandbox, it outputs this:
The graph image file is never written locally.
Is there a way to make the agent use the AgentCoreCodeInterpreter more reliably, and be able to access files in the sandbox?
All reactions