Table of Contents

Class ShellToolset

Namespace
Oscova.Agents.Toolsets
Assembly
Oscova.Agents.dll

Exposes foreground and background shell command execution through the runtime selected by the host app.

public sealed class ShellToolset : IAgentToolset

Inheritance

Implements

Inherited Members

Constructors

ShellToolset(IShellExecutorProvider, IShellBackgroundJobProvider, IToolOutputStore?)

Exposes foreground and background shell command execution through the runtime selected by the host app.

Fields

MaxTimeoutSeconds

The maximum seconds a single command may run; also the shared executor backstop.

Methods

ExecCommandAsync(string, int?, string?, CancellationToken)

Executes a command through the current run's shell executor. Approval is required by default.

FormatResult(ShellResult, IToolOutputStore?)

Shapes a shell result for the model, trimming each stream and saving captured text.

KillCommandAsync(string, CancellationToken)

Stops a background shell command.

ReadCommandOutputAsync(string, long, int?, CancellationToken)

Reads incremental output from a background shell command.

StartCommandAsync(string, string?, CancellationToken)

Launches a shell command in the background and returns a job id immediately.