Skip to content

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>

View source

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

View source

public IReadOnlyList<ModelMessage> Messages { get; init; }

Value: IReadOnlyList<ModelMessage>

View source

public string? Stop { get; init; }

Value: string

View source

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

View source