sparse-summer-58707
07/04/2025, 4:40 PMtall-airline-16756
07/04/2025, 4:40 PMtall-airline-16756
07/04/2025, 4:40 PMstoreMetadata
and getMetadata
methods of the AgentCallContext
class. Here's how you can do it:
// Store metadata
context.storeMetadata("sipHeaders", headers);
// Retrieve metadata
const sipHeaders = context.getMetadata("sipHeaders");
console.log(sipHeaders); // Print the SIP headers
These methods allow you to store and retrieve arbitrary metadata during an agent call.
Sources: AgentCallContext | LiveKit Agents | AgentCallContext | LiveKit Agents