import BrainbaseLabs from 'brainbase-labs';
const client = new BrainbaseLabs();
await client.callMetrics.create({ metrics: [{}] });Accepts a batch of call metrics (LLM, TTS, STT, EOU) collected during a voice call. The voice worker accumulates metrics for the entire call and sends them in a single POST at session end.
import BrainbaseLabs from 'brainbase-labs';
const client = new BrainbaseLabs();
await client.callMetrics.create({ metrics: [{}] });