Skip to content

RunEventDraft

Namespace AgentPrism · Assembly AgentPrism.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 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