startChat

actual fun startChat(templateId: String, inputs: Map<String, Any>, history: List<Content>): TemplateChat(source)

Creates a TemplateChat instance using this model with the optionally provided history.

Return

The initialized TemplateChat instance.

Parameters

templateId

The ID of the prompt template to use.

inputs

A map of variables to substitute into the template for the session.

history

Prior history in the conversation.

expect fun startChat(templateId: String, inputs: Map<String, Any>, history: List<Content> = emptyList()): TemplateChat(source)

Creates a TemplateChat instance using this model with the optionally provided history.

Return

The initialized TemplateChat instance.

Parameters

templateId

The ID of the prompt template to use.

inputs

A map of variables to substitute into the template for the session.

history

Prior history in the conversation.

actual fun startChat(templateId: String, inputs: Map<String, Any>, history: List<Content>): TemplateChat(source)

Creates a TemplateChat instance using this model with the optionally provided history.

Return

The initialized TemplateChat instance.

Parameters

templateId

The ID of the prompt template to use.

inputs

A map of variables to substitute into the template for the session.

history

Prior history in the conversation.