Table of Contents

Class AgentSessionEvent

Namespace
Livekit.Agent
Assembly
LiveKit.AspNetCore.ServerSdk.Abstractions.dll
public sealed class AgentSessionEvent : IMessage<AgentSessionEvent>, IEquatable<AgentSessionEvent>, IDeepCloneable<AgentSessionEvent>, IBufferMessage, IMessage
Inheritance
AgentSessionEvent
Implements
IDeepCloneable<AgentSessionEvent>
IBufferMessage
IMessage
Inherited Members

Constructors

AgentSessionEvent()

public AgentSessionEvent()

AgentSessionEvent(AgentSessionEvent)

public AgentSessionEvent(AgentSessionEvent other)

Parameters

other AgentSessionEvent

Fields

AgentStateChangedFieldNumber

Field number for the "agent_state_changed" field.

public const int AgentStateChangedFieldNumber = 10

Field Value

int

AmdPredictionFieldNumber

Field number for the "amd_prediction" field.

public const int AmdPredictionFieldNumber = 18

Field Value

int

ConversationItemAddedFieldNumber

Field number for the "conversation_item_added" field.

public const int ConversationItemAddedFieldNumber = 12

Field Value

int

CreatedAtFieldNumber

Field number for the "created_at" field.

public const int CreatedAtFieldNumber = 1

Field Value

int

DebugMessageFieldNumber

Field number for the "debug_message" field.

public const int DebugMessageFieldNumber = 21

Field Value

int

EotPredictionFieldNumber

Field number for the "eot_prediction" field.

public const int EotPredictionFieldNumber = 19

Field Value

int

ErrorFieldNumber

Field number for the "error" field.

public const int ErrorFieldNumber = 15

Field Value

int

FunctionToolsExecutedFieldNumber

Field number for the "function_tools_executed" field.

public const int FunctionToolsExecutedFieldNumber = 14

Field Value

int

FunctionToolsStartedFieldNumber

Field number for the "function_tools_started" field.

public const int FunctionToolsStartedFieldNumber = 20

Field Value

int

OverlappingSpeechFieldNumber

Field number for the "overlapping_speech" field.

public const int OverlappingSpeechFieldNumber = 16

Field Value

int

SessionUsageUpdatedFieldNumber

Field number for the "session_usage_updated" field.

public const int SessionUsageUpdatedFieldNumber = 17

Field Value

int

UserInputTranscribedFieldNumber

Field number for the "user_input_transcribed" field.

public const int UserInputTranscribedFieldNumber = 13

Field Value

int

UserStateChangedFieldNumber

Field number for the "user_state_changed" field.

public const int UserStateChangedFieldNumber = 11

Field Value

int

Properties

AgentStateChanged

public AgentSessionEvent.Types.AgentStateChanged AgentStateChanged { get; set; }

Property Value

AgentSessionEvent.Types.AgentStateChanged

AmdPrediction

public AgentSessionEvent.Types.AmdPrediction AmdPrediction { get; set; }

Property Value

AgentSessionEvent.Types.AmdPrediction

ConversationItemAdded

public AgentSessionEvent.Types.ConversationItemAdded ConversationItemAdded { get; set; }

Property Value

AgentSessionEvent.Types.ConversationItemAdded

CreatedAt

public Timestamp CreatedAt { get; set; }

Property Value

Timestamp

DebugMessage

public DebugMessage DebugMessage { get; set; }

Property Value

DebugMessage

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

EotPrediction

public AgentSessionEvent.Types.EotPrediction EotPrediction { get; set; }

Property Value

AgentSessionEvent.Types.EotPrediction

Error

public AgentSessionEvent.Types.Error Error { get; set; }

Property Value

AgentSessionEvent.Types.Error

EventCase

public AgentSessionEvent.EventOneofCase EventCase { get; }

Property Value

AgentSessionEvent.EventOneofCase

FunctionToolsExecuted

public AgentSessionEvent.Types.FunctionToolsExecuted FunctionToolsExecuted { get; set; }

Property Value

AgentSessionEvent.Types.FunctionToolsExecuted

FunctionToolsStarted

public AgentSessionEvent.Types.FunctionToolsStarted FunctionToolsStarted { get; set; }

Property Value

AgentSessionEvent.Types.FunctionToolsStarted

OverlappingSpeech

public AgentSessionEvent.Types.OverlappingSpeech OverlappingSpeech { get; set; }

Property Value

AgentSessionEvent.Types.OverlappingSpeech

Parser

public static MessageParser<AgentSessionEvent> Parser { get; }

Property Value

MessageParser<AgentSessionEvent>

SessionUsageUpdated

public AgentSessionEvent.Types.SessionUsageUpdated SessionUsageUpdated { get; set; }

Property Value

AgentSessionEvent.Types.SessionUsageUpdated

UserInputTranscribed

public AgentSessionEvent.Types.UserInputTranscribed UserInputTranscribed { get; set; }

Property Value

AgentSessionEvent.Types.UserInputTranscribed

UserStateChanged

public AgentSessionEvent.Types.UserStateChanged UserStateChanged { get; set; }

Property Value

AgentSessionEvent.Types.UserStateChanged

Methods

CalculateSize()

Calculates the size of this message in Protocol Buffer wire format, in bytes.

public int CalculateSize()

Returns

int

The number of bytes required to write this message to a coded output stream.

ClearEvent()

public void ClearEvent()

Clone()

Creates a deep clone of this object.

public AgentSessionEvent Clone()

Returns

AgentSessionEvent

A deep clone of this object.

Equals(AgentSessionEvent)

public bool Equals(AgentSessionEvent other)

Parameters

other AgentSessionEvent

Returns

bool

Equals(object)

public override bool Equals(object other)

Parameters

other object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

MergeFrom(CodedInputStream)

Merges the data from the specified coded input stream with the current message.

public void MergeFrom(CodedInputStream input)

Parameters

input CodedInputStream

Remarks

See the user guide for precise merge semantics.

MergeFrom(AgentSessionEvent)

Merges the given message into this one.

public void MergeFrom(AgentSessionEvent other)

Parameters

other AgentSessionEvent

Remarks

See the user guide for precise merge semantics.

ToString()

public override string ToString()

Returns

string

WriteTo(CodedOutputStream)

Writes the data to the given coded output stream.

public void WriteTo(CodedOutputStream output)

Parameters

output CodedOutputStream

Coded output stream to write the data to. Must not be null.