Class ToolStatusEvent
Event raised when a tool's status changes.
Implements
Inherited Members
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
public sealed class ToolStatusEvent : IEvent
Constructors
| Edit this page View SourceToolStatusEvent(ToolType, GenerationStatus?)
Initializes a new instance of the ToolStatusEvent class with a generation status.
Declaration
public ToolStatusEvent(ToolType type, GenerationStatus? generationStatus)
Parameters
| Type | Name | Description |
|---|---|---|
| ToolType | type | The type of tool. |
| GenerationStatus? | generationStatus | The generation-specific status. |
ToolStatusEvent(ToolType, SearchStatus?)
Initializes a new instance of the ToolStatusEvent class with a search status.
Declaration
public ToolStatusEvent(ToolType type, SearchStatus? searchStatus)
Parameters
| Type | Name | Description |
|---|---|---|
| ToolType | type | The type of tool. |
| SearchStatus? | searchStatus | The search-specific status. |
ToolStatusEvent(ToolType, ToolStatus?)
Initializes a new instance of the ToolStatusEvent class with a general tool status.
Declaration
public ToolStatusEvent(ToolType type, ToolStatus? toolStatus)
Parameters
| Type | Name | Description |
|---|---|---|
| ToolType | type | The type of tool. |
| ToolStatus? | toolStatus | The general tool status. |
Properties
| Edit this page View SourceGenerationStatus
Gets the generation-specific status, if applicable.
Declaration
public GenerationStatus? GenerationStatus { get; }
Property Value
| Type | Description |
|---|---|
| GenerationStatus? |
SearchStatus
Gets the search-specific status, if applicable.
Declaration
public SearchStatus? SearchStatus { get; }
Property Value
| Type | Description |
|---|---|
| SearchStatus? |
ToolStatus
Gets the general tool status, if applicable.
Declaration
public ToolStatus? ToolStatus { get; }
Property Value
| Type | Description |
|---|---|
| ToolStatus? |
Type
Gets the type of tool.
Declaration
public ToolType Type { get; }
Property Value
| Type | Description |
|---|---|
| ToolType |
Methods
| Edit this page View SourceCreate<T>(ToolType, T)
Creates a new ToolStatusEvent based on the type of status provided.
Declaration
public static ToolStatusEvent Create<T>(ToolType type, T status)
Parameters
| Type | Name | Description |
|---|---|---|
| ToolType | type | The type of tool. |
| T | status | The status value. |
Returns
| Type | Description |
|---|---|
| ToolStatusEvent | A new ToolStatusEvent instance. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of status (ToolStatus, SearchStatus, or GenerationStatus). |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown when the status type is not supported. |
IsFinal()
Determines whether the current status is a final state.
Declaration
public bool IsFinal()
Returns
| Type | Description |
|---|---|
| bool |
|
IsInProgress()
Declaration
public bool IsInProgress()
Returns
| Type | Description |
|---|---|
| bool |
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |