Struct ToolOutputEvent
Event raised when a tool produces output.
Implements
Inherited Members
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
public readonly struct ToolOutputEvent : IEvent
Properties
| Edit this page View SourceResponseId
Gets the response ID that this tool call belongs to. Used for batch submission of tool outputs.
Declaration
public string ResponseId { get; }
Property Value
| Type | Description |
|---|---|
| string |
ToolName
Gets the name of the tool that produced the output.
Declaration
public string ToolName { get; }
Property Value
| Type | Description |
|---|---|
| string |
ToolOutput
Gets the tool output data.
Declaration
public ToolOutput ToolOutput { get; }
Property Value
| Type | Description |
|---|---|
| ToolOutput |
Type
Gets the type of output event.
Declaration
public ToolOutputEventType Type { get; }
Property Value
| Type | Description |
|---|---|
| ToolOutputEventType |
Methods
| Edit this page View SourceCreateError(string, string)
Creates an error tool output event.
Declaration
public static ToolOutputEvent CreateError(string responseId, string toolName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | responseId | |
| string | toolName | The name of the tool that produced the error. |
Returns
| Type | Description |
|---|---|
| ToolOutputEvent | A new ToolOutputEvent instance. |
CreateResult(string, string, ToolOutput)
Creates a result tool output event.
Declaration
public static ToolOutputEvent CreateResult(string responseId, string toolName, ToolOutput toolOutput)
Parameters
| Type | Name | Description |
|---|---|---|
| string | responseId | |
| string | toolName | The name of the tool. |
| ToolOutput | toolOutput | The tool output data. |
Returns
| Type | Description |
|---|---|
| ToolOutputEvent | A new ToolOutputEvent instance. |
CreateSubmitting(string, string, ToolOutput)
Creates a submitting tool output event.
Declaration
public static ToolOutputEvent CreateSubmitting(string responseId, string toolName, ToolOutput toolOutput)
Parameters
| Type | Name | Description |
|---|---|---|
| string | responseId | |
| string | toolName | The name of the tool. |
| ToolOutput | toolOutput | The tool output data. |
Returns
| Type | Description |
|---|---|
| ToolOutputEvent | A new ToolOutputEvent instance. |