import BrainbaseLabs from 'brainbase-labs';
const client = new BrainbaseLabs({
apiKey: 'My API Key',
});
const chats = await client.workers.deployments.chat.list('workerId');
console.log(chats);
[
{
"id": "<string>",
"allowedUsers": "<string>",
"welcomeMessage": "<string>",
"llmModel": "<string>",
"modelConfig": {},
"chatAgentId": "<string>"
}
]
import BrainbaseLabs from 'brainbase-labs';
const client = new BrainbaseLabs({
apiKey: 'My API Key',
});
const chats = await client.workers.deployments.chat.list('workerId');
console.log(chats);
[
{
"id": "<string>",
"allowedUsers": "<string>",
"welcomeMessage": "<string>",
"llmModel": "<string>",
"modelConfig": {},
"chatAgentId": "<string>"
}
]
API key authentication
List of chat deployments
The response is of type object[]
.