ChatSessionLastRequestContent Property

Gets the content of the last request made in the current chat session, allowing access to the most recently sent message or query. This property is updated each time a request is successfully made within the session.

Definition

Namespace: GenerativeAI
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public Content? LastRequestContent { get; }

Property Value

Content

Remarks

The value of this property is `null` if no request has been made or if the session was reset by assigning a new history to the History property.

See Also