Skip to content
1 min read · 149 words

Function: forgeOrchestrationTools()

ts
function forgeOrchestrationTools(
  runtime: ForgeOrchestrationRuntime,
  options: ForgeOrchestrationOptions,
): Record<string, Tool>;

Defined in: src/batteries/orchestration/forge.ts:619

Forge the model-facing orchestration tools for a configured runtime and tier.

Parameters

ParameterTypeDescription
runtimeForgeOrchestrationRuntimeThe store, tier-C allowlist, predicate cells, templates, and actor identity.
optionsForgeOrchestrationOptionsTier, per-tool overrides, and an optional mutating-tool gate.

Returns

Record<string, Tool>

The forged tools, keyed by name.

Remarks

Returns a Record<string, Tool> keyed by the (post-override) tool name. Tier A ('front') yields the three conversational tools; tier B ('authoring') yields the graph-mechanics tools. Tier C is runtime.invocable, not a tool tier, and is the SAME object the tool registry is.

Where a gate is supplied it is run via runToolGate before any MUTATING tool executes; read-only tools are not gated. The wire↔IR conversion (hydrateRefs/ dehydrateRefs) happens inside this function and nowhere else.