| CPC G06F 21/53 (2013.01) [G06F 21/563 (2013.01); G06F 21/606 (2013.01)] | 20 Claims |

|
1. A method for securely executing code blocks for artificial intelligence (AI) agents, comprising:
receiving, from a user device, an input associated with an AI agent;
executing the AI agent by an agent executor, wherein the AI agent includes a code block for executing a customer script;
creating a nano sandbox for executing the customer script of the code block, including:
binding system resources as read-only to the nano sandbox;
binding a temporary directory to the nano sandbox; and
defining network access within the nano sandbox;
seeding an input variable within the nano sandbox for use with the customer script;
executing the customer script within the temporary directory of the nano sandbox, the customer script utilizing the input variable, wherein the execution of the customer script results in writing to an output file in the nano sandbox;
copying an output from the output file to a location outside of the nano sandbox; and
destroying the nano sandbox.
|