halo - v1.0.0
    Preparing search index...

    Interface SessionResult

    Represents the result of a session with an AI agent. This interface defines the structure of the session result, including the user, session messages, and a method to save conversation history.

    interface SessionResult {
        saveHistory: <T>(data: ConversationDB<T>) => Promise<CoreMessage[]>;
        session: CoreMessage[];
        user: UserBase;
    }
    Index

    Properties

    saveHistory: <T>(data: ConversationDB<T>) => Promise<CoreMessage[]>

    The messages exchanged during the session. This property is required to store the conversation history between the user and the AI agent.

    session: CoreMessage[]

    The AI agent configuration used for the session. This property is required to specify the AI agent's settings, including the model and tools.

    user: UserBase

    The user associated with the session. This property is required to identify the user interacting with the AI agent.