Skip to main content

Module background_command

Module background_command 

Source
Expand description

The runtime-provided background-command tool: the state of a shell command that was moved to the background, a wait for it, or a stop of it, named by the work id its shell call returned.

The commands themselves are kept by [crate::detached::DetachedRegistry]; this module holds what the model reads: the description, the input schema, the input parser and the result.

Constants§

BACKGROUND_COMMAND_TOOL
The runtime-provided tool an agent capsule has when it can run a shell command.
INPUT_SCHEMA
background-command’s input schema.
MAX_WAIT_SECS
The longest one wait blocks, in seconds, and what it blocks for when wait_secs is absent.

Functions§

description
background-command’s description, the same on both transports.
effective_wait
How long a wait blocks: wait_secs, at most MAX_WAIT_SECS, which is also what an absent wait_secs gives.