Table of Contents

Class GenerateDoneResponseStream

Namespace
OllamaSharp.Models
Assembly
OllamaSharp.dll

Represents the final response from the /api/generate endpoint

public class GenerateDoneResponseStream : GenerateResponseStream
Inheritance
GenerateDoneResponseStream
Inherited Members

Properties

Context

An encoding of the conversation used in this response, this can be sent in the next request to keep a conversational memory

[JsonPropertyName("context")]
public long[] Context { get; set; }

Property Value

long[]

EvalCount

The number of tokens in the response

[JsonPropertyName("eval_count")]
public int EvalCount { get; set; }

Property Value

int

EvalDuration

The time in nanoseconds spent generating the response

[JsonPropertyName("eval_duration")]
public long EvalDuration { get; set; }

Property Value

long

LoadDuration

The time spent in nanoseconds loading the model

[JsonPropertyName("load_duration")]
public long LoadDuration { get; set; }

Property Value

long

PromptEvalCount

The number of tokens in the prompt

[JsonPropertyName("prompt_eval_count")]
public int PromptEvalCount { get; set; }

Property Value

int

PromptEvalDuration

The time spent in nanoseconds evaluating the prompt

[JsonPropertyName("prompt_eval_duration")]
public long PromptEvalDuration { get; set; }

Property Value

long

TotalDuration

The time spent generating the response

[JsonPropertyName("total_duration")]
public long TotalDuration { get; set; }

Property Value

long