@openai/agents-core
Version:
The OpenAI Agents SDK is a lightweight yet powerful framework for building multi-agent workflows.
31 lines (30 loc) • 1.47 kB
TypeScript
import { TracingProcessor } from './processor';
export { getCurrentSpan, getCurrentTrace, getOrCreateTrace, resetCurrentSpan, setCurrentSpan, withTrace, } from './context';
export * from './createSpans';
export { BatchTraceProcessor, TracingExporter, TracingProcessor, ConsoleSpanExporter, } from './processor';
export { NoopSpan, Span } from './spans';
export type { SpanData, AgentSpanData, FunctionSpanData, GenerationSpanData, ResponseSpanData, HandoffSpanData, CustomSpanData, GuardrailSpanData, TranscriptionSpanData, SpeechSpanData, SpeechGroupSpanData, MCPListToolsSpanData, SpanOptions, SpanError, } from './spans';
export { NoopTrace, Trace } from './traces';
export { generateGroupId, generateSpanId, generateTraceId } from './utils';
/**
* Add a processor to the list of processors. Each processor will receive all traces/spans.
*
* @param processor - The processor to add.
*/
export declare function addTraceProcessor(processor: TracingProcessor): void;
/**
* Set the list of processors. This will replace any existing processors.
*
* @param processors - The list of processors to set.
*/
export declare function setTraceProcessors(processors: TracingProcessor[]): void;
/**
* Set the disabled state of the tracing provider.
*
* @param disabled - Whether to disable tracing.
*/
export declare function setTracingDisabled(disabled: boolean): void;
/**
* Start the trace export loop.
*/
export declare function startTraceExportLoop(): void;