Skip to content
SegmentStream/ Docs

Loading documentation…

↑ ↓ to navigate  ↵ to open  Esc to close
Website Console
Section menu
SDKsAgent SDKTypeScript

@segmentstream/agent/traces

2 public exports from @segmentstream/agent/traces.

Public exports

TraceSettings

What the agent's turn traces record: `traces` of `agent/segmentstream.json`.

interface TraceSettings {
    readonly content?: boolean;
}
traces

The agent's trace policy, which `agent/instrumentation/otel.ts` exports with the agent's `segmentstream.json`: every turn of every chat is traced, private chats' included, with its content unless `traces.content` is false. It is the SDK's own decision, not the runtime's default, which keeps content for public chats alone. Traces are kept by the deployment's host for its own period, and keeping content also keeps a finished session's run data for that period unless the agent sets its retention itself.

function traces(config?: {
    readonly traces?: TraceSettings;
    readonly [setting: string]: unknown;
}): import("eve/instrumentation/otel").OtelDeclaration;