UNPKG

@salesforce/agents

Version:

Client side APIs for working with Salesforce agents

24 lines (23 loc) 865 B
import { Connection } from '@salesforce/core'; import { type AgentTraceResponse } from './types'; /** * 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');` */ export declare class AgentTrace { /** * Get the trace data for a given trace ID. * * @param connection The connection to use for making the API request * @param traceId The trace ID to retrieve trace data for * @returns Promise that resolves with the trace data response containing actions and their execution details * @beta */ static getTrace(connection: Connection, traceId: string): Promise<AgentTraceResponse>; }