Struct ToolCallEvent
Event raised when a tool call is requested by the model. Wraps the ToolCall domain model for event propagation.
Implements
Inherited Members
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
public readonly struct ToolCallEvent : IEvent
Constructors
| Edit this page View SourceToolCallEvent(string, ToolCall)
Initializes a new instance of the ToolCallEvent struct .
Declaration
public ToolCallEvent(string responseId, ToolCall toolCall)
Parameters
| Type | Name | Description |
|---|---|---|
| string | responseId | Optional response ID for batch submission tracking. |
| ToolCall | toolCall | The tool call that was requested. |
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 |
ToolCall
Gets the tool call that was requested.
Declaration
public ToolCall ToolCall { get; }
Property Value
| Type | Description |
|---|---|
| ToolCall |
Type
Gets the type of tool being called.
Declaration
public ToolType Type { get; }
Property Value
| Type | Description |
|---|---|
| ToolType |
Methods
| Edit this page View SourceToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |