Table of Contents

Class NotebookTools

Namespace
JD.AI.Core.Tools
Assembly
JD.AI.Core.dll

Code execution (REPL) tools for running snippets in various languages.

[ToolPlugin("notebook")]
public sealed class NotebookTools
Inheritance
NotebookTools
Inherited Members

Methods

ExecuteCodeAsync(string, string, int)

[KernelFunction("execute_code")]
[ToolSafetyTier(SafetyTier.AlwaysConfirm)]
public static Task<string> ExecuteCodeAsync(string language, string code, int timeoutSeconds = 30)

Parameters

language string
code string
timeoutSeconds int

Returns

Task<string>