Class ToolRespondedEventArgs
Event fired when a tool invocation completes or fails.
public sealed class ToolRespondedEventArgs : EventArgs
- Inheritance
-
ToolRespondedEventArgs
- Inherited Members
Properties
ErrorText
Error text for protocol users.
[JsonPropertyName("errorText")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? ErrorText { get; set; }
Property Value
Exception
The exception object, if the javascript tool threw an error>
[JsonPropertyName("exception")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public RemoteObject? Exception { get; set; }
Property Value
InvocationId
Invocation identifier.
[JsonPropertyName("invocationId")]
public string InvocationId { get; set; }
Property Value
Output
Output or error delivered as delivered to the agent. Missing if status is anything other than Success.
[JsonPropertyName("output")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public object? Output { get; set; }
Property Value
Status
Status of the invocation.
[JsonPropertyName("status")]
public InvocationStatus Status { get; set; }