Class
CopilotSessionEvent
Represents an event emitted by a Copilot session.
Inheritance
- Object
- CopilotSessionEvent
Constructors
public CopilotSessionEvent(String type, JsonObject data, JsonObject raw, JsonObject additional) #Initializes a new Copilot session event.
Parameters
- type System.String
- data IntelligenceX.Json.JsonObject
- raw IntelligenceX.Json.JsonObject
- additional IntelligenceX.Json.JsonObject
Methods
public static CopilotSessionEvent FromJson(JsonObject obj) #Returns:
CopilotSessionEventParses a session event from JSON.
Parameters
- obj IntelligenceX.Json.JsonObject
- Source JSON object.
Returns
The parsed event.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public String Type { get; } #Gets the event type.
public JsonObject Data { get; } #Gets the event data payload.
public JsonObject Raw { get; } #Gets the raw JSON object.
public JsonObject Additional { get; } #Gets unrecognized fields from the payload.
public String Content { get; set; } #Gets the full content for message events.
public String DeltaContent { get; set; } #Gets the delta content for streaming events.
public String MessageId { get; set; } #Gets the message id when present.
public String ErrorMessage { get; set; } #Gets the error message when present.
public String ErrorStack { get; set; } #Gets the error stack when present.
public Boolean IsIdle { get; } #Gets a value indicating whether the session is idle.