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

    Function getGcpProjectId

    • Resolves the GCP project ID from parameter, environment, or Application Default Credentials.

      Parameters

      • Optionalauth: GoogleAuth<AuthClient>

        Optional GoogleAuth instance to use for resolution.

      Returns Promise<string | undefined>

      The resolved project ID, or undefined if it cannot be determined.