UseToolsResult
UseToolsResult =
object
Defined in: src/react/useTools.ts:39
Properties
checkForUpdates()
checkForUpdates: (
responseChecksum:string|undefined) =>boolean
Defined in: src/react/useTools.ts:59
Check if tools need to be refreshed based on a response checksum. If the checksum differs from cached, automatically triggers a refresh.
Parameters
| Parameter | Type | Description |
|---|---|---|
|
|
|
Checksum from a chat response |
Returns
boolean
true if refresh was triggered
checksum
checksum:
string|undefined
Defined in: src/react/useTools.ts:43
Current tools checksum from cache
error
error:
Error|null
Defined in: src/react/useTools.ts:47
Error from the last fetch attempt
isLoading
isLoading:
boolean
Defined in: src/react/useTools.ts:45
Whether tools are being fetched
refresh()
refresh: (
force?:boolean) =>Promise<void>
Defined in: src/react/useTools.ts:52
Refresh tools from the server.
Parameters
| Parameter | Type | Description |
|---|---|---|
|
|
|
Force refresh even if cache is valid |
Returns
Promise<void>
tools
tools:
ServerTool[]
Defined in: src/react/useTools.ts:41
Available server tools