Skip to main content

Interface: StepGate

Defined in: packages/agentos/src/cognition/emergent/StepGate.ts:19

Runs one step with the host's checks. Built by ToolOrchestrator, or by a host with createStepGate.

Methods​

resolve()​

resolve(name): ITool<any, any> | undefined

Defined in: packages/agentos/src/cognition/emergent/StepGate.ts:21

The tool a step names, as registered right now, or undefined.

Parameters​

name​

string

Returns​

ITool<any, any> | undefined


run()​

run(tool, args, context, signal?): Promise<ToolExecutionResult<any>>

Defined in: packages/agentos/src/cognition/emergent/StepGate.ts:28

Run one step as the caller in context. The step's tool is the instance the pipeline resolved and checked, so a registration that replaces the name between the check and the run is not what runs. A signal that is already aborted when the checks are done stops the step before its tool.

Parameters​

tool​

ITool

args​

Record<string, unknown>

context​

ToolExecutionContext

signal?​

AbortSignal

Returns​

Promise<ToolExecutionResult<any>>