Interface IAgentDependency
Interface for components that depend on an agent and require initialization and cleanup.
Namespace: Glitch9.AIDevKit.Agents
Assembly: Glitch9.AIDevKit.dll
Syntax
public interface IAgentDependency
Methods
| Edit this page View SourceCancelAsync()
Cancels any ongoing operations and cleans up resources.
Declaration
UniTask CancelAsync()
Returns
| Type | Description |
|---|---|
| UniTask |
InitWithAgentAsync(Agent, CancellationToken)
Initializes this dependency with the given agent.
Declaration
UniTask InitWithAgentAsync(Agent agent, CancellationToken ct = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Agent | agent | |
| CancellationToken | ct |
Returns
| Type | Description |
|---|---|
| UniTask |