Expand description
Language-neutral executable tool-composition contract.
A composition run is a tiny program over already-typed tool bindings. The runtime must expose it as a parent run with child tool operations, not as an opaque “execute code” blob, so policy, transcript, replay, and host approval surfaces can keep reasoning about each child call normally.
Structs§
- Binding
Manifest - Stable prompt-visible manifest for a composition run.
- Binding
Manifest Entry - Prompt-visible description of one callable binding.
- Binding
Manifest Options - Binding
Policy Status - Policy metadata attached to a manifest binding.
- Closure
Composition Tool Host - Dispatches every binding call to a caller-supplied Harn closure.
- Composition
Child Call - Child tool call made by a composition snippet. This is intentionally close
to
AgentEvent::ToolCall, but includes parent-run correlation and the policy/annotation context the composition executor used when deciding whether the call was allowed. - Composition
Child Result - Terminal or intermediate result for a child binding operation. Consumers
should pair this with the corresponding
CompositionChildCallto recover the policy annotations and requested side-effect level for the operation. - Composition
Execution Limits - Composition
Execution Report - Composition
Execution Request - Composition
RunEnvelope - Identity and policy envelope for one composition run.
- Composition
Tool Output - Static
Composition Tool Host
Enums§
- Binding
Policy Disposition - Policy disposition for a binding projected into a composition manifest.
- Composition
Failure Category - Stable failure taxonomy for a composition run. Tool-level failures stay on
CompositionChildResult; this classifies why the parent composition itself failed or stopped.
Constants§
Traits§
Functions§
- binding_
manifest_ from_ tool_ surface - Build a binding manifest from a Harn tool registry, MCP
tools/listpayload, or provider-native tool array. - binding_
manifest_ hash - Stable digest for a binding manifest value. Producers should build manifests with deterministic object key order before hashing.
- composition_
crystallization_ trace - composition_
report_ events - composition_
search_ examples - composition_
snippet_ hash - Stable digest for the prompt-visible snippet body.
- composition_
typescript_ declarations - execute_
harn_ composition - Execute a read-only Harn-native composition snippet against a manifest.
- register_
composition_ builtins