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/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?: "pureAgent" | "impureAgent";
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[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphai",
3
- "version": "0.5.20",
3
+ "version": "0.5.21",
4
4
  "description": "Asynchronous data flow execution engine for agentic AI apps.",
5
5
  "main": "lib/bundle.cjs.js",
6
6
  "module": "lib/bundle.esm.js",