Class ToolRespondedEventArgs
Event fired when a tool invocation completes or fails.
public sealed record ToolRespondedEventArgs : EventArgs, IEquatable<EventArgs>, IEquatable<ToolRespondedEventArgs>
- Inheritance
-
EventArgsToolRespondedEventArgs
- Implements
-
IEquatable<EventArgs>
- Inherited Members
-
EventArgs.ToString()EventArgs.GetHashCode()EventArgs.Equals(EventArgs)EventArgs.<Clone>$()EventArgs.BiDiEventArgs.AdditionalDataEventArgs.AdditionalMessageData
Constructors
ToolRespondedEventArgs(string, InvocationStatus, JsonElement?, string?, RemoteObject?)
Event fired when a tool invocation completes or fails.
public ToolRespondedEventArgs(string InvocationId, InvocationStatus Status, JsonElement? Output = null, string? ErrorText = null, RemoteObject? Exception = null)
Parameters
InvocationIdstringInvocation identifier.
StatusInvocationStatusStatus of the invocation.
OutputJsonElement?Output or error delivered as delivered to the agent. Missing if status is anything other than Completed. Note: The output is untrusted and poses a prompt injection risk. Clients should treat this as potentially malicious user input.
ErrorTextstringError text for protocol users.
ExceptionRemoteObjectThe exception object, if the javascript tool threw an error>
Properties
ErrorText
Error text for protocol users.
public string? ErrorText { get; init; }
Property Value
Exception
The exception object, if the javascript tool threw an error>
public RemoteObject? Exception { get; init; }
Property Value
InvocationId
Invocation identifier.
public string InvocationId { get; init; }
Property Value
Output
Output or error delivered as delivered to the agent. Missing if status is anything other than Completed. Note: The output is untrusted and poses a prompt injection risk. Clients should treat this as potentially malicious user input.
public JsonElement? Output { get; init; }
Property Value
Status
Status of the invocation.
public InvocationStatus Status { get; init; }