ART Framework API Docs
    Preparing search index...

    Interface ExecutionContext

    Context provided to a tool during its execution.

    ExecutionContext

    interface ExecutionContext {
        hitlContext?: HITLContext;
        threadId: string;
        traceId?: string;
        userId?: string;
    }
    Index

    Properties

    hitlContext?: HITLContext

    HITL context for blocking tools.

    This enables blocking tools to differentiate between:

    • Initial invocation (should return 'suspended' to request user input)
    • Post-approval invocation (if completesOnApproval is false, tool is re-executed)

    For most blocking tools with completesOnApproval=true (default), the tool is NOT re-executed after approval - the framework creates the success result programmatically. This field is only populated when completesOnApproval=false and the tool needs to perform actual work after user approval.

    threadId: string

    The ID of the thread in which the tool is being executed.

    traceId?: string

    The trace ID for this execution cycle, if available.

    userId?: string

    The user ID associated with the execution, if available.