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

    函数:getGcpProjectId

    • 可以从参数、环境变量或应用程序的默认凭据中获取 GCP 项目的 ID。

      参数

      • Optionalauth: GoogleAuth<AuthClient>

        可选的 GoogleAuth 实例,用于身份验证/授权过程。

      返回值 Promise<string | `undefined`>

      已解析的项目 ID;如果无法确定项目 ID,则该值将被设置为 “undefined”(未定义)。