{"version":3,"file":"llms.cjs","names":["GoogleBaseLLM","GAuthClient"],"sources":["../src/llms.ts"],"sourcesContent":["import {\n  GoogleAbstractedClient,\n  GoogleBaseLLM,\n  GoogleBaseLLMInput,\n} from \"@langchain/google-common\";\nimport { GoogleAuthOptions } from \"google-auth-library\";\nimport { GAuthClient } from \"./auth.js\";\n\n/**\n * Input to LLM class.\n */\nexport interface GoogleLLMInput extends GoogleBaseLLMInput<GoogleAuthOptions> {}\n\n/**\n * Integration with a Google LLM.\n */\nexport class GoogleLLM\n  extends GoogleBaseLLM<GoogleAuthOptions>\n  implements GoogleLLMInput\n{\n  // Used for tracing, replace with the same name as your class\n  static lc_name() {\n    return \"GoogleLLM\";\n  }\n\n  lc_serializable = true;\n\n  constructor(fields?: GoogleLLMInput) {\n    super(fields);\n    this._addVersion(\"@langchain/google-gauth\", __PKG_VERSION__);\n  }\n\n  buildAbstractedClient(\n    fields: GoogleBaseLLMInput<GoogleAuthOptions> | undefined\n  ): GoogleAbstractedClient {\n    return new GAuthClient(fields);\n  }\n}\n"],"mappings":";;;;;;AAgBA,IAAa,YAAb,cACUA,yBAAAA,cAEV;CAEE,OAAO,UAAU;AACf,SAAO;;CAGT,kBAAkB;CAElB,YAAY,QAAyB;AACnC,QAAM,OAAO;AACb,OAAK,YAAY,2BAAA,SAA2C;;CAG9D,sBACE,QACwB;AACxB,SAAO,IAAIC,aAAAA,YAAY,OAAO"}