Skip to content
Tracon

RunEventDraft

Namespace Tracon · Assembly Tracon.Core.dll

Represents the information an event carries before its sequence number and timestamp are assigned.

public readonly struct RunEventDraft : IEquatable<RunEventDraft>

IEquatable<RunEventDraft>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Represents the information an event carries before its sequence number and timestamp are assigned.

public RunEventDraft(RunEventType Type)

Type RunEventType

The event type.

Gets the namespaced type that qualifies a RunEventType.Custom event.

public string? CustomType { get; init; }

string?

Required when RunEventDraft.Type is RunEventType.Custom; must be null otherwise. 1-128 characters: lowercase ASCII letters, digits, ., _, or -, starting with a letter or digit — the same shape as a job handler key. The "tracon." prefix is reserved; pick your own namespace (e.g. "contoso.preview-ready"). RunEventWriter.AppendAsync throws ArgumentException for a draft that violates either rule.

Gets the free-form JSON payload.

public string? Payload { get; init; }

string?

Gets the text content.

public string? Text { get; init; }

string?

Gets the tool call identity.

public string? ToolCallId { get; init; }

string?

Gets the tool name.

public string? ToolName { get; init; }

string?

The event type.

public RunEventType Type { get; init; }

RunEventType

public void Deconstruct(out RunEventType Type)

Type RunEventType

public override bool Equals(object obj)

obj object

bool

public bool Equals(RunEventDraft other)

other RunEventDraft

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(RunEventDraft, RunEventDraft)

Section titled “ operator ==(RunEventDraft, RunEventDraft)”
public static bool operator ==(RunEventDraft left, RunEventDraft right)

left RunEventDraft

right RunEventDraft

bool

operator !=(RunEventDraft, RunEventDraft)

Section titled “ operator !=(RunEventDraft, RunEventDraft)”
public static bool operator !=(RunEventDraft left, RunEventDraft right)

left RunEventDraft

right RunEventDraft

bool