ChatSessionLastResponseContent Property

Gets the content of the last response received in the current chat session, providing access to the most recently generated reply or output from the model. This property is updated each time a response is successfully received within the session.

Definition

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

Property Value

Content

Remarks

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

See Also