Class AgentSessionEvent.Types.ToolExecutionUpdated.Types.Ended
- Namespace
- Livekit.Agent
- Assembly
- LiveKit.AspNetCore.ServerSdk.Abstractions.dll
the call's single terminal entry
public sealed class AgentSessionEvent.Types.ToolExecutionUpdated.Types.Ended : IMessage<AgentSessionEvent.Types.ToolExecutionUpdated.Types.Ended>, IEquatable<AgentSessionEvent.Types.ToolExecutionUpdated.Types.Ended>, IDeepCloneable<AgentSessionEvent.Types.ToolExecutionUpdated.Types.Ended>, IBufferMessage, IMessage
- Inheritance
-
AgentSessionEvent.Types.ToolExecutionUpdated.Types.Ended
- Implements
-
IBufferMessageIMessage
- Inherited Members
Constructors
Ended()
public Ended()
Ended(Ended)
public Ended(AgentSessionEvent.Types.ToolExecutionUpdated.Types.Ended other)
Parameters
Fields
CallIdFieldNumber
Field number for the "call_id" field.
public const int CallIdFieldNumber = 2
Field Value
IdFieldNumber
Field number for the "id" field.
public const int IdFieldNumber = 1
Field Value
MessageFieldNumber
Field number for the "message" field.
public const int MessageFieldNumber = 3
Field Value
StatusFieldNumber
Field number for the "status" field.
public const int StatusFieldNumber = 4
Field Value
Properties
CallId
public string CallId { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
HasMessage
Gets whether the "message" field is set
public bool HasMessage { get; }
Property Value
Id
synthetic id: call_id (inline) or call_id_final (deferred)
public string Id { get; set; }
Property Value
Message
result text or error message; unset for cancelled / empty returns
public string Message { get; set; }
Property Value
Parser
public static MessageParser<AgentSessionEvent.Types.ToolExecutionUpdated.Types.Ended> Parser { get; }
Property Value
- MessageParser<AgentSessionEvent.Types.ToolExecutionUpdated.Types.Ended>
Status
TC_DONE, TC_ERROR, or TC_CANCELLED
public ToolCallStatus Status { get; set; }
Property Value
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.
ClearMessage()
Clears the value of the "message" field
public void ClearMessage()
Clone()
Creates a deep clone of this object.
public AgentSessionEvent.Types.ToolExecutionUpdated.Types.Ended Clone()
Returns
- AgentSessionEvent.Types.ToolExecutionUpdated.Types.Ended
A deep clone of this object.
Equals(Ended)
public bool Equals(AgentSessionEvent.Types.ToolExecutionUpdated.Types.Ended other)
Parameters
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(Ended)
Merges the given message into this one.
public void MergeFrom(AgentSessionEvent.Types.ToolExecutionUpdated.Types.Ended other)
Parameters
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.