Class ChatContext.Types.ChatItem
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
-
IBufferMessageIMessage
- Inherited Members
Constructors
ChatItem()
public ChatItem()
ChatItem(ChatItem)
public ChatItem(ChatContext.Types.ChatItem other)
Parameters
otherChatContext.Types.ChatItem
Fields
AgentConfigUpdateFieldNumber
Field number for the "agent_config_update" field.
public const int AgentConfigUpdateFieldNumber = 5
Field Value
AgentHandoffFieldNumber
Field number for the "agent_handoff" field.
public const int AgentHandoffFieldNumber = 4
Field Value
FunctionCallFieldNumber
Field number for the "function_call" field.
public const int FunctionCallFieldNumber = 2
Field Value
FunctionCallOutputFieldNumber
Field number for the "function_call_output" field.
public const int FunctionCallOutputFieldNumber = 3
Field Value
MessageFieldNumber
Field number for the "message" field.
public const int MessageFieldNumber = 1
Field Value
Properties
AgentConfigUpdate
public AgentConfigUpdate AgentConfigUpdate { get; set; }
Property Value
AgentHandoff
public AgentHandoff AgentHandoff { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
FunctionCall
public FunctionCall FunctionCall { get; set; }
Property Value
FunctionCallOutput
public FunctionCallOutput FunctionCallOutput { get; set; }
Property Value
ItemCase
public ChatContext.Types.ChatItem.ItemOneofCase ItemCase { get; }
Property Value
Message
public ChatMessage Message { get; set; }
Property Value
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
otherChatContext.Types.ChatItem
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
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
otherChatContext.Types.ChatItem
Remarks
See the user guide for precise merge semantics.
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.