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

    Interface CreateSessionRequest

    The parameters for createSession.

    interface CreateSessionRequest {
        appName: string;
        sessionId?: string;
        state?: Record<string, unknown>;
        userId: string;
    }

    Properties

    appName: string

    The name of the application.

    sessionId?: string

    The ID of the session. A new ID will be generated if not provided.

    state?: Record<string, unknown>

    The initial state of the session.

    userId: string

    The ID of the user.