Table of Contents

Class ChatContext.Types.ChatItem

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

Constructors

ChatItem()

public ChatItem()

ChatItem(ChatItem)

public ChatItem(ChatContext.Types.ChatItem other)

Parameters

other ChatContext.Types.ChatItem

Fields

AgentConfigUpdateFieldNumber

Field number for the "agent_config_update" field.

public const int AgentConfigUpdateFieldNumber = 5

Field Value

int

AgentHandoffFieldNumber

Field number for the "agent_handoff" field.

public const int AgentHandoffFieldNumber = 4

Field Value

int

FunctionCallFieldNumber

Field number for the "function_call" field.

public const int FunctionCallFieldNumber = 2

Field Value

int

FunctionCallOutputFieldNumber

Field number for the "function_call_output" field.

public const int FunctionCallOutputFieldNumber = 3

Field Value

int

MessageFieldNumber

Field number for the "message" field.

public const int MessageFieldNumber = 1

Field Value

int

Properties

AgentConfigUpdate

public AgentConfigUpdate AgentConfigUpdate { get; set; }

Property Value

AgentConfigUpdate

AgentHandoff

public AgentHandoff AgentHandoff { get; set; }

Property Value

AgentHandoff

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

FunctionCall

public FunctionCall FunctionCall { get; set; }

Property Value

FunctionCall

FunctionCallOutput

public FunctionCallOutput FunctionCallOutput { get; set; }

Property Value

FunctionCallOutput

ItemCase

public ChatContext.Types.ChatItem.ItemOneofCase ItemCase { get; }

Property Value

ChatContext.Types.ChatItem.ItemOneofCase

Message

public ChatMessage Message { get; set; }

Property Value

ChatMessage

Parser

public static MessageParser<ChatContext.Types.ChatItem> Parser { get; }

Property Value

MessageParser<ChatContext.Types.ChatItem>

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.

ClearItem()

public void ClearItem()

Clone()

Creates a deep clone of this object.

public ChatContext.Types.ChatItem Clone()

Returns

ChatContext.Types.ChatItem

A deep clone of this object.

Equals(ChatItem)

public bool Equals(ChatContext.Types.ChatItem other)

Parameters

other ChatContext.Types.ChatItem

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(ChatItem)

Merges the given message into this one.

public void MergeFrom(ChatContext.Types.ChatItem other)

Parameters

other ChatContext.Types.ChatItem

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.