Skip to content

Commit 8e03b6f

Browse files
Fix issue with workflow properties
1 parent ade022a commit 8e03b6f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

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)