Preparing search index...
The search index is not available
@iqai/adk API Documentation
@iqai/adk API Documentation
Plugins
ToolOutputFilterPlugin
Class ToolOutputFilterPlugin
Hierarchy (
view full
)
BasePlugin
ToolOutputFilterPlugin
Index
Constructors
constructor
Properties
name
Methods
on
User
Message
Callback?
before
Run
Callback?
on
Event
Callback?
after
Run
Callback?
before
Agent
Callback?
after
Agent
Callback?
before
Model
Callback?
after
Model
Callback?
on
Model
Error
Callback?
before
Tool
Callback?
on
Tool
Error
Callback?
after
Tool
Callback
close
Constructors
constructor
new
Tool
Output
Filter
Plugin
(
options
)
:
ToolOutputFilterPlugin
Parameters
options
:
ToolOutputFilterPluginOptions
Returns
ToolOutputFilterPlugin
Properties
Readonly
name
name
:
string
Methods
Optional
on
User
Message
Callback
on
User
Message
Callback
(
_params
)
:
Promise
<
Content
>
Parameters
_params
:
{
invocationContext
:
InvocationContext
;
userMessage
:
Content
;
}
invocation
Context
:
InvocationContext
user
Message
:
Content
Returns
Promise
<
Content
>
Optional
before
Run
Callback
before
Run
Callback
(
_params
)
:
Promise
<
Event
>
Parameters
_params
:
{
invocationContext
:
InvocationContext
;
}
invocation
Context
:
InvocationContext
Returns
Promise
<
Event
>
Optional
on
Event
Callback
on
Event
Callback
(
_params
)
:
Promise
<
Event
>
Parameters
_params
:
{
invocationContext
:
InvocationContext
;
event
:
Event
;
}
invocation
Context
:
InvocationContext
event
:
Event
Returns
Promise
<
Event
>
Optional
after
Run
Callback
after
Run
Callback
(
_params
)
:
Promise
<
void
>
Parameters
_params
:
{
invocationContext
:
InvocationContext
;
result
?:
any
;
}
invocation
Context
:
InvocationContext
Optional
result
?:
any
Returns
Promise
<
void
>
Optional
before
Agent
Callback
before
Agent
Callback
(
_params
)
:
Promise
<
Content
>
Parameters
_params
:
{
agent
:
BaseAgent
;
callbackContext
:
CallbackContext
;
}
agent
:
BaseAgent
callback
Context
:
CallbackContext
Returns
Promise
<
Content
>
Optional
after
Agent
Callback
after
Agent
Callback
(
_params
)
:
Promise
<
Content
>
Parameters
_params
:
{
agent
:
BaseAgent
;
callbackContext
:
CallbackContext
;
result
?:
any
;
}
agent
:
BaseAgent
callback
Context
:
CallbackContext
Optional
result
?:
any
Returns
Promise
<
Content
>
Optional
before
Model
Callback
before
Model
Callback
(
_params
)
:
Promise
<
LlmResponse
>
Parameters
_params
:
{
callbackContext
:
CallbackContext
;
llmRequest
:
LlmRequest
;
}
callback
Context
:
CallbackContext
llm
Request
:
LlmRequest
Returns
Promise
<
LlmResponse
>
Optional
after
Model
Callback
after
Model
Callback
(
_params
)
:
Promise
<
LlmResponse
>
Parameters
_params
:
{
callbackContext
:
CallbackContext
;
llmResponse
:
LlmResponse
;
llmRequest
?:
LlmRequest
;
}
callback
Context
:
CallbackContext
llm
Response
:
LlmResponse
Optional
llm
Request
?:
LlmRequest
Returns
Promise
<
LlmResponse
>
Optional
on
Model
Error
Callback
on
Model
Error
Callback
(
_params
)
:
Promise
<
LlmResponse
>
Parameters
_params
:
{
callbackContext
:
CallbackContext
;
llmRequest
:
LlmRequest
;
error
:
unknown
;
}
callback
Context
:
CallbackContext
llm
Request
:
LlmRequest
error
:
unknown
Returns
Promise
<
LlmResponse
>
Optional
before
Tool
Callback
before
Tool
Callback
(
_params
)
:
Promise
<
Record
<
string
,
any
>
>
Parameters
_params
:
{
tool
:
BaseTool
;
toolArgs
:
Record
<
string
,
any
>
;
toolContext
:
ToolContext
;
}
tool
:
BaseTool
tool
Args
:
Record
<
string
,
any
>
tool
Context
:
ToolContext
Returns
Promise
<
Record
<
string
,
any
>
>
Optional
on
Tool
Error
Callback
on
Tool
Error
Callback
(
_params
)
:
Promise
<
Record
<
string
,
any
>
>
Parameters
_params
:
{
tool
:
BaseTool
;
toolArgs
:
Record
<
string
,
any
>
;
toolContext
:
ToolContext
;
error
:
unknown
;
}
tool
:
BaseTool
tool
Args
:
Record
<
string
,
any
>
tool
Context
:
ToolContext
error
:
unknown
Returns
Promise
<
Record
<
string
,
any
>
>
after
Tool
Callback
after
Tool
Callback
(
params
)
:
Promise
<
Record
<
string
,
any
>
>
Parameters
params
:
{
tool
:
BaseTool
;
toolArgs
:
Record
<
string
,
any
>
;
toolContext
:
ToolContext
;
result
:
Record
<
string
,
any
>
;
}
tool
:
BaseTool
tool
Args
:
Record
<
string
,
any
>
tool
Context
:
ToolContext
result
:
Record
<
string
,
any
>
Returns
Promise
<
Record
<
string
,
any
>
>
close
close
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
name
Methods
on
User
Message
Callback
before
Run
Callback
on
Event
Callback
after
Run
Callback
before
Agent
Callback
after
Agent
Callback
before
Model
Callback
after
Model
Callback
on
Model
Error
Callback
before
Tool
Callback
on
Tool
Error
Callback
after
Tool
Callback
close
@iqai/adk API Documentation
Loading...