graphai 0.4.1 → 0.4.3
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/README.md +7 -77
- package/lib/experimental_agents/array_agents/pop_agent.d.ts +1 -1
- package/lib/experimental_agents/array_agents/push_agent.d.ts +18 -4
- package/lib/experimental_agents/array_agents/push_agent.js +16 -2
- package/lib/experimental_agents/array_agents/shift_agent.d.ts +2 -2
- package/lib/experimental_agents/array_agents/shift_agent.js +1 -1
- package/lib/experimental_agents/data_agents/copy_agent.d.ts +1 -1
- package/lib/experimental_agents/data_agents/data_object_merge_template_agent.d.ts +1 -1
- package/lib/experimental_agents/data_agents/data_sum_template_agent.d.ts +1 -1
- package/lib/experimental_agents/data_agents/property_filter_agent.d.ts +46 -1
- package/lib/experimental_agents/data_agents/property_filter_agent.js +28 -4
- package/lib/experimental_agents/data_agents/total_agent.d.ts +1 -1
- package/lib/experimental_agents/embedding_agent.d.ts +2 -2
- package/lib/experimental_agents/embedding_agent.js +1 -1
- package/lib/experimental_agents/graph_agents/map_agent.d.ts +2 -2
- package/lib/experimental_agents/graph_agents/map_agent.js +3 -3
- package/lib/experimental_agents/graph_agents/nested_agent.d.ts +2 -2
- package/lib/experimental_agents/graph_agents/nested_agent.js +3 -3
- package/lib/experimental_agents/graph_agents/packages.d.ts +2 -1
- package/lib/experimental_agents/graph_agents/packages.js +3 -1
- package/lib/experimental_agents/graph_agents/vanilla.d.ts +2 -1
- package/lib/experimental_agents/graph_agents/vanilla.js +3 -1
- package/lib/experimental_agents/graph_agents/worker_agent.d.ts +39 -0
- package/lib/experimental_agents/graph_agents/worker_agent.js +111 -0
- package/lib/experimental_agents/index.d.ts +2 -2
- package/lib/experimental_agents/index.js +2 -3
- package/lib/experimental_agents/input_agents/index.d.ts +2 -0
- package/lib/experimental_agents/input_agents/index.js +8 -0
- package/lib/experimental_agents/input_agents/packages.d.ts +2 -0
- package/lib/experimental_agents/input_agents/packages.js +8 -0
- package/lib/experimental_agents/input_agents/text_input_agent.d.ts +33 -0
- package/lib/experimental_agents/input_agents/text_input_agent.js +30 -0
- package/lib/experimental_agents/llm_agents/anthropic_agent.d.ts +34 -0
- package/lib/experimental_agents/llm_agents/anthropic_agent.js +47 -0
- package/lib/experimental_agents/llm_agents/groq_agent.d.ts +15 -10
- package/lib/experimental_agents/llm_agents/groq_agent.js +34 -5
- package/lib/experimental_agents/llm_agents/index.d.ts +2 -2
- package/lib/experimental_agents/llm_agents/index.js +3 -3
- package/lib/experimental_agents/llm_agents/openai_agent.d.ts +13 -1
- package/lib/experimental_agents/llm_agents/openai_agent.js +15 -2
- package/lib/experimental_agents/llm_agents/packages.d.ts +2 -2
- package/lib/experimental_agents/llm_agents/packages.js +3 -3
- package/lib/experimental_agents/llm_agents/slashgpt_agent.d.ts +3 -1
- package/lib/experimental_agents/llm_agents/slashgpt_agent.js +2 -0
- package/lib/experimental_agents/matrix_agents/dot_product_agent.d.ts +2 -2
- package/lib/experimental_agents/matrix_agents/dot_product_agent.js +1 -1
- package/lib/experimental_agents/matrix_agents/sort_by_values_agent.d.ts +2 -2
- package/lib/experimental_agents/matrix_agents/sort_by_values_agent.js +1 -1
- package/lib/experimental_agents/service_agents/fetch_agent.d.ts +1 -1
- package/lib/experimental_agents/service_agents/fetch_agent.js +1 -1
- package/lib/experimental_agents/service_agents/wikipedia.d.ts +1 -1
- package/lib/experimental_agents/service_agents/wikipedia.js +1 -1
- package/lib/experimental_agents/sleeper_agents/sleeper_agent.d.ts +2 -2
- package/lib/experimental_agents/sleeper_agents/sleeper_agent.js +1 -1
- package/lib/experimental_agents/sleeper_agents/sleeper_agent_debug.d.ts +2 -2
- package/lib/experimental_agents/sleeper_agents/sleeper_agent_debug.js +1 -1
- package/lib/experimental_agents/string_agents/json_parser_agent.d.ts +38 -0
- package/lib/experimental_agents/string_agents/json_parser_agent.js +39 -0
- package/lib/experimental_agents/string_agents/packages.d.ts +2 -1
- package/lib/experimental_agents/string_agents/packages.js +3 -1
- package/lib/experimental_agents/string_agents/string_splitter_agent.d.ts +2 -33
- package/lib/experimental_agents/string_agents/string_splitter_agent.js +1 -1
- package/lib/experimental_agents/string_agents/string_template_agent.d.ts +54 -10
- package/lib/experimental_agents/string_agents/string_template_agent.js +40 -10
- package/lib/experimental_agents/string_agents/vanilla.d.ts +2 -1
- package/lib/experimental_agents/string_agents/vanilla.js +3 -1
- package/lib/experimental_agents/test_agents/bypass_agent.d.ts +1 -1
- package/lib/experimental_agents/test_agents/bypass_agent.js +1 -1
- package/lib/experimental_agents/test_agents/copy2array_agent.d.ts +1 -1
- package/lib/experimental_agents/test_agents/copy2array_agent.js +1 -1
- package/lib/experimental_agents/test_agents/copy_message_agent.d.ts +1 -2
- package/lib/experimental_agents/test_agents/copy_message_agent.js +1 -1
- package/lib/experimental_agents/test_agents/counting_agent.d.ts +1 -2
- package/lib/experimental_agents/test_agents/counting_agent.js +1 -1
- package/lib/experimental_agents/test_agents/echo_agent.d.ts +1 -2
- package/lib/experimental_agents/test_agents/echo_agent.js +13 -2
- package/lib/experimental_agents/test_agents/merge_node_id_agent.d.ts +1 -2
- package/lib/experimental_agents/test_agents/merge_node_id_agent.js +1 -1
- package/lib/experimental_agents/test_agents/stream_mock_agent.d.ts +1 -2
- package/lib/experimental_agents/test_agents/stream_mock_agent.js +9 -2
- package/lib/experimental_agents/token_agent.d.ts +1 -1
- package/lib/experimental_agents/vanilla.d.ts +1 -2
- package/lib/experimental_agents/vanilla.js +1 -3
- package/lib/graphai.d.ts +6 -6
- package/lib/graphai.js +9 -9
- package/lib/index.d.ts +3 -3
- package/lib/index.js +4 -2
- package/lib/node.d.ts +4 -2
- package/lib/node.js +44 -11
- package/lib/transaction_log.d.ts +1 -0
- package/lib/transaction_log.js +2 -0
- package/lib/type.d.ts +12 -6
- package/lib/utils/runner.d.ts +2 -0
- package/lib/utils/runner.js +20 -0
- package/lib/utils/test_agents.d.ts +2 -2
- package/lib/utils/test_utils.d.ts +1 -17
- package/lib/utils/test_utils.js +3 -21
- package/lib/utils/utils.d.ts +2 -0
- package/lib/utils/utils.js +45 -1
- package/lib/validators/agent_validator.js +2 -1
- package/lib/validators/common.d.ts +3 -0
- package/lib/validators/common.js +24 -2
- package/lib/validators/computed_node_validator.js +1 -1
- package/lib/validators/graph_data_validator.js +9 -9
- package/lib/validators/nodeValidator.js +3 -2
- package/lib/validators/relation_validator.js +6 -5
- package/lib/validators/static_node_validator.js +1 -1
- package/package.json +4 -1
- package/lib/experimental_agents/function_agent.d.ts +0 -42
- package/lib/experimental_agents/function_agent.js +0 -40
- package/lib/experimental_agents/llm_agents/groq_stream_agent.d.ts +0 -42
- package/lib/experimental_agents/llm_agents/groq_stream_agent.js +0 -84
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.relationValidator = void 0;
|
|
4
4
|
const utils_1 = require("../utils/utils");
|
|
5
|
+
const common_1 = require("../validators/common");
|
|
5
6
|
const relationValidator = (data, staticNodeIds, computedNodeIds) => {
|
|
6
7
|
const nodeIds = new Set(Object.keys(data.nodes));
|
|
7
8
|
const pendings = {};
|
|
@@ -15,7 +16,7 @@ const relationValidator = (data, staticNodeIds, computedNodeIds) => {
|
|
|
15
16
|
const sourceNodeId = (0, utils_1.parseNodeName)(inputNodeId, data.version ?? 0.02).nodeId;
|
|
16
17
|
if (sourceNodeId) {
|
|
17
18
|
if (!nodeIds.has(sourceNodeId)) {
|
|
18
|
-
throw new
|
|
19
|
+
throw new common_1.ValidationError(`Inputs not match: NodeId ${computedNodeId}, Inputs: ${sourceNodeId}`);
|
|
19
20
|
}
|
|
20
21
|
waitlist[sourceNodeId] === undefined && (waitlist[sourceNodeId] = new Set());
|
|
21
22
|
pendings[computedNodeId].add(sourceNodeId);
|
|
@@ -31,10 +32,10 @@ const relationValidator = (data, staticNodeIds, computedNodeIds) => {
|
|
|
31
32
|
const update = nodeData.update;
|
|
32
33
|
const updateNodeId = (0, utils_1.parseNodeName)(update, data.version ?? 0.02).nodeId;
|
|
33
34
|
if (!updateNodeId) {
|
|
34
|
-
throw new
|
|
35
|
+
throw new common_1.ValidationError("Update it a literal");
|
|
35
36
|
}
|
|
36
37
|
if (!nodeIds.has(updateNodeId)) {
|
|
37
|
-
throw new
|
|
38
|
+
throw new common_1.ValidationError(`Update not match: NodeId ${staticNodeId}, update: ${update}`);
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
});
|
|
@@ -55,13 +56,13 @@ const relationValidator = (data, staticNodeIds, computedNodeIds) => {
|
|
|
55
56
|
};
|
|
56
57
|
let runningQueue = cycle(staticNodeIds);
|
|
57
58
|
if (runningQueue.length === 0) {
|
|
58
|
-
throw new
|
|
59
|
+
throw new common_1.ValidationError("No Initial Runnning Node");
|
|
59
60
|
}
|
|
60
61
|
do {
|
|
61
62
|
runningQueue = cycle(runningQueue);
|
|
62
63
|
} while (runningQueue.length > 0);
|
|
63
64
|
if (Object.keys(pendings).length > 0) {
|
|
64
|
-
throw new
|
|
65
|
+
throw new common_1.ValidationError("Some nodes are not executed: " + Object.keys(pendings).join(", "));
|
|
65
66
|
}
|
|
66
67
|
};
|
|
67
68
|
exports.relationValidator = relationValidator;
|
|
@@ -5,7 +5,7 @@ const common_1 = require("../validators/common");
|
|
|
5
5
|
const staticNodeValidator = (nodeData) => {
|
|
6
6
|
Object.keys(nodeData).forEach((key) => {
|
|
7
7
|
if (!common_1.staticNodeAttributeKeys.includes(key)) {
|
|
8
|
-
throw new
|
|
8
|
+
throw new common_1.ValidationError("Static node does not allow " + key);
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphai",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Asynchronous data flow execution engine for agentic AI apps.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "rm -r lib/* && tsc && tsc-alias",
|
|
11
11
|
"eslint": "eslint",
|
|
12
|
+
"apiDoc": " npx typedoc src/index.ts --out apiDoc",
|
|
12
13
|
"format": "prettier --write '{src,tests,samples}/**/*.ts'",
|
|
13
14
|
"test": "node --test -r tsconfig-paths/register --require ts-node/register ./tests/**/test_*.ts",
|
|
14
15
|
"http_test": "node --test -r tsconfig-paths/register --require ts-node/register ./tests/**/http_*.ts",
|
|
@@ -27,6 +28,7 @@
|
|
|
27
28
|
},
|
|
28
29
|
"homepage": "https://github.com/receptron/graphai#readme",
|
|
29
30
|
"devDependencies": {
|
|
31
|
+
"@anthropic-ai/sdk": "^0.21.0",
|
|
30
32
|
"@inquirer/prompts": "^5.0.0",
|
|
31
33
|
"@types/cors": "^2.8.17",
|
|
32
34
|
"@types/express": "^4.17.21",
|
|
@@ -47,6 +49,7 @@
|
|
|
47
49
|
"ts-node": "^10.9.2",
|
|
48
50
|
"tsc-alias": "^1.8.8",
|
|
49
51
|
"tsconfig-paths": "^4.2.0",
|
|
52
|
+
"typedoc": "^0.25.13",
|
|
50
53
|
"typescript": "^5.4.5",
|
|
51
54
|
"typescript-eslint": "^7.8.0",
|
|
52
55
|
"wikipedia": "^2.1.2",
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { AgentFunction } from "../graphai";
|
|
2
|
-
export declare const functionAgent: AgentFunction<{
|
|
3
|
-
function: (...args: any[]) => any;
|
|
4
|
-
}>;
|
|
5
|
-
declare const functionAgentInfo: {
|
|
6
|
-
name: string;
|
|
7
|
-
agent: AgentFunction<{
|
|
8
|
-
function: (...args: any[]) => any;
|
|
9
|
-
}>;
|
|
10
|
-
mock: AgentFunction<{
|
|
11
|
-
function: (...args: any[]) => any;
|
|
12
|
-
}>;
|
|
13
|
-
samples: ({
|
|
14
|
-
inputs: {
|
|
15
|
-
model: string;
|
|
16
|
-
maker: string;
|
|
17
|
-
range: number;
|
|
18
|
-
price: number;
|
|
19
|
-
}[];
|
|
20
|
-
params: {
|
|
21
|
-
function: (info: Record<string, any>) => string;
|
|
22
|
-
};
|
|
23
|
-
result: string;
|
|
24
|
-
} | {
|
|
25
|
-
inputs: string[];
|
|
26
|
-
params: {
|
|
27
|
-
function: (str: string) => any;
|
|
28
|
-
};
|
|
29
|
-
result: {
|
|
30
|
-
model: string;
|
|
31
|
-
maker: string;
|
|
32
|
-
range: number;
|
|
33
|
-
price: number;
|
|
34
|
-
};
|
|
35
|
-
})[];
|
|
36
|
-
description: string;
|
|
37
|
-
category: string[];
|
|
38
|
-
author: string;
|
|
39
|
-
repository: string;
|
|
40
|
-
license: string;
|
|
41
|
-
};
|
|
42
|
-
export default functionAgentInfo;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.functionAgent = void 0;
|
|
4
|
-
const functionAgent = async ({ inputs, params }) => {
|
|
5
|
-
return params.function(...inputs);
|
|
6
|
-
};
|
|
7
|
-
exports.functionAgent = functionAgent;
|
|
8
|
-
const carInfo = { model: "Model 3", maker: "Tesla", range: 300, price: 35000 };
|
|
9
|
-
const functionAgentInfo = {
|
|
10
|
-
name: "functionAgent",
|
|
11
|
-
agent: exports.functionAgent,
|
|
12
|
-
mock: exports.functionAgent,
|
|
13
|
-
samples: [
|
|
14
|
-
{
|
|
15
|
-
inputs: [carInfo],
|
|
16
|
-
params: {
|
|
17
|
-
function: (info) => {
|
|
18
|
-
const { model, maker, range, price } = info;
|
|
19
|
-
return `A ${maker} ${model} has the range of ${range} miles. It costs $${price}.`;
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
result: "A Tesla Model 3 has the range of 300 miles. It costs $35000.",
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
inputs: [JSON.stringify(carInfo)],
|
|
26
|
-
params: {
|
|
27
|
-
function: (str) => {
|
|
28
|
-
return JSON.parse(str);
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
result: carInfo,
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
description: "It allows developers to implement the agent function within the graph itself.",
|
|
35
|
-
category: ["data"],
|
|
36
|
-
author: "Receptron team",
|
|
37
|
-
repository: "https://github.com/receptron/graphai",
|
|
38
|
-
license: "MIT",
|
|
39
|
-
};
|
|
40
|
-
exports.default = functionAgentInfo;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { AgentFunction } from "../../graphai";
|
|
2
|
-
import { Groq } from "groq-sdk";
|
|
3
|
-
export declare const groqStreamAgent: AgentFunction<{
|
|
4
|
-
model: string;
|
|
5
|
-
query?: string;
|
|
6
|
-
system?: string;
|
|
7
|
-
verbose?: boolean;
|
|
8
|
-
tools?: Groq.Chat.CompletionCreateParams.Tool[];
|
|
9
|
-
temperature?: number;
|
|
10
|
-
max_tokens?: number;
|
|
11
|
-
tool_choice?: Groq.Chat.CompletionCreateParams.ToolChoice;
|
|
12
|
-
}, any, string | Array<Groq.Chat.CompletionCreateParams.Message>>;
|
|
13
|
-
declare const groqStreamAgentInfo: {
|
|
14
|
-
name: string;
|
|
15
|
-
agent: AgentFunction<{
|
|
16
|
-
model: string;
|
|
17
|
-
query?: string | undefined;
|
|
18
|
-
system?: string | undefined;
|
|
19
|
-
verbose?: boolean | undefined;
|
|
20
|
-
tools?: Groq.Chat.Completions.CompletionCreateParams.Tool[] | undefined;
|
|
21
|
-
temperature?: number | undefined;
|
|
22
|
-
max_tokens?: number | undefined;
|
|
23
|
-
tool_choice?: Groq.Chat.Completions.CompletionCreateParams.ToolChoice | undefined;
|
|
24
|
-
}, any, string | Groq.Chat.Completions.CompletionCreateParams.Message[]>;
|
|
25
|
-
mock: AgentFunction<{
|
|
26
|
-
model: string;
|
|
27
|
-
query?: string | undefined;
|
|
28
|
-
system?: string | undefined;
|
|
29
|
-
verbose?: boolean | undefined;
|
|
30
|
-
tools?: Groq.Chat.Completions.CompletionCreateParams.Tool[] | undefined;
|
|
31
|
-
temperature?: number | undefined;
|
|
32
|
-
max_tokens?: number | undefined;
|
|
33
|
-
tool_choice?: Groq.Chat.Completions.CompletionCreateParams.ToolChoice | undefined;
|
|
34
|
-
}, any, string | Groq.Chat.Completions.CompletionCreateParams.Message[]>;
|
|
35
|
-
samples: never[];
|
|
36
|
-
description: string;
|
|
37
|
-
category: string[];
|
|
38
|
-
author: string;
|
|
39
|
-
repository: string;
|
|
40
|
-
license: string;
|
|
41
|
-
};
|
|
42
|
-
export default groqStreamAgentInfo;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.groqStreamAgent = void 0;
|
|
4
|
-
const groq_sdk_1 = require("groq-sdk");
|
|
5
|
-
const utils_1 = require("../../utils/utils");
|
|
6
|
-
const groq = process.env.GROQ_API_KEY ? new groq_sdk_1.Groq({ apiKey: process.env.GROQ_API_KEY }) : undefined;
|
|
7
|
-
//
|
|
8
|
-
// This agent takes two optional inputs, and following parameters.
|
|
9
|
-
// inputs:
|
|
10
|
-
// - [0]: query string (typically from the user), optional
|
|
11
|
-
// - [1]: array of messages from previous conversation, optional
|
|
12
|
-
//
|
|
13
|
-
// params:
|
|
14
|
-
// - model: LLM model (Llama3-8b-8192, Llama3-70b-8192, Mixtral-8x7b-32768), required.
|
|
15
|
-
// - query: Additional query string from the app to prepend the query from the user, optional.
|
|
16
|
-
// - system: System prompt (ignored if inputs[1] is specified), optional
|
|
17
|
-
// - tools: Function definitions, optional
|
|
18
|
-
// - tool_choice: Tool choice parameter, optional (default = "auto")
|
|
19
|
-
// - temperature: Controls randomness of responses, optional (default = 0.7)
|
|
20
|
-
// - max_tokens: The maximum number of tokens that the model can process in a single response, optional.
|
|
21
|
-
// - verbose: dumps the message array to the debug console, before sending it the LLM.
|
|
22
|
-
//
|
|
23
|
-
// https://console.groq.com/docs/quickstart
|
|
24
|
-
//
|
|
25
|
-
const groqStreamAgent = async ({ params, inputs, filterParams }) => {
|
|
26
|
-
(0, utils_1.assert)(groq !== undefined, "The GROQ_API_KEY environment variable is missing.");
|
|
27
|
-
const { verbose, query, system, tools, tool_choice, max_tokens, temperature } = params;
|
|
28
|
-
const [input_query, previous_messages] = inputs;
|
|
29
|
-
// Notice that we ignore params.system if previous_message exists.
|
|
30
|
-
const messages = previous_messages && Array.isArray(previous_messages) ? previous_messages : system ? [{ role: "system", content: system }] : [];
|
|
31
|
-
const content = (query ? [query] : []).concat(input_query && typeof input_query === "string" ? [input_query] : []).join("\n");
|
|
32
|
-
if (content) {
|
|
33
|
-
messages.push({
|
|
34
|
-
role: "user",
|
|
35
|
-
content,
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
if (verbose) {
|
|
39
|
-
console.log(messages);
|
|
40
|
-
}
|
|
41
|
-
const options = {
|
|
42
|
-
messages,
|
|
43
|
-
model: params.model,
|
|
44
|
-
temperature: temperature ?? 0.7,
|
|
45
|
-
stream: true,
|
|
46
|
-
};
|
|
47
|
-
if (max_tokens) {
|
|
48
|
-
options.max_tokens = max_tokens;
|
|
49
|
-
}
|
|
50
|
-
if (tools) {
|
|
51
|
-
options.tools = tools;
|
|
52
|
-
options.tool_choice = tool_choice ?? "auto";
|
|
53
|
-
}
|
|
54
|
-
const stream = await groq.chat.completions.create(options);
|
|
55
|
-
let lastMessage = null;
|
|
56
|
-
const contents = [];
|
|
57
|
-
for await (const message of stream) {
|
|
58
|
-
const token = message.choices[0].delta.content;
|
|
59
|
-
if (token) {
|
|
60
|
-
if (filterParams && filterParams.streamTokenCallback) {
|
|
61
|
-
filterParams.streamTokenCallback(token);
|
|
62
|
-
}
|
|
63
|
-
contents.push(token);
|
|
64
|
-
}
|
|
65
|
-
lastMessage = message;
|
|
66
|
-
}
|
|
67
|
-
if (lastMessage) {
|
|
68
|
-
lastMessage.choices[0]["message"] = [{ role: "assistant", content: contents.join("") }];
|
|
69
|
-
}
|
|
70
|
-
return lastMessage;
|
|
71
|
-
};
|
|
72
|
-
exports.groqStreamAgent = groqStreamAgent;
|
|
73
|
-
const groqStreamAgentInfo = {
|
|
74
|
-
name: "groqStreamAgent",
|
|
75
|
-
agent: exports.groqStreamAgent,
|
|
76
|
-
mock: exports.groqStreamAgent,
|
|
77
|
-
samples: [],
|
|
78
|
-
description: "Groq Stream Agent",
|
|
79
|
-
category: ["llm"],
|
|
80
|
-
author: "Receptron team",
|
|
81
|
-
repository: "https://github.com/receptron/graphai",
|
|
82
|
-
license: "MIT",
|
|
83
|
-
};
|
|
84
|
-
exports.default = groqStreamAgentInfo;
|