Skip to content

Commit a1236bb

Browse files
Merge pull request #2445 from solliancenet/cj-fix-agent-workflow
Fix issue with workflow properties in Management Portal
2 parents 10ff726 + 8e03b6f commit a1236bb

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

.vscode/launch.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,23 @@
2121
"type": "node-terminal",
2222
"cwd" : "${workspaceFolder}/src/ui/UserPortal",
2323
},
24+
{
25+
"name": "Management Portal UI - Frontend",
26+
"type": "chrome",
27+
"request": "launch",
28+
"url": "http://localhost:3001",
29+
"webRoot": "${workspaceFolder}/src/ui/ManagementPortal"
30+
},
2431
{
2532
"command": "npm run dev",
26-
"name": "Mgmt Portal UI",
33+
"name": "Management Portal UI - Backend",
2734
"request": "launch",
2835
"type": "node-terminal",
36+
"sourceMaps": true,
2937
"cwd" : "${workspaceFolder}/src/ui/ManagementPortal",
38+
"env" : {
39+
"NODE_ENV": "development"
40+
}
3041
},
3142
{
3243
"name": "Python: AgentHubAPI",

src/ui/ManagementPortal/js/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export type AgentTool = {
6464
export type AgentWorkflow = {
6565
type: string;
6666
assistant_id: string;
67+
vector_store_id: string;
6768
name: string;
6869
package_name: string;
6970
workflow_host: string;

src/ui/ManagementPortal/pages/agents/create.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,6 +1476,8 @@ export default {
14761476
workflowMainAIModel: null as AIModel | null,
14771477
// workflowMainPrompt: '' as string,
14781478
workflowMainAIModelParameters: {} as object,
1479+
workflowAssistantId: '' as string,
1480+
workflowVectorStoreId: '' as string,
14791481
workflowName: '' as string,
14801482
workflowPackageName: 'FoundationaLLM' as string,
14811483
workflowClassName: '' as string,
@@ -1725,6 +1727,8 @@ export default {
17251727
}
17261728
17271729
if (agent.workflow) {
1730+
this.workflowAssistantId = agent.workflow.assistant_id ?? '';
1731+
this.workflowVectorStoreId = agent.workflow.vector_store_id ?? '';
17281732
this.workflowName = agent.workflow.name ?? '';
17291733
this.workflowPackageName = agent.workflow.package_name ?? '';
17301734
this.workflowClassName = agent.workflow.class_name ?? '';
@@ -2176,6 +2180,8 @@ export default {
21762180
workflow = {
21772181
...this.selectedWorkflow,
21782182
workflow_host: this.workflowHost,
2183+
assistant_id: this.workflowAssistantId,
2184+
vector_store_id: this.workflowVectorStoreId,
21792185
name: this.workflowName,
21802186
package_name: this.workflowPackageName,
21812187
class_name: this.workflowClassName,

0 commit comments

Comments
 (0)