Shell
class Shell(runtime: ShellRuntime, val defaultTimeoutSeconds: Double = 30.0, val maxOutputChars: Int, val approveCommands: Boolean = !runtime.isolated) : Capability(source)
Shell commands with the tools and output format of Pydantic AI Harness Shell: run_command (labelled [stdout] / [stderr], [exit code: N] on failure, the tail kept when longer than maxOutputChars), and background start_command / check_command / stop_command.
Parameters
approveCommands
ask the user before each command; defaults to on unless the runtime is isolated.
Constructors
Link copied to clipboard
constructor(runtime: ShellRuntime, defaultTimeoutSeconds: Double = 30.0, maxOutputChars: Int, approveCommands: Boolean = !runtime.isolated)