Skip to main content

Module subprocess

Module subprocess 

Source
Expand description

Subprocess tool executor โ€” runs tools as external processes via stdin/stdout JSON-RPC.

Each tool maps to a command (binary or script). The runtime sends a JSON-RPC request on stdin and reads the JSON-RPC response from stdout. This enables language-agnostic tool authoring: any program that reads JSON from stdin and writes JSON to stdout works.

Structsยง

SubprocessTool
Registration for a subprocess tool โ€” maps a tool name to a command.
SubprocessToolExecutor
Tool executor that runs tools as subprocesses via stdin/stdout JSON-RPC.