ChatSession(ListContent, String, ModelParams, HttpClient, ILogger) Constructor

Initializes a new instance of the ChatSession class

Definition

Namespace: GenerativeAI
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public ChatSession(
	List<Content>? history,
	string apiKey,
	ModelParams modelParams,
	HttpClient? client = null,
	ILogger? logger = null
)

Parameters

history  ListContent

[Missing <param name="history"/> documentation for "M:GenerativeAI.ChatSession.#ctor(System.Collections.Generic.List{GenerativeAI.Types.Content},System.String,GenerativeAI.Core.ModelParams,System.Net.Http.HttpClient,Microsoft.Extensions.Logging.ILogger)"]

apiKey  String

[Missing <param name="apiKey"/> documentation for "M:GenerativeAI.ChatSession.#ctor(System.Collections.Generic.List{GenerativeAI.Types.Content},System.String,GenerativeAI.Core.ModelParams,System.Net.Http.HttpClient,Microsoft.Extensions.Logging.ILogger)"]

modelParams  ModelParams

[Missing <param name="modelParams"/> documentation for "M:GenerativeAI.ChatSession.#ctor(System.Collections.Generic.List{GenerativeAI.Types.Content},System.String,GenerativeAI.Core.ModelParams,System.Net.Http.HttpClient,Microsoft.Extensions.Logging.ILogger)"]

client  HttpClient  (Optional)

[Missing <param name="client"/> documentation for "M:GenerativeAI.ChatSession.#ctor(System.Collections.Generic.List{GenerativeAI.Types.Content},System.String,GenerativeAI.Core.ModelParams,System.Net.Http.HttpClient,Microsoft.Extensions.Logging.ILogger)"]

logger  ILogger  (Optional)

[Missing <param name="logger"/> documentation for "M:GenerativeAI.ChatSession.#ctor(System.Collections.Generic.List{GenerativeAI.Types.Content},System.String,GenerativeAI.Core.ModelParams,System.Net.Http.HttpClient,Microsoft.Extensions.Logging.ILogger)"]

See Also