Represents a series of interactions between a user and agents.

interface Session {
    id: string;
    appName: string;
    userId: string;
    state: Record<string, any>;
    events: Event[];
    lastUpdateTime: number;
}

Properties

id: string

The unique identifier of the session.

appName: string

The name of the app.

userId: string

The id of the user.

state: Record<string, any>

The state of the session.

events: Event[]

The events of the session, e.g. user input, model response, function call/response, etc.

lastUpdateTime: number

The last update time of the session.