@@ -1340,6 +1340,22 @@ export interface StartChatParams extends BaseParams {
13401340 tools? : Tool [];
13411341}
13421342
1343+ // @public
1344+ export interface StartTemplateChatParams extends BaseParams {
1345+ // (undocumented)
1346+ history? : Content [];
1347+ // (undocumented)
1348+ systemInstruction? : string | Part | Content ;
1349+ // (undocumented)
1350+ templateId: string ;
1351+ // (undocumented)
1352+ templateVariables? : Record <string , unknown >;
1353+ // (undocumented)
1354+ toolConfig? : ToolConfig ;
1355+ // (undocumented)
1356+ tools? : TemplateTool [];
1357+ }
1358+
13431359// @public
13441360export class StringSchema extends Schema {
13451361 constructor (schemaParams ? : SchemaParams , enumValues ? : string []);
@@ -1349,6 +1365,37 @@ export class StringSchema extends Schema {
13491365 toJSON(): SchemaRequest ;
13501366}
13511367
1368+ // @public
1369+ export class TemplateChatSession {
1370+ constructor (apiSettings : ApiSettings , params : StartTemplateChatParams , requestOptions ? : RequestOptions | undefined );
1371+ // @internal
1372+ _callFunctionsAsNeeded(functionCalls : FunctionCall []): Promise <FunctionResponsePart []>;
1373+ // @internal
1374+ _formatRequest(incomingContent : Content , tempHistory : Content []): object ;
1375+ // @internal
1376+ _getCallableFunctionCalls(response ? : GenerateContentResponse ): FunctionCall [] | undefined ;
1377+ getHistory(): Promise <Content []>;
1378+ // (undocumented)
1379+ params: StartTemplateChatParams ;
1380+ // (undocumented)
1381+ requestOptions? : RequestOptions | undefined ;
1382+ sendMessage(request : string | Array <string | Part >, singleRequestOptions ? : SingleRequestOptions ): Promise <GenerateContentResult >;
1383+ sendMessageStream(request : string | Array <string | Part >, singleRequestOptions ? : SingleRequestOptions ): Promise <GenerateContentStreamResult >;
1384+ }
1385+
1386+ // @public
1387+ export interface TemplateFunctionDeclaration {
1388+ description? : never ;
1389+ functionReference? : Function ;
1390+ name: string ;
1391+ parameters? : ObjectSchema | ObjectSchemaRequest ;
1392+ }
1393+
1394+ // @public
1395+ export interface TemplateFunctionDeclarationsTool {
1396+ functionDeclarations? : TemplateFunctionDeclaration [];
1397+ }
1398+
13521399// @beta
13531400export class TemplateGenerativeModel {
13541401 constructor (ai : AI , requestOptions ? : RequestOptions );
@@ -1357,6 +1404,7 @@ export class TemplateGenerativeModel {
13571404 generateContent(templateId : string , templateVariables : object , singleRequestOptions ? : SingleRequestOptions ): Promise <GenerateContentResult >;
13581405 generateContentStream(templateId : string , templateVariables : object , singleRequestOptions ? : SingleRequestOptions ): Promise <GenerateContentStreamResult >;
13591406 requestOptions? : RequestOptions ;
1407+ startChat(params : StartTemplateChatParams ): TemplateChatSession ;
13601408}
13611409
13621410// @beta
@@ -1368,6 +1416,9 @@ export class TemplateImagenModel {
13681416 requestOptions? : RequestOptions ;
13691417}
13701418
1419+ // @public
1420+ export type TemplateTool = TemplateFunctionDeclarationsTool ;
1421+
13711422// @public
13721423export interface TextPart {
13731424 // (undocumented)
0 commit comments