Search Results for

    Show / Hide Table of Contents

    Class OllamaTextRequest

    Inheritance
    object
    OllamaRequest
    OllamaTextRequest
    Implements
    IJsonRequest
    Inherited Members
    OllamaRequest.Model
    OllamaRequest.Options
    OllamaRequest.KeepAlive
    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 OllamaTextRequest : OllamaRequest, IJsonRequest

    Properties

    | Edit this page View Source

    Format

    Optional. The format to return a response in. Format can be json or a JSON schema. If it's null, it's the plain text response.

    Declaration
    [JsonProperty("format")]
    public ResponseFormat Format { get; set; }
    Property Value
    Type Description
    ResponseFormat
    | Edit this page View Source

    Stream

    Optional. If false the response will be returned as a single response object.

    Declaration
    [JsonProperty("stream")]
    public bool Stream { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    System

    Optional. System message to override what is defined in the Modelfile.

    Declaration
    [JsonProperty("system")]
    public string System { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    SetJsonSchema(StrictJsonSchema)

    Declaration
    public OllamaTextRequest SetJsonSchema(StrictJsonSchema jsonSchema)
    Parameters
    Type Name Description
    StrictJsonSchema jsonSchema
    Returns
    Type Description
    OllamaTextRequest
    | Edit this page View Source

    SetJsonSchema(Type)

    Declaration
    public OllamaTextRequest SetJsonSchema(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    OllamaTextRequest

    Implements

    IJsonRequest

    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