forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits

getRagMessageById.ts8 lines, 422 bytesHistoryRawDownload
1import { client } from "../client";
2import type { RagMessage } from "../client";
3
4/** Poll this while a turn is `pending`, or open its stream instead. */
5export function getRagMessageById(threadId: string, messageId: string, signal?: AbortSignal): Promise<RagMessage> {
6 const url = `/rag/threads/${encodeURIComponent(threadId)}/messages/${encodeURIComponent(messageId)}`;
7 return client<RagMessage>(url, { signal });
8}