import type { HttpClient, RequestOptions } from "../http.js"; import { Paginated } from "../pagination.js"; import type { AppendMessagesParams, AppendMessagesResult, Conversation, CreateConversationParams, ListConversationsParams, Message } from "../types.js"; /** * A running exchange the system remembers across sessions. * * A conversation is both a SOURCE of memories and a place to spend them: turns * appended here go through the same extraction pipeline as `remember`, so they * get consolidation and entity resolution rather than a second, drifting path. */ export declare class Conversations { #private; constructor(http: HttpClient); list(params?: ListConversationsParams, options?: RequestOptions): Paginated; get(id: string, options?: RequestOptions): Promise; create(params?: CreateConversationParams, options?: RequestOptions): Promise; messages(id: string, params?: { readonly limit?: number; readonly cursor?: string; }, options?: RequestOptions): Paginated; /** * Appends turns, and by default extracts memories from them. * * Check `extracting` on the result. With no queue configured the turns are * stored and never become memory, and the API says so in `note` rather than * reporting a success - a caller that ignores it believes a memory is on its * way that never arrives. * * `system` and `tool` turns are stored but never extracted: a system prompt * is configuration, and remembering it would file our own instructions as * the user's facts. * * Give this an `idempotencyKey`. Appending the same turn twice is the most * likely duplicate in the whole API - a client reconnecting after a dropped * response has no other way to tell whether its last write landed. */ append(id: string, params: AppendMessagesParams, options?: RequestOptions): Promise; }