@convex-dev/agent
Version:
A agent component for Convex.
101 lines • 3.63 kB
TypeScript
export declare const getThread: import("convex/server").RegisteredQuery<"public", {
threadId: import("convex/values").GenericId<"threads">;
}, Promise<{
userId?: string | undefined;
title?: string | undefined;
summary?: string | undefined;
_id: string;
_creationTime: number;
status: "active" | "archived";
} | null>>;
export declare const listThreadsByUserId: import("convex/server").RegisteredQuery<"public", {
userId?: string | undefined;
order?: "asc" | "desc" | undefined;
paginationOpts?: {
id?: number | undefined;
endCursor?: string | null | undefined;
maximumRowsRead?: number | undefined;
maximumBytesRead?: number | undefined;
numItems: number;
cursor: string | null;
} | undefined;
}, Promise<{
page: {
userId?: string | undefined;
title?: string | undefined;
summary?: string | undefined;
_id: string;
_creationTime: number;
status: "active" | "archived";
}[];
isDone: boolean;
continueCursor: import("convex/server").Cursor;
splitCursor?: import("convex/server").Cursor | null;
pageStatus?: "SplitRecommended" | "SplitRequired" | null;
}>>;
export declare const createThread: import("convex/server").RegisteredMutation<"public", {
userId?: string | undefined;
title?: string | undefined;
summary?: string | undefined;
defaultSystemPrompt?: string | undefined;
parentThreadIds?: import("convex/values").GenericId<"threads">[] | undefined;
}, Promise<{
userId?: string | undefined;
title?: string | undefined;
summary?: string | undefined;
_id: string;
_creationTime: number;
status: "active" | "archived";
}>>;
export declare const updateThread: import("convex/server").RegisteredMutation<"public", {
threadId: import("convex/values").GenericId<"threads">;
patch: {
status?: "active" | "archived" | undefined;
title?: string | undefined;
summary?: string | undefined;
};
}, Promise<{
userId?: string | undefined;
title?: string | undefined;
summary?: string | undefined;
_id: string;
_creationTime: number;
status: "active" | "archived";
}>>;
/**
* Use this to delete a thread and everything it contains.
* It will try to delete all pages synchronously.
* If it times out or fails, you'll have to run it again.
*/
export declare const deleteAllForThreadIdSync: import("convex/server").RegisteredAction<"public", {
limit?: number | undefined;
threadId: import("convex/values").GenericId<"threads">;
}, Promise<void>>;
export declare const _deletePageForThreadId: import("convex/server").RegisteredMutation<"internal", {
limit?: number | undefined;
cursor?: string | undefined;
messagesDone?: boolean | undefined;
streamsDone?: boolean | undefined;
streamOrder?: number | undefined;
deltaCursor?: string | undefined;
threadId: import("convex/values").GenericId<"threads">;
}, Promise<{
isDone: boolean;
cursor: string;
}>>;
/**
* Use this to delete a thread and everything it contains.
* It will continue deleting pages asynchronously.
*/
export declare const deleteAllForThreadIdAsync: import("convex/server").RegisteredMutation<"public", {
limit?: number | undefined;
cursor?: string | undefined;
messagesDone?: boolean | undefined;
streamsDone?: boolean | undefined;
streamOrder?: number | undefined;
deltaCursor?: string | undefined;
threadId: import("convex/values").GenericId<"threads">;
}, Promise<{
isDone: boolean;
}>>;
//# sourceMappingURL=threads.d.ts.map