Search Results for

    Show / Hide Table of Contents

    Class OllamaTextResponse

    Inheritance
    object
    OllamaResponse
    OllamaTextResponse
    GenerateResponse
    OllamaChatResponse
    OllamaStreamEvent
    Inherited Members
    OllamaResponse.Model
    OllamaResponse.TotalDuration
    OllamaResponse.LoadDuration
    OllamaResponse.InputTokenCount
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Ollama
    Assembly: Glitch9.AIDevKit.Provider.Ollama.dll
    Syntax
    public class OllamaTextResponse : OllamaResponse

    Properties

    | Edit this page View Source

    Context

    Optional. Encoding of the conversation used in this response.

    Declaration
    [JsonProperty("context")]
    public List<int> Context { get; set; }
    Property Value
    Type Description
    List<int>
    | Edit this page View Source

    CreatedAt

    Required. The timestamp when the response was created.

    Declaration
    [JsonProperty("created_at")]
    public ZuluTime CreatedAt { get; set; }
    Property Value
    Type Description
    ZuluTime
    | Edit this page View Source

    EvalDuration

    Optional. Time in nanoseconds spent generating the response.

    Declaration
    [JsonProperty("eval_duration")]
    public long? EvalDuration { get; set; }
    Property Value
    Type Description
    long?
    | Edit this page View Source

    FinishReason

    Optional. The reason the response generation was stopped.

    Declaration
    [JsonProperty("done_reason")]
    public FinishReason? FinishReason { get; set; }
    Property Value
    Type Description
    FinishReason?
    | Edit this page View Source

    OutputTokenCount

    Optional. Number of tokens in the response.

    Declaration
    [JsonProperty("eval_count")]
    public int? OutputTokenCount { get; set; }
    Property Value
    Type Description
    int?
    | Edit this page View Source

    PromptEvalDuration

    Optional. Time spent evaluating the prompt (in nanoseconds).

    Declaration
    [JsonProperty("prompt_eval_duration")]
    public long? PromptEvalDuration { get; set; }
    Property Value
    Type Description
    long?

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation