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.
declare function createToolJavaScript({ runtime }: CreateToolJavaScriptOptions): dist_packages_core_src_models_view_models.Tool<"javascript", {
code: string;
}, any>;
@param
{ runtime }
CreateToolJavaScriptOptions
@returns
dist_packages_core_src_models_view_models.Tool<"javascript", {
code: string;
}, any>