Class ScaffoldProposal
- Namespace
- Kuestenlogik.Bowire.Ai
- Assembly
- Kuestenlogik.Bowire.Ai.dll
What a model is asked, and who answered.
public sealed record ScaffoldProposal : IEquatable<ScaffoldProposal>
- Inheritance
-
ScaffoldProposal
- Implements
- Inherited Members
Constructors
ScaffoldProposal(ScaffoldSpec, string, string?, IReadOnlyList<string>)
What a model is asked, and who answered.
public ScaffoldProposal(ScaffoldSpec Spec, string Source, string? Model, IReadOnlyList<string> Notes)
Parameters
SpecScaffoldSpecThe spec, normalized.
Sourcestringaiwhen a model wrote it,parserwhen the fallback did.ModelstringWhich model, as
provider:model; null for the parser.NotesIReadOnlyList<string>What was assumed or went wrong on the way, one line each.
Properties
Model
Which model, as provider:model; null for the parser.
[JsonPropertyName("model")]
public string? Model { get; init; }
Property Value
Notes
What was assumed or went wrong on the way, one line each.
[JsonPropertyName("notes")]
public IReadOnlyList<string> Notes { get; init; }
Property Value
Source
ai when a model wrote it, parser when the fallback did.
[JsonPropertyName("source")]
public string Source { get; init; }
Property Value
Spec
The spec, normalized.
[JsonPropertyName("spec")]
public ScaffoldSpec Spec { get; init; }
Property Value
Methods
Deconstruct(out ScaffoldSpec, out string, out string?, out IReadOnlyList<string>)
public void Deconstruct(out ScaffoldSpec Spec, out string Source, out string? Model, out IReadOnlyList<string> Notes)
Parameters
SpecScaffoldSpecSourcestringModelstringNotesIReadOnlyList<string>
Equals(ScaffoldProposal?)
public bool Equals(ScaffoldProposal? other)
Parameters
otherScaffoldProposal
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ScaffoldProposal?, ScaffoldProposal?)
public static bool operator ==(ScaffoldProposal? left, ScaffoldProposal? right)
Parameters
leftScaffoldProposalrightScaffoldProposal
Returns
operator !=(ScaffoldProposal?, ScaffoldProposal?)
public static bool operator !=(ScaffoldProposal? left, ScaffoldProposal? right)
Parameters
leftScaffoldProposalrightScaffoldProposal