graphai 0.6.16 → 0.6.18

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
@@ -133,6 +133,7 @@ export type AgentFunctionInfo = {
133
133
  outputFormat?: any;
134
134
  params?: any;
135
135
  config?: any;
136
+ tools?: Record<string, any>[];
136
137
  samples: AgentFunctionInfoSample[];
137
138
  description: string;
138
139
  category: string[];
@@ -65,7 +65,10 @@ const propStringFunction = (result, propId) => {
65
65
  if (propId === "toUpperCase()") {
66
66
  return result.toUpperCase();
67
67
  }
68
- // split()
68
+ const match = propId.match(/^split\(([-_:;.,\s\n]+)\)$/);
69
+ if (match) {
70
+ return result.split(match[1]);
71
+ }
69
72
  }
70
73
  return undefined;
71
74
  };
@@ -18,7 +18,7 @@ export declare const defaultAgentInfo: {
18
18
  repository: string;
19
19
  license: string;
20
20
  };
21
- export declare const agentInfoWrapper: (agent: AgentFunction<any, any, any>) => {
21
+ export declare const agentInfoWrapper: (agent: AgentFunction<any, any, any, any>) => {
22
22
  name: string;
23
23
  samples: {
24
24
  inputs: never[];
@@ -30,8 +30,8 @@ export declare const agentInfoWrapper: (agent: AgentFunction<any, any, any>) =>
30
30
  author: string;
31
31
  repository: string;
32
32
  license: string;
33
- agent: AgentFunction<any, any, any>;
34
- mock: AgentFunction<any, any, any>;
33
+ agent: AgentFunction<any, any, any, any>;
34
+ mock: AgentFunction<any, any, any, any>;
35
35
  };
36
36
  export declare const debugResultKey: (agentId: string, result: any) => string[];
37
37
  export declare const isLogicallyTrue: (value: any) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphai",
3
- "version": "0.6.16",
3
+ "version": "0.6.18",
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",