@dxos/compute - v0.16.0
    Preparing search index...

    Interface Service

    Service interface for the agent session manager. Implementation lives in @dxos/functions-runtime.

    interface Service {
        getSession: (
            chat: Conversation,
            options?: GetSessionOptions,
        ) => Effect<Session, never, Service>;
        hydrate: () => Effect<void>;
    }
    Index

    Properties

    Properties

    getSession: (
        chat: Conversation,
        options?: GetSessionOptions,
    ) => Effect<Session, never, Service>

    Gets or creates a session for a chat. The agent process is bound to the chat (its spawn target), reading the feed, the steering instructions and the model from it.

    hydrate: () => Effect<void>

    Hydrates agent processes persisted by a previous session. Each record is rehydrated with a fresh process built from the layer options.