graphai 0.5.20 → 0.5.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bundle.cjs.js +1 -1
- package/lib/bundle.cjs.js.map +1 -1
- package/lib/bundle.esm.js +3 -1
- package/lib/bundle.esm.js.map +1 -1
- package/lib/bundle.umd.js +1 -1
- package/lib/bundle.umd.js.map +1 -1
- package/lib/graphai.d.ts +1 -0
- package/lib/graphai.js +1 -0
- package/lib/node.js +2 -1
- package/lib/type.d.ts +3 -1
- package/package.json +1 -1
package/lib/type.d.ts
CHANGED
|
@@ -74,6 +74,7 @@ export type GraphOptions = {
|
|
|
74
74
|
config?: Record<string, unknown>;
|
|
75
75
|
graphLoader?: GraphDataLoader;
|
|
76
76
|
};
|
|
77
|
+
export type CacheTypes = "pureAgent" | "impureAgent";
|
|
77
78
|
export type AgentFunctionContext<ParamsType = DefaultParamsType, InputDataType = DefaultInputData, NamedInputDataType = DefaultInputData> = {
|
|
78
79
|
params: NodeDataParams<ParamsType>;
|
|
79
80
|
inputs: Array<InputDataType>;
|
|
@@ -96,7 +97,7 @@ export type AgentFunctionContext<ParamsType = DefaultParamsType, InputDataType =
|
|
|
96
97
|
graphOptions: GraphOptions;
|
|
97
98
|
onLogCallback?: (log: TransactionLog, isUpdate: boolean) => void;
|
|
98
99
|
};
|
|
99
|
-
cacheType?:
|
|
100
|
+
cacheType?: CacheTypes;
|
|
100
101
|
onLogCallback?: (log: TransactionLog, isUpdate: boolean) => void;
|
|
101
102
|
filterParams: AgentFilterParams;
|
|
102
103
|
agentFilters?: AgentFilterInfo[];
|
|
@@ -132,6 +133,7 @@ export type AgentFunctionInfo = {
|
|
|
132
133
|
author: string;
|
|
133
134
|
repository: string;
|
|
134
135
|
license: string;
|
|
136
|
+
cacheType?: CacheTypes;
|
|
135
137
|
environmentVariables?: string[];
|
|
136
138
|
stream?: boolean;
|
|
137
139
|
apiKeys?: string[];
|