Preparing search index...
The search index is not available
@iqai/adk API Documentation
@iqai/adk API Documentation
Plugins
ReflectAndRetryToolPlugin
Class ReflectAndRetryToolPlugin
Hierarchy (
view full
)
BasePlugin
ReflectAndRetryToolPlugin
Index
Constructors
constructor
Properties
name
max
Retries
throw
Exception
If
Retry
Exceeded
scope
Methods
on
User
Message
Callback?
before
Run
Callback?
on
Event
Callback?
after
Run
Callback?
close?
before
Agent
Callback?
after
Agent
Callback?
before
Model
Callback?
after
Model
Callback?
on
Model
Error
Callback?
before
Tool
Callback?
after
Tool
Callback
extract
Error
From
Result
on
Tool
Error
Callback
Constructors
constructor
new
Reflect
And
Retry
Tool
Plugin
(
__namedParameters
?
)
:
ReflectAndRetryToolPlugin
Parameters
__namedParameters
:
ReflectAndRetryToolPluginOptions
= {}
Returns
ReflectAndRetryToolPlugin
Properties
Readonly
name
name
:
string
max
Retries
max
Retries
:
number
throw
Exception
If
Retry
Exceeded
throw
Exception
If
Retry
Exceeded
:
boolean
scope
scope
:
TrackingScope
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
close
close
(
)
:
Promise
<
void
>
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
>
>
after
Tool
Callback
after
Tool
Callback
(
params
)
:
Promise
<
Record
<
string
,
any
>
>
Parameters
params
:
{
tool
:
BaseTool
;
toolArgs
:
Record
<
string
,
any
>
;
toolContext
:
ToolContext
;
result
:
any
;
}
tool
:
BaseTool
tool
Args
:
Record
<
string
,
any
>
tool
Context
:
ToolContext
result
:
any
Returns
Promise
<
Record
<
string
,
any
>
>
extract
Error
From
Result
extract
Error
From
Result
(
_params
)
:
Promise
<
any
>
Parameters
_params
:
{
tool
:
BaseTool
;
toolArgs
:
Record
<
string
,
any
>
;
toolContext
:
ToolContext
;
result
:
any
;
}
tool
:
BaseTool
tool
Args
:
Record
<
string
,
any
>
tool
Context
:
ToolContext
result
:
any
Returns
Promise
<
any
>
on
Tool
Error
Callback
on
Tool
Error
Callback
(
params
)
:
Promise
<
Record
<
string
,
any
>
>
Parameters
params
:
{
tool
:
BaseTool
;
toolArgs
:
Record
<
string
,
any
>
;
toolContext
:
ToolContext
;
error
:
any
;
}
tool
:
BaseTool
tool
Args
:
Record
<
string
,
any
>
tool
Context
:
ToolContext
error
:
any
Returns
Promise
<
Record
<
string
,
any
>
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
name
max
Retries
throw
Exception
If
Retry
Exceeded
scope
Methods
on
User
Message
Callback
before
Run
Callback
on
Event
Callback
after
Run
Callback
close
before
Agent
Callback
after
Agent
Callback
before
Model
Callback
after
Model
Callback
on
Model
Error
Callback
before
Tool
Callback
after
Tool
Callback
extract
Error
From
Result
on
Tool
Error
Callback
@iqai/adk API Documentation
Loading...