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

Spec ScaffoldSpec

The spec, normalized.

Source string

ai when a model wrote it, parser when the fallback did.

Model string

Which model, as provider:model; null for the parser.

Notes IReadOnlyList<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

string

Notes

What was assumed or went wrong on the way, one line each.

[JsonPropertyName("notes")]
public IReadOnlyList<string> Notes { get; init; }

Property Value

IReadOnlyList<string>

Source

ai when a model wrote it, parser when the fallback did.

[JsonPropertyName("source")]
public string Source { get; init; }

Property Value

string

Spec

The spec, normalized.

[JsonPropertyName("spec")]
public ScaffoldSpec Spec { get; init; }

Property Value

ScaffoldSpec

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

Spec ScaffoldSpec
Source string
Model string
Notes IReadOnlyList<string>

Equals(ScaffoldProposal?)

public bool Equals(ScaffoldProposal? other)

Parameters

other ScaffoldProposal

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ScaffoldProposal?, ScaffoldProposal?)

public static bool operator ==(ScaffoldProposal? left, ScaffoldProposal? right)

Parameters

left ScaffoldProposal
right ScaffoldProposal

Returns

bool

operator !=(ScaffoldProposal?, ScaffoldProposal?)

public static bool operator !=(ScaffoldProposal? left, ScaffoldProposal? right)

Parameters

left ScaffoldProposal
right ScaffoldProposal

Returns

bool