graphai 0.5.19 → 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,6 +97,7 @@ export type AgentFunctionContext<ParamsType = DefaultParamsType, InputDataType =
96
97
  graphOptions: GraphOptions;
97
98
  onLogCallback?: (log: TransactionLog, isUpdate: boolean) => void;
98
99
  };
100
+ cacheType?: CacheTypes;
99
101
  onLogCallback?: (log: TransactionLog, isUpdate: boolean) => void;
100
102
  filterParams: AgentFilterParams;
101
103
  agentFilters?: AgentFilterInfo[];
@@ -131,6 +133,7 @@ export type AgentFunctionInfo = {
131
133
  author: string;
132
134
  repository: string;
133
135
  license: string;
136
+ cacheType?: CacheTypes;
134
137
  environmentVariables?: string[];
135
138
  stream?: boolean;
136
139
  apiKeys?: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphai",
3
- "version": "0.5.19",
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",