PreparedMessages
Namespace: E2E
public sealed record PreparedMessages : IEquatable<PreparedMessages>What PrepareMessages hands back: the history for the next turn, and optionally a reason to
stop. The executor has evidence the loop guards cannot see that the step is not progressing. A stop leaves the model only done, like a loop guard.
Inheritance: object
Implements: IEquatable<PreparedMessages>
Constructors
Section titled “Constructors”PreparedMessages(IReadOnlyList<ModelMessage>, string?)
Section titled “PreparedMessages(IReadOnlyList<ModelMessage>, string?)”public PreparedMessages(IReadOnlyList<ModelMessage> Messages, string? Stop = null)What PrepareMessages hands back: the history for the next turn, and optionally a reason to
stop. The executor has evidence the loop guards cannot see that the step is not progressing. A stop leaves the model only done, like a loop guard.
Parameters
| Name | Type | Description |
|---|---|---|
Messages |
IReadOnlyList<ModelMessage> | |
Stop |
string |
Properties
Section titled “Properties”Messages
Section titled “Messages”public IReadOnlyList<ModelMessage> Messages { get; init; }Value: IReadOnlyList<ModelMessage>
public string? Stop { get; init; }Value: string
Operators
Section titled “Operators”implicit operator PreparedMessages(List<ModelMessage>)
Section titled “implicit operator PreparedMessages(List<ModelMessage>)”public static implicit operator PreparedMessages(List<ModelMessage> messages)Parameters
| Name | Type | Description |
|---|---|---|
messages |
List<ModelMessage> |
Returns: PreparedMessages