Skip to main content

Module protocol

Module protocol 

Source
Expand description

The requests a tool answers beside the plugin protocol’s own (info, install, remove, quit). Each is one JSON line with a "request" tag; the answer is the plugin protocol’s progress events, then one done (its result as below) or error.

Structs§

RunInput
An input result, on a path the tool can read.
RunRequest
Run an operation on input artifacts, writing its outputs into output_dir (which exists and is empty; the tool writes nothing elsewhere).
ToolRef
The tool that ran: its name and version, and the container image when it ran in one.
Validation
The answer to validate.

Enums§

ToolRequest
A request to a tool.

Constants§

TOOL_PROTOCOL
The tool protocol version this crate speaks: in crate::tool::ToolDescription::tool_protocol, checked by the orchestrator. The plugin protocol under it has its own version. Version 2 names ports and results by the contract’s type and format (version 1: artifact kinds).