@salesforce/agents
    Preparing search index...

    Class AgentTrace

    A service for retrieving agent execution traces. Provides detailed information about agent plan execution including steps, timing, and safety scores.

    Examples

    Get trace data for a specific trace ID:

    const traceData = await AgentTrace.getTrace(connection, '12-23-34');

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Beta

      Get the trace data for a given trace ID.

      Parameters

      • connection: Connection

        The connection to use for making the API request

      • traceId: string

        The trace ID to retrieve trace data for

      Returns Promise<AgentTraceResponse>

      Promise that resolves with the trace data response containing actions and their execution details