.NET API
RunReplayRequest
Tracon.Abstractions.dllA replay request.
public sealed record RunReplayRequest : IEquatable<RunReplayRequest>- Inheritance
- object ← RunReplayRequest
- Implements
- IEquatable<RunReplayRequest>
- Inherited Members
- object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”Replay keeps the input, changes the conditions. The input messages and tenant cannot be changed: a different input is a new run, and crossing the tenant boundary is a security violation.
Constructors
Section titled “Constructors”RunReplayRequest()
Section titled “ RunReplayRequest()”public RunReplayRequest()Properties
Section titled “Properties”AgentVersion
Section titled “ AgentVersion”The agent definition version to use. The currently active version if not given.
public int? AgentVersion { get; init; }Property Value
Section titled “Property Value”int?
Remarks
Section titled “Remarks”Code-sourced agents have no version history; the request is rejected if a value is given.
ModelId
Section titled “ ModelId”The model name to override with. The definition’s own model is used if not given.
public string? ModelId { get; init; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”Only the model name is overridden; the provider and credentials come from the definition. Changing the provider is a new definition.
Parameters
Section titled “ Parameters”Parameter values laid over the ones the source run was bound with. Left empty, the replay runs with exactly the source run’s values.
public IReadOnlyDictionary<string, string>? Parameters { get; init; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>?
Remarks
Section titled “Remarks”A replay repeats a run, so it uses the source run’s recorded values; this field changes the ones it names and keeps the rest. The result is checked against the schema of the version the replay runs (RunReplayRequest.AgentVersion): a name that version does not declare is refused, not dropped, so a typo cannot go unnoticed.
A run that recorded no values (input recording was off, or it predates parameter recording) cannot be replayed when the agent declares parameters: running it on the defaults would change the instructions.
ToolMode
Section titled “ ToolMode”The tool behavior. Defaults to ReplayToolMode.ReplayTools.
public ReplayToolMode ToolMode { 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(RunReplayRequest?)
Section titled “ Equals(RunReplayRequest?)”public bool Equals(RunReplayRequest? other)Parameters
Section titled “Parameters”other RunReplayRequest?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(RunReplayRequest?, RunReplayRequest?)
Section titled “ operator ==(RunReplayRequest?, RunReplayRequest?)”public static bool operator ==(RunReplayRequest? left, RunReplayRequest? right)Parameters
Section titled “Parameters”left RunReplayRequest?
right RunReplayRequest?
Returns
Section titled “Returns”operator !=(RunReplayRequest?, RunReplayRequest?)
Section titled “ operator !=(RunReplayRequest?, RunReplayRequest?)”public static bool operator !=(RunReplayRequest? left, RunReplayRequest? right)Parameters
Section titled “Parameters”left RunReplayRequest?
right RunReplayRequest?