Interface WrapForgeToolOptions

Options for wrapForgeTool.

interface WrapForgeToolOptions {
    raw: ForgeToolMetaTool;
    agentId: string;
    sessionId: string;
    capture: ((record) => void);
    scope?: string;
    log?: ((event) => void);
}

Properties

The raw ForgeToolMetaTool instance from EmergentCapabilityEngine.

agentId: string

The identity recorded as the owner of every tool forged through this wrapper (its personaId and gmiId on the forge call), whoever calls.

sessionId: string

Session id patched onto the tool execution context under sessionData.

capture: ((record) => void)

Required capture sink. Every attempt (valid or not) is recorded.

Type declaration

scope?: string

Optional scope label propagated onto every CapturedForge. Use for semantic grouping when multiple callers share a wrapper (dept name, channel id, agent role, etc.).

log?: ((event) => void)

Optional log callback for lifecycle visibility. When undefined, no log events are emitted (quiet mode).

Type declaration