Class SystemOneQuestion
- Namespace
- OllamaSharp.Models
- Assembly
- OllamaSharp.dll
A single named question asked by a SystemOneRequest. Use SystemOneChoiceQuestion, SystemOneNoulQuestion or SystemOneScoreQuestion to create one.
[JsonPolymorphic(TypeDiscriminatorPropertyName = "type")]
[JsonDerivedType(typeof(SystemOneChoiceQuestion), "choice")]
[JsonDerivedType(typeof(SystemOneNoulQuestion), "noul")]
[JsonDerivedType(typeof(SystemOneScoreQuestion), "score")]
public abstract class SystemOneQuestion
- Inheritance
-
SystemOneQuestion
- Derived
- Inherited Members
Properties
Instructions
The instructions shown to the model for this question. Can be a nonempty string, or an object or array that gets serialized as JSON text.
[JsonPropertyName("instructions")]
public object Instructions { get; set; }
Property Value
Type
The type discriminator of this question.
[JsonIgnore]
public abstract string Type { get; }