Table of Contents

Class ChatDeltaResponse

public class ChatDeltaResponse : OllamaTextResponse, IChatCompletionEvent, ITextStreamEvent
Inheritance
object
ChatDeltaResponse
Implements
ITextStreamEvent
Inherited Members

Properties

Delta

Required. The response message.

public MessageDelta Delta { get; set; }

Property Value

MessageDelta

Done

public bool? Done { get; set; }

Property Value

bool?

Methods

FirstTextDelta()

public string FirstTextDelta()

Returns

string

IsFinal()

public bool IsFinal()

Returns

bool

ToChatCompletionEvent(string)

public ChatCompletion ToChatCompletionEvent(string modelId)

Parameters

modelId string

Returns

ChatCompletion

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.