Type Alias ToolAction<I, O> ToolAction : Action < I , O > & { __action : { metadata : { type : "tool" } } ; reply ( interrupt : { custom ?: Record < string , unknown > ; data ?: unknown ; media ?: undefined ; metadata ?: Record < string , unknown > ; text ?: undefined ; toolRequest : { input ?: unknown ; name : string ; ref ?: string } ; toolResponse ?: undefined ; } , replyData : TypeOf < O > , options ?: { metadata ?: Record < string , any > } , ) : { custom ?: Record < string , unknown > ; data ?: unknown ; media ?: undefined ; metadata ?: Record < string , unknown > ; text ?: undefined ; toolRequest ?: undefined ; toolResponse : { name : string ; output ?: unknown ; ref ?: string } ; } ; } Type declaration __action : { metadata : { type : "tool" } } reply : functionreply ( interrupt : { custom ?: Record < string , unknown > ; data ?: unknown ; media ?: undefined ; metadata ?: Record < string , unknown > ; text ?: undefined ; toolRequest : { input ?: unknown ; name : string ; ref ?: string } ; toolResponse ?: undefined ; } , replyData : TypeOf < O > , options ?: { metadata ?: Record < string , any > } , ) : { custom ?: Record < string , unknown > ; data ?: unknown ; media ?: undefined ; metadata ?: Record < string , unknown > ; text ?: undefined ; toolRequest ?: undefined ; toolResponse : { name : string ; output ?: unknown ; ref ?: string } ; } Parameters interrupt : { custom ?: Record < string , unknown > ; data ?: unknown ; media ?: undefined ; metadata ?: Record < string , unknown > ; text ?: undefined ; toolRequest : { input ?: unknown ; name : string ; ref ?: string } ; toolResponse ?: undefined ; } replyData : TypeOf < O > Optional
options : { metadata ?: Record < string , any > } Returns { custom ?: Record < string , unknown > ; data ?: unknown ; media ?: undefined ; metadata ?: Record < string , unknown > ; text ?: undefined ; toolRequest ?: undefined ; toolResponse : { name : string ; output ?: unknown ; ref ?: string } ; } Defined in ai/lib/generate-DsIeAr2A.d.ts:169 Defined in ai/lib/generate-DsIeAr2A.d.ts:158
An action with a
tool
type.