@gt-fe/eap-cli 0.2.11 → 0.2.12
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 +304 -304
- package/dist/static/playground/index.html +131 -131
- package/dist/static/playground/playground.css +209 -209
- package/dist/static/playground/playground.js +151 -151
- package/dist/static/playground-app/index.html +11 -11
- package/dist/templates/README.md +51 -51
- package/dist/templates/agent-api-orchestration/.env +16 -16
- package/dist/templates/agent-api-orchestration/README.md +326 -326
- package/dist/templates/agent-api-orchestration/agent.manifest.json +19 -19
- package/dist/templates/agent-api-orchestration/eap.config.json +1 -1
- package/dist/templates/agent-api-orchestration/eap.lock.yaml +5 -5
- package/dist/templates/agent-api-orchestration/gitignore +3 -3
- package/dist/templates/agent-api-orchestration/graph.json +35 -35
- package/dist/templates/agent-api-orchestration/package.json +1 -1
- package/dist/templates/agent-api-orchestration/scripts/api-test.mjs +443 -443
- package/dist/templates/agent-api-orchestration/scripts/build-runtime.mjs +26 -26
- package/dist/templates/agent-api-orchestration/scripts/validate.mjs +12 -12
- package/dist/templates/agent-api-orchestration/src/embedded-agent.ts +91 -91
- package/dist/templates/agent-api-orchestration/src/http/app.ts +58 -58
- package/dist/templates/agent-api-orchestration/src/http/config.ts +34 -34
- package/dist/templates/agent-api-orchestration/src/http/errors.ts +63 -63
- package/dist/templates/agent-api-orchestration/src/http/index.ts +4 -4
- package/dist/templates/agent-api-orchestration/src/http/middleware/cors.ts +17 -17
- package/dist/templates/agent-api-orchestration/src/http/routes/agent.ts +33 -33
- package/dist/templates/agent-api-orchestration/src/http/routes/health.ts +15 -15
- package/dist/templates/agent-api-orchestration/src/http/routes/invocations.ts +29 -29
- package/dist/templates/agent-api-orchestration/src/http/routes/sessions.ts +70 -70
- package/dist/templates/agent-api-orchestration/src/http/services/agent-service.ts +60 -60
- package/dist/templates/agent-api-orchestration/src/http/services/resource-service.ts +95 -95
- package/dist/templates/agent-api-orchestration/src/http/shared/request.ts +82 -82
- package/dist/templates/agent-api-orchestration/src/http/shared/sse.ts +32 -32
- package/dist/templates/agent-api-orchestration/src/http/types.ts +39 -39
- package/dist/templates/agent-api-orchestration/src/index.ts +91 -91
- package/dist/templates/agent-api-orchestration/src/platform-user.ts +36 -36
- package/dist/templates/agent-api-orchestration/src/project-config.ts +45 -45
- package/dist/templates/agent-api-orchestration/tsconfig.json +15 -15
- package/dist/templates/dag-workflow/README.md +102 -102
- package/dist/templates/dag-workflow/agent.manifest.json +19 -19
- package/dist/templates/dag-workflow/eap.config.json +1 -1
- package/dist/templates/dag-workflow/eap.lock.yaml +5 -5
- package/dist/templates/dag-workflow/gitignore +51 -51
- package/dist/templates/dag-workflow/graph.json +51 -51
- package/dist/templates/dag-workflow/package.json +10 -10
- package/dist/templates/dag-workflow/skills/README.md +116 -116
- package/dist/templates/plan-and-execute/README.md +109 -109
- package/dist/templates/plan-and-execute/agent.manifest.json +19 -19
- package/dist/templates/plan-and-execute/eap.config.json +1 -1
- package/dist/templates/plan-and-execute/eap.lock.yaml +5 -5
- package/dist/templates/plan-and-execute/gitignore +51 -51
- package/dist/templates/plan-and-execute/graph.json +49 -49
- package/dist/templates/plan-and-execute/package.json +10 -10
- package/dist/templates/plan-and-execute/skills/README.md +120 -120
- package/dist/templates/plan-and-execute/tools/echo-tool/src/index.js +17 -17
- package/dist/templates/plan-and-execute/tools/echo-tool/toolset.manifest.json +55 -55
- package/dist/templates/simple-flow/README.md +87 -87
- package/dist/templates/simple-flow/agent.manifest.json +19 -19
- package/dist/templates/simple-flow/eap.config.json +1 -1
- package/dist/templates/simple-flow/eap.lock.yaml +5 -5
- package/dist/templates/simple-flow/gitignore +51 -51
- package/dist/templates/simple-flow/graph.json +32 -32
- package/dist/templates/simple-flow/package.json +10 -10
- package/dist/templates/simple-flow/skills/README.md +113 -113
- package/dist/templates/single-agent-with-tools/README.md +138 -138
- package/dist/templates/single-agent-with-tools/agent.manifest.json +19 -19
- package/dist/templates/single-agent-with-tools/eap.config.json +1 -1
- package/dist/templates/single-agent-with-tools/eap.lock.yaml +5 -5
- package/dist/templates/single-agent-with-tools/gitignore +51 -51
- package/dist/templates/single-agent-with-tools/graph.json +41 -41
- package/dist/templates/single-agent-with-tools/package.json +10 -10
- package/dist/templates/single-agent-with-tools/skills/README.md +119 -119
- package/dist/templates/single-agent-with-tools/tools/echo-tool/src/index.js +17 -17
- package/dist/templates/single-agent-with-tools/tools/echo-tool/toolset.manifest.json +55 -55
- package/dist/templates/single-agent-with-tools/tools/http-weather/toolset.manifest.json +73 -73
- package/dist/templates/single-agent-with-tools/tools/web-search/toolset.manifest.json +41 -41
- package/package.json +3 -3
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
{
|
|
2
|
-
"code": "my-agent",
|
|
3
|
-
"name": "my-agent",
|
|
4
|
-
"version": "1.0.0",
|
|
5
|
-
"description": "通过 Agent API 编排 Runtime 行为",
|
|
6
|
-
"toolRefs": [],
|
|
7
|
-
"skillRefs": [],
|
|
8
|
-
"prompts": {
|
|
9
|
-
"system": "你是一个严谨的中文助手。"
|
|
10
|
-
},
|
|
11
|
-
"models": {
|
|
12
|
-
"default": "DeepSeek-V4-Pro",
|
|
13
|
-
"allowed": ["DeepSeek-V4-Pro", "DeepSeek-V4-Flash"]
|
|
14
|
-
},
|
|
15
|
-
"metadata": {
|
|
16
|
-
"owner": "agent-api-orchestration-template",
|
|
17
|
-
"tags": ["agent-api", "orchestration", "embedded-runtime"]
|
|
18
|
-
}
|
|
19
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"code": "my-agent",
|
|
3
|
+
"name": "my-agent",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "通过 Agent API 编排 Runtime 行为",
|
|
6
|
+
"toolRefs": [],
|
|
7
|
+
"skillRefs": [],
|
|
8
|
+
"prompts": {
|
|
9
|
+
"system": "你是一个严谨的中文助手。"
|
|
10
|
+
},
|
|
11
|
+
"models": {
|
|
12
|
+
"default": "DeepSeek-V4-Pro",
|
|
13
|
+
"allowed": ["DeepSeek-V4-Pro", "DeepSeek-V4-Flash"]
|
|
14
|
+
},
|
|
15
|
+
"metadata": {
|
|
16
|
+
"owner": "agent-api-orchestration-template",
|
|
17
|
+
"tags": ["agent-api", "orchestration", "embedded-runtime"]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
lockfileVersion: 2
|
|
2
|
-
resources:
|
|
3
|
-
tools: []
|
|
4
|
-
skills: []
|
|
5
|
-
subagents: []
|
|
1
|
+
lockfileVersion: 2
|
|
2
|
+
resources:
|
|
3
|
+
tools: []
|
|
4
|
+
skills: []
|
|
5
|
+
subagents: []
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
node_modules/
|
|
2
|
-
dist/
|
|
3
|
-
.eap/
|
|
1
|
+
node_modules/
|
|
2
|
+
dist/
|
|
3
|
+
.eap/
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
{
|
|
2
|
-
"description": "用于演示 Agent API 编排的最小模型流程(含 RAG 多源检索)。",
|
|
3
|
-
"state": {
|
|
4
|
-
"userRequest": "string",
|
|
5
|
-
"response": "string"
|
|
6
|
-
},
|
|
7
|
-
"nodes": [
|
|
8
|
-
{
|
|
9
|
-
"id": "rag",
|
|
10
|
-
"type": "rag",
|
|
11
|
-
"config": {
|
|
12
|
-
"maxIterations": 5
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"id": "respond",
|
|
17
|
-
"type": "llm",
|
|
18
|
-
"config": {
|
|
19
|
-
"disableTools": true,
|
|
20
|
-
"systemPrompt": "你是企业知识与数据问答助手,请根据用户的问题直接回答。"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
"edges": [
|
|
25
|
-
{ "from": "__start__", "to": "rag" },
|
|
26
|
-
{ "from": "rag", "to": "respond" },
|
|
27
|
-
{ "from": "respond", "to": "__end__" }
|
|
28
|
-
],
|
|
29
|
-
"entryPoint": "rag",
|
|
30
|
-
"finishPoints": ["__end__"],
|
|
31
|
-
"config": {
|
|
32
|
-
"maxRetries": 3,
|
|
33
|
-
"checkpointStore": "memory"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"description": "用于演示 Agent API 编排的最小模型流程(含 RAG 多源检索)。",
|
|
3
|
+
"state": {
|
|
4
|
+
"userRequest": "string",
|
|
5
|
+
"response": "string"
|
|
6
|
+
},
|
|
7
|
+
"nodes": [
|
|
8
|
+
{
|
|
9
|
+
"id": "rag",
|
|
10
|
+
"type": "rag",
|
|
11
|
+
"config": {
|
|
12
|
+
"maxIterations": 5
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"id": "respond",
|
|
17
|
+
"type": "llm",
|
|
18
|
+
"config": {
|
|
19
|
+
"disableTools": true,
|
|
20
|
+
"systemPrompt": "你是企业知识与数据问答助手,请根据用户的问题直接回答。"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"edges": [
|
|
25
|
+
{ "from": "__start__", "to": "rag" },
|
|
26
|
+
{ "from": "rag", "to": "respond" },
|
|
27
|
+
{ "from": "respond", "to": "__end__" }
|
|
28
|
+
],
|
|
29
|
+
"entryPoint": "rag",
|
|
30
|
+
"finishPoints": ["__end__"],
|
|
31
|
+
"config": {
|
|
32
|
+
"maxRetries": 3,
|
|
33
|
+
"checkpointStore": "memory"
|
|
34
|
+
}
|
|
35
|
+
}
|