import BrainbaseLabs from 'brainbase-labs';
const client = new BrainbaseLabs({
apiKey: process.env['BRAINBASE_LABS_API_KEY'], // This is the default and can be omitted
});
const embed = await client.workers.deploymentLogs.chat.embed.retrieve('logId', { workerId: 'workerId' });
console.log(embed.id);{
"id": "<string>",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"sessionId": "<string>",
"messages": {},
"status": "<string>",
"messageCount": 123,
"duration": 123,
"userAgent": "<string>",
"originUrl": "<string>",
"toolCalls": {}
}import BrainbaseLabs from 'brainbase-labs';
const client = new BrainbaseLabs({
apiKey: process.env['BRAINBASE_LABS_API_KEY'], // This is the default and can be omitted
});
const embed = await client.workers.deploymentLogs.chat.embed.retrieve('logId', { workerId: 'workerId' });
console.log(embed.id);{
"id": "<string>",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"sessionId": "<string>",
"messages": {},
"status": "<string>",
"messageCount": 123,
"duration": 123,
"userAgent": "<string>",
"originUrl": "<string>",
"toolCalls": {}
}API key authentication