agent-web-tools - v0.3.0
Sitio
GitHub
npm
Preparing search index...
ConfirmationManager
Class ConfirmationManager
Index
Constructors
constructor
Accessors
last
Was
Timeout
Methods
request
Confirmation
set
Handler
set
Timeout
Constructors
constructor
new
ConfirmationManager
(
handler
?:
ConfirmationHandler
,
timeout
?:
number
,
)
:
ConfirmationManager
Parameters
Optional
handler
:
ConfirmationHandler
timeout
:
number
= 30_000
Returns
ConfirmationManager
Accessors
last
Was
Timeout
get
lastWasTimeout
()
:
boolean
Returns
boolean
Methods
request
Confirmation
requestConfirmation
(
tool
:
string
,
params
:
Record
<
string
,
unknown
>
,
selector
?:
string
,
)
:
Promise
<
boolean
>
Parameters
tool
:
string
params
:
Record
<
string
,
unknown
>
Optional
selector
:
string
Returns
Promise
<
boolean
>
set
Handler
setHandler
(
handler
:
ConfirmationHandler
|
undefined
)
:
void
Parameters
handler
:
ConfirmationHandler
|
undefined
Returns
void
set
Timeout
setTimeout
(
ms
:
number
)
:
void
Parameters
ms
:
number
Returns
void
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Accessors
last
Was
Timeout
Methods
request
Confirmation
set
Handler
set
Timeout
Sitio
GitHub
npm
agent-web-tools - v0.3.0
Loading...