Skip to main content

Module tool

Module tool 

Source

Structs§

InvocationResult
Successful result of a tool invocation.
MonomorphicToolMiddlewareScope
ProcessExitStatus
A completed command’s shell-visible status, distinct from a failure to execute the tool.
RawCustomToolError
A custom tool error whose payload is decoded only on explicit inspection.
Tool
Top-level tool metadata record.
ToolMiddleware
Metadata describing a tool middleware component.
ToolOutputWriter
Host-owned writer supplied to a tool or middleware implementation. Exactly one write, finish, or fail operation may be outstanding. The first terminal is immutable; dropping an open writer selects abandoned.
TypedUnderlyingInvocation
Typed view of a started underlying invocation generated for a tool command.
UnderlyingInvocation
One admitted invocation of the next middleware layer.
UnderlyingTool
Invocation-scoped access to exactly the next inner tool-middleware layer.

Enums§

Principal
ToolInvokeError
Exact error channel shared by middleware guest dispatch and its underlying layer.
ToolMiddlewareScope

Functions§

decode_result_empty
decode_result_outputs_only
decode_result_stderr_only
decode_result_stdout_only
decode_result_value
decode_result_with_outputs
decode_result_with_stderr
decode_result_with_stdout

Type Aliases§

InputStream
Readable byte stream used for tool stdin and tool outputs.