I’m trying to achieve something as follows:
- Store my .py script in Spaces.
- Python executor runs in Chat
- Chat Agent gives back the output in Chat.
I’m trying to achieve something as follows:
Hi @amitasap and welcome to the Quick Community!
What you’re describing, if I am interpreting it correctly, isn’t natively supported today in the Amazon Quick web chat experience. You can store .py files in a Space (Spaces accept most file types), and a chat agent can read that file’s content if the Space is connected as a knowledge source, but the web chat agent doesn’t have an arbitrary Python execution tool that would let it actually run your script and return live output.
The closest things that exist right now are:
(1) Quick Automate Code Actions, which let you run Python code blocks inside automation flows, though they’re quite restricted (only a handful of standard libraries, no file system or external API access, and they live in flows rather than interactive chat)
(2) the Amazon Quick Desktop app, which has a full sandboxed Python execution environment and can connect to your Quick Web Spaces, so it can read a file from a Space and execute code in chat. That’s probably the closest to what you want today, though you’d still need to paste or reference the script rather than having it auto-execute a stored .py file.
For the full end-to-end workflow you’re describing does not currently exist. I will leave the feature request tag attached to this post and that will help increase visibility to the Quick Team.