AgentHooks
이 콘텐츠는 아직 번역되지 않았습니다.
Event emitter that every Agent instance inherits from and that emits events for the lifecycle of the agent.
Extends
Section titled “Extends”EventEmitterDelegate<AgentHookEvents<TContext,TOutput>>
Extended by
Section titled “Extended by”Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
|
|
|
|
|
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AgentHooks<TContext, TOutput>(): AgentHooks<TContext, TOutput>;Returns
Section titled “Returns”AgentHooks<TContext, TOutput>
Inherited from
Section titled “Inherited from”EventEmitterDelegate<AgentHookEvents<TContext, TOutput>>.constructorMethods
Section titled “Methods”emit()
Section titled “emit()”emit<K>(type, ...args): boolean;Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
|
|
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
… |
|
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”EventEmitterDelegate.emitoff<K>(type, listener): EventEmitter<EventTypes>;Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
|
|
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
(… |
Returns
Section titled “Returns”EventEmitter<EventTypes>
Inherited from
Section titled “Inherited from”EventEmitterDelegate.offon<K>(type, listener): EventEmitter<EventTypes>;Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
|
|
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
(… |
Returns
Section titled “Returns”EventEmitter<EventTypes>
Inherited from
Section titled “Inherited from”EventEmitterDelegate.ononce()
Section titled “once()”once<K>(type, listener): EventEmitter<EventTypes>;Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
|
|
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
(… |
Returns
Section titled “Returns”EventEmitter<EventTypes>
Inherited from
Section titled “Inherited from”EventEmitterDelegate.once