Skip to main content

removeExpertFromChat()

removeExpertFromChat(chatId: string, request: RemoveExpertFromChatRequest): Promise<ManagedChat>

Defined in: packages/core/src/index.ts:2627

Remove an expert from a chat

Parameters

ParameterTypeDescription
chatIdstringThe unique identifier of the chat
requestRemoveExpertFromChatRequestRequest with expert ID to remove

Returns

Promise<ManagedChat>

The updated chat object

Throws

401 - Not authenticated

Throws

404 - Chat or expert not found

Example

import { removeExpertFromChat } from "@cpod/sdk";

const chat = await removeExpertFromChat("chat-123", {
expert_id: "expert-456",
});