trickroom / Docs
Sign in

SDK reference · Assistants and evaluation

client.inference

client.inference.{ retention, traces, trace }

When inference retention is on, each model call's request and response are kept for review.

retention

retention(): Promise<{ enabled: boolean }>

Whether calls are being saved.

Returns Promise<{ enabled: boolean }>

traces

traces(options?: { job_id?: string; before?: string; limit?: number }): Promise<InferenceTracePage>

Saved calls, newest first.

Returns Promise<InferenceTracePage>

trace

trace(id: string): Promise<InferenceTraceDetail>

One saved call with its request and response.

Returns Promise<InferenceTraceDetail>