ADK for TypeScript: API Reference
    Preparing search index...

    Interface Session

    Represents a session in a conversation between agents and users.

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

    Properties

    appName: string

    The name of the app.

    events: Event[]

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

    id: string

    The unique identifier of the session.

    lastUpdateTime: number

    The last update time of the session.

    state: Record<string, unknown>

    The state of the session.

    userId: string

    The id of the user.