.NET API
RunEventDraft
Tracon.Core.dllRepresents the information an event carries before its sequence number and timestamp are assigned.
public readonly struct RunEventDraft : IEquatable<RunEventDraft>Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Section titled “Constructors”RunEventDraft(RunEventType)
Section titled “ RunEventDraft(RunEventType)”Represents the information an event carries before its sequence number and timestamp are assigned.
public RunEventDraft(RunEventType Type)Parameters
Section titled “Parameters”Type RunEventType
The event type.
Properties
Section titled “Properties”CustomType
Section titled “ CustomType”Gets the namespaced type that qualifies a RunEventType.Custom event.
public string? CustomType { get; init; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”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.
Payload
Section titled “ Payload”Gets the free-form JSON payload.
public string? Payload { get; init; }Property Value
Section titled “Property Value”Gets the text content.
public string? Text { get; init; }Property Value
Section titled “Property Value”ToolCallId
Section titled “ ToolCallId”Gets the tool call identity.
public string? ToolCallId { get; init; }Property Value
Section titled “Property Value”ToolName
Section titled “ ToolName”Gets the tool name.
public string? ToolName { get; init; }Property Value
Section titled “Property Value”The event type.
public RunEventType Type { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Deconstruct(out RunEventType)
Section titled “ Deconstruct(out RunEventType)”public void Deconstruct(out RunEventType Type)Parameters
Section titled “Parameters”Type RunEventType
Equals(object)
Section titled “ Equals(object)”public override bool Equals(object obj)Parameters
Section titled “Parameters”obj object
Returns
Section titled “Returns”Equals(RunEventDraft)
Section titled “ Equals(RunEventDraft)”public bool Equals(RunEventDraft other)Parameters
Section titled “Parameters”other RunEventDraft
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 ==(RunEventDraft, RunEventDraft)
Section titled “ operator ==(RunEventDraft, RunEventDraft)”public static bool operator ==(RunEventDraft left, RunEventDraft right)Parameters
Section titled “Parameters”left RunEventDraft
right RunEventDraft
Returns
Section titled “Returns”operator !=(RunEventDraft, RunEventDraft)
Section titled “ operator !=(RunEventDraft, RunEventDraft)”public static bool operator !=(RunEventDraft left, RunEventDraft right)Parameters
Section titled “Parameters”left RunEventDraft
right RunEventDraft