Connects to the Vertex AI Agent Engine Session Service using GenAI API client.

https://cloud.google.com/vertex-ai/generative-ai/docs/agent-engine/sessions/overview

Hierarchy (view full)

Constructors

Methods

  • Creates a new session.

    Parameters

    • appName: string

      The name of the app.

    • userId: string

      The id of the user.

    • Optionalstate: Record<string, any>

      The initial state of the session.

    • OptionalsessionId: string

      The client-provided id of the session. If not provided, a generated ID will be used.

    Returns Promise<Session>

    The newly created session instance.