Table of Contents

Class GenerateResponse

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

Properties

Response

Required. The generated response content.

public string Response { get; set; }

Property Value

string

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.