ToolApprovalDialogProps
Agent Runtimes / chat/tools/ToolApprovalDialog / ToolApprovalDialogProps
Interface: ToolApprovalDialogProps
Defined in: chat/tools/ToolApprovalDialog.tsx:28
ToolApprovalDialog props
Properties
args
args:
Record<string,unknown>
Defined in: chat/tools/ToolApprovalDialog.tsx:39
Tool arguments
isOpen
isOpen:
boolean
Defined in: chat/tools/ToolApprovalDialog.tsx:30
Whether dialog is open
onApprove
onApprove: (
rememberChoice?) =>void
Defined in: chat/tools/ToolApprovalDialog.tsx:42
Callback when approved
Parameters
rememberChoice?
boolean
Returns
void
onClose
onClose: () =>
void
Defined in: chat/tools/ToolApprovalDialog.tsx:48
Callback when dialog closed
Returns
void
onDeny
onDeny: (
rememberChoice?) =>void
Defined in: chat/tools/ToolApprovalDialog.tsx:45
Callback when denied
Parameters
rememberChoice?
boolean
Returns
void
showRememberChoice?
optionalshowRememberChoice?:boolean
Defined in: chat/tools/ToolApprovalDialog.tsx:51
Show "remember my choice" option
toolDescription?
optionaltoolDescription?:string
Defined in: chat/tools/ToolApprovalDialog.tsx:36
Tool description
toolName
toolName:
string
Defined in: chat/tools/ToolApprovalDialog.tsx:33
Tool name