Method ExecCommandAsync
- Namespace
- Oscova.Agents.Toolsets
- Assembly
- Oscova.Agents.dll
ExecCommandAsync(string, int?, CancellationToken)
Executes a command through the current run's shell executor. Approval is required by default.
[ToolNetworkScope(NetworkScope.Incidental)]
public Task<object> ExecCommandAsync(string command, int? timeoutSeconds = null, CancellationToken cancellationToken = default)Parameters
commandstring-
The shell command to execute.
timeoutSecondsint?-
Optional per-call timeout in seconds; defaults and clamps applied.
cancellationTokenCancellationToken-
A token that can cancel command execution.