Creates a tool that allows the LLM to run JavaScript code. It is run in a stateful JavaScript environment, with no access to the internet, the DOM, or any function that you have not explicitly defined.
API
declare function createToolJavaScript<Result>(
input: CreateToolJavaScriptOptions ,
): Chat.Tool <
"javascript",
s.Infer <typeof schema >,
Result
>;createToolJavaScript
Chat.Tool<'javascript', s.Infer<typeof schema>, Result>@param{ runtime, }:@paraminput:CreateToolJavaScriptOptions@typeResult@returnsChat.Tool<'javascript', s.Infer<typeof schema>, Result>