beta
/Code Implemented Tool Calls
Abstract

A method may include receiving a user request for execution of one or more tool calls. The method may also include generating a code block in a programming language. The code block may be configured to encapsulate the one or more tool calls. The method may further include executing the code block in a sandbox. The method may also include pausing execution of the code block in response to obtaining a pending tool call. The method may further include transmitting the pending tool call to a client for execution. The method may also include receiving a first result of the pending tool call. The method may further include resuming execution of the code block and substituting the first result of the pending tool call for the pending tool call in the code block. The method may also include returning a second result of the executed code block.

Full Text

What is claimed is:

A method may include receiving a user request for execution of one or more tool calls. The method may also include generating a code block in a programming language. The code block may be configured to encapsulate the one or more tool calls. The method may further include executing the code block in a sandbox. The method may also include pausing execution of the code block in response to obtaining a pending tool call. The method may further include transmitting the pending tool call to a client for execution. The method may also include receiving a first result of the pending tool call. The method may further include resuming execution of the code block and substituting the first result of the pending tool call for the pending tool call in the code block. The method may also include returning a second result of the executed code block.
Timeline
Filed
03/04/2026
Granted
06/30/2026
IPC Codes(1)
G06F 9/54:Interprogram communication