Member Junction
    Preparing search index...

    Class RealtimeConversationMemory

    Provider-neutral notebook of final turns. A realtime provider that loses its session (for example Gemini Live at its connection limit) reseeds the new session from Seed(). Pure data: no I/O, no timers.

    Entries are kept in conversation order, which is not always the order their text is final in: a provider that transcribes the user's speech asynchronously (OpenAI) can finish the transcript after the model has answered or called a tool. Such a driver reserves the user turn's place with ReserveUserTurn when the provider commits the audio, and the transcript fills that place later. Without it, the seed would put the request after its answer, and the resumed model could act on the request a second time.

    Index

    Constructors

    Accessors

    Methods

    • Reserves the conversation position of a user turn whose text is not final yet (for example audio the provider committed but has not transcribed). A later Record of a user entry with the same ItemId fills it. A reserved turn that never gets text is left out of the seed; at most REALTIME_MEMORY_MAX_PENDING_USER_TURNS wait at once. Reserving an id that is already in memory does nothing.

      Parameters

      • itemId: string

      Returns void