Class: ToolCache
Defined in: tool-cache.ts:45
A singleton class to cache the results of tools.
Accessors
toolCache
Get Signature
get toolCache():
Record
<string
,unknown
>
Defined in: tool-cache.ts:58
Returns
Record
<string
, unknown
>
Methods
addDataset()
addDataset(
toolCallId
,additionalData
):void
Defined in: tool-cache.ts:62
Parameters
toolCallId
string
additionalData
unknown
Returns
void
clearCache()
clearCache():
void
Defined in: tool-cache.ts:82
Returns
void
getDataset()
getDataset(
datasetName
):null
|ToolCacheDataset
Defined in: tool-cache.ts:96
Parameters
datasetName
string
Returns
null
| ToolCacheDataset
hasDataset()
hasDataset(
datasetName
):boolean
Defined in: tool-cache.ts:92
Parameters
datasetName
string
Returns
boolean
removeDataset()
removeDataset(
datasetName
):void
Defined in: tool-cache.ts:86
Parameters
datasetName
string
Returns
void
getInstance()
static
getInstance():ToolCache
Defined in: tool-cache.ts:51