Table of Contents

Class SystemOneRequest

Namespace
OllamaSharp.Models
Assembly
OllamaSharp.dll

Answers choice, yes/no and scoring questions about a shared state with a local System One model. Requires Ollama v0.35.0 or later. Streaming, images, tools and generation controls are not supported.

Ollama API docs

public class SystemOneRequest : OllamaRequest
Inheritance
SystemOneRequest
Inherited Members

Properties

KeepAlive

Gets or sets how long the model should stay loaded after the request, as a duration string (such as 5m) or seconds. Zero unloads after the request; a negative value keeps it loaded.

[JsonPropertyName("keep_alive")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? KeepAlive { get; set; }

Property Value

string

Model

The name of a local model trained for System One, such as nimble. Cloud models and MLX/Safetensors models are not supported.

[JsonPropertyName("model")]
public string Model { get; set; }

Property Value

string

Questions

The named questions about the shared state. Each question is scored separately against the full state; answers are not passed to later questions.

[JsonPropertyName("questions")]
public Dictionary<string, SystemOneQuestion> Questions { get; set; }

Property Value

Dictionary<string, SystemOneQuestion>

State

The shared state that all questions are asked about. Can be a nonempty string, or an object or array that gets serialized as JSON text. Not interpreted as chat messages or multimodal input.

[JsonPropertyName("state")]
public object State { get; set; }

Property Value

object