Table of Contents

Interface IShellBackgroundJobProvider

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

Launches and tracks detached shell commands for the active conversation.

public interface IShellBackgroundJobProvider

Remarks

Background shell jobs use an implementation-owned detached process because the framework shell executor is a blocking command primitive and does not expose partial reads for long-running jobs.

Methods

CleanupExecutionAsync(string, CancellationToken)

Stops and removes every background shell job owned by the conversation execution id.

CleanupUserAsync(string, CancellationToken)

Stops and removes every background shell job owned by the user.

HasLiveJobs(string)

True when the conversation has at least one job that has not exited.

KillAsync(string, CancellationToken)

Stops a background shell job.

ReadAsync(string, long, int?, CancellationToken)

Reads output from a background shell job after the supplied absolute output offset.

StartAsync(string, CancellationToken)

Starts a shell command in the background for the active conversation.