agent-web-tools - v0.3.0
Sitio
GitHub
npm
Preparing search index...
DataProvider
Interface DataProvider
interface
DataProvider
{
name
:
string
;
search
?
(
query
:
string
,
options
?:
DataProviderSearchOptions
,
)
:
Promise
<
ToolResult
<
DataProviderSearchResult
[]
>
>
;
getByUrl
?
(
url
:
string
)
:
Promise
<
ToolResult
<
DataProviderPageData
>
>
;
getCustomHandlers
?
()
:
DataProviderCustomHandler
[]
;
init
?
()
:
Promise
<
void
>
;
destroy
?
()
:
Promise
<
void
>
;
}
Index
Properties
name
Methods
search?
get
By
Url?
get
Custom
Handlers?
init?
destroy?
Properties
Readonly
name
name
:
string
Methods
Optional
search
search
?
(
query
:
string
,
options
?:
DataProviderSearchOptions
,
)
:
Promise
<
ToolResult
<
DataProviderSearchResult
[]
>
>
Parameters
query
:
string
Optional
options
:
DataProviderSearchOptions
Returns
Promise
<
ToolResult
<
DataProviderSearchResult
[]
>
>
Optional
get
By
Url
getByUrl
?
(
url
:
string
)
:
Promise
<
ToolResult
<
DataProviderPageData
>
>
Parameters
url
:
string
Returns
Promise
<
ToolResult
<
DataProviderPageData
>
>
Optional
get
Custom
Handlers
getCustomHandlers
?
()
:
DataProviderCustomHandler
[]
Returns
DataProviderCustomHandler
[]
Optional
init
init
?
()
:
Promise
<
void
>
Returns
Promise
<
void
>
Optional
destroy
destroy
?
()
:
Promise
<
void
>
Returns
Promise
<
void
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
name
Methods
search
get
By
Url
get
Custom
Handlers
init
destroy
Sitio
GitHub
npm
agent-web-tools - v0.3.0
Loading...