@deskcreate/agentcraft
    Preparing search index...

    Interface AgentEventMap

    Events emitted by workspace-aware agent, team, workflow, and store operations.

    interface AgentEventMap {
        "approval.denied": { toolName: string };
        "approval.granted": { toolName: string };
        "approval.requested": { sideEffect?: string; toolName: string };
        "artifact.read": { id: string; type: string };
        "artifact.write": {
            id: string;
            operation: "put" | "delete" | "update";
            type: string;
        };
        "cache.hit": {
            estimatedSavedTokens?: number;
            key: string;
            toolName: string;
        };
        "cache.miss": { key: string; toolName: string };
        "cost.updated": {
            cost: number;
            model: string;
            provider: string;
            tokensUsed: TokenUsage;
        };
        "tool.called": {
            sideEffectLevel?: "none"
            | "read"
            | "write"
            | "external";
            toolName: string;
        };
        "workflow.step.completed": {
            status: "completed"
            | "failed"
            | "skipped";
            stepId: string;
        };
        "workflow.step.started": { stepId: string; type: string };
    }
    Index

    Properties

    "approval.denied": { toolName: string }
    "approval.granted": { toolName: string }
    "approval.requested": { sideEffect?: string; toolName: string }
    "artifact.read": { id: string; type: string }
    "artifact.write": {
        id: string;
        operation: "put" | "delete" | "update";
        type: string;
    }
    "cache.hit": { estimatedSavedTokens?: number; key: string; toolName: string }
    "cache.miss": { key: string; toolName: string }
    "cost.updated": {
        cost: number;
        model: string;
        provider: string;
        tokensUsed: TokenUsage;
    }
    "tool.called": {
        sideEffectLevel?: "none" | "read" | "write" | "external";
        toolName: string;
    }
    "workflow.step.completed": {
        status: "completed" | "failed" | "skipped";
        stepId: string;
    }
    "workflow.step.started": { stepId: string; type: string }