Table of Contents

Class ShellTools

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

Shell execution tool for the AI agent.

[ToolPlugin("shell")]
public sealed class ShellTools
Inheritance
ShellTools
Inherited Members

Methods

RunCommandAsync(string, string?, int)

[KernelFunction("run_command")]
[ToolSafetyTier(SafetyTier.AlwaysConfirm)]
public static Task<string> RunCommandAsync(string command, string? cwd = null, int timeoutSeconds = 60)

Parameters

command string
cwd string
timeoutSeconds int

Returns

Task<string>