@cpod/sdk - v0.2.7
    Preparing search index...

    Function getChatMessages

    • Get messages from a project chat

      Parameters

      • projectId: string

        The unique identifier of the project

      • chatId: string

        The unique identifier of the chat

      Returns Promise<ProjectChatMessage[]>

      Array of chat messages

      401 - Not authenticated

      404 - Project or chat not found

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

      const messages = await getChatMessages("project-123", "chat-456");
      messages.forEach(msg => {
      console.log(`${msg.role}: ${msg.content}`);
      });