RunReplayPreparation
AgentPrism.Core.dllRepresents a prepared replay plan.
public sealed record RunReplayPreparation : IEquatable<RunReplayPreparation>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEquatable<RunReplayPreparation>
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
Section titled “Properties”Gets the agent to run.
public AIAgent? Agent { get; init; }Property Value
Section titled “Property Value”AIAgent?
AgentVersion
Section titled “ AgentVersion”Gets the definition version to use in the replay. null for a code-defined agent.
public int? AgentVersion { get; init; }Property Value
Section titled “Property Value”int?
Detail
Section titled “ Detail”Gets the human-readable reason for a failure. Empty when RunReplayOutcome.Ready.
public string? Detail { get; init; }Property Value
Section titled “Property Value”Messages
Section titled “ Messages”Gets the recorded input of the source run.
public IReadOnlyList<ChatMessage> Messages { get; init; }Property Value
Section titled “Property Value”IReadOnlyList<ChatMessage>
ModelId
Section titled “ ModelId”Gets the model to use in the replay. null if unknown.
public string? ModelId { get; init; }Property Value
Section titled “Property Value”Outcome
Section titled “ Outcome”Gets the outcome of the preparation.
public required RunReplayOutcome Outcome { get; init; }Property Value
Section titled “Property Value”SourceRun
Section titled “ SourceRun”Gets the source run.
public RunRecord? SourceRun { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(RunReplayPreparation?)
Section titled “ Equals(RunReplayPreparation?)”public bool Equals(RunReplayPreparation? other)Parameters
Section titled “Parameters”other RunReplayPreparation?
Returns
Section titled “Returns”Failed(RunReplayOutcome, string)
Section titled “ Failed(RunReplayOutcome, string)”Produces a failed preparation.
public static RunReplayPreparation Failed(RunReplayOutcome outcome, string detail)Parameters
Section titled “Parameters”outcome RunReplayOutcome
The outcome.
detail string
The reason.
Returns
Section titled “Returns”The preparation.
GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”Ready(AIAgent, IReadOnlyList<ChatMessage>, RunRecord, int?, string?)
Section titled “ Ready(AIAgent, IReadOnlyList<ChatMessage>, RunRecord, int?, string?)”Produces a ready plan.
public static RunReplayPreparation Ready(AIAgent agent, IReadOnlyList<ChatMessage> messages, RunRecord sourceRun, int? agentVersion, string? modelId)Parameters
Section titled “Parameters”agent AIAgent
The agent to run.
messages IReadOnlyList<ChatMessage>
The recorded input.
sourceRun RunRecord
The source run.
agentVersion int?
The definition version to use.
modelId string?
The model to use.
Returns
Section titled “Returns”The preparation.
ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(RunReplayPreparation?, RunReplayPreparation?)
Section titled “ operator ==(RunReplayPreparation?, RunReplayPreparation?)”public static bool operator ==(RunReplayPreparation? left, RunReplayPreparation? right)Parameters
Section titled “Parameters”left RunReplayPreparation?
right RunReplayPreparation?
Returns
Section titled “Returns”operator !=(RunReplayPreparation?, RunReplayPreparation?)
Section titled “ operator !=(RunReplayPreparation?, RunReplayPreparation?)”public static bool operator !=(RunReplayPreparation? left, RunReplayPreparation? right)Parameters
Section titled “Parameters”left RunReplayPreparation?
right RunReplayPreparation?