Class GenerateResponse
public class GenerateResponse : OllamaTextResponse, IChatCompletionEvent, ITextStreamEvent
- Inheritance
-
objectGenerateResponse
- 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
modelIdstring
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.