From f6de0d0737695fcbae697bc318568293bb51e657 Mon Sep 17 00:00:00 2001 From: Sensational Code Date: Thu, 12 Dec 2024 05:30:52 -0800 Subject: [PATCH 01/24] Add getAgentWorkflows api method --- src/ui/ManagementPortal/js/api.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ui/ManagementPortal/js/api.ts b/src/ui/ManagementPortal/js/api.ts index 6675d936a..681ce903c 100644 --- a/src/ui/ManagementPortal/js/api.ts +++ b/src/ui/ManagementPortal/js/api.ts @@ -813,6 +813,15 @@ export default { ); }, + /* + Agent Workflows + */ + async getAgentWorkflows(): Promise { + return await this.fetch( + `/instances/${this.instanceId}/providers/FoundationaLLM.Agent/workflows?api-version=${this.apiVersion}`, + ); + }, + /* Agent Access Tokens */ From 42b9f6b96fcb3b084d4292b9de09724cb7cda374 Mon Sep 17 00:00:00 2001 From: Sensational Code Date: Thu, 12 Dec 2024 05:32:17 -0800 Subject: [PATCH 02/24] Add comment --- src/ui/ManagementPortal/js/api.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/ManagementPortal/js/api.ts b/src/ui/ManagementPortal/js/api.ts index 681ce903c..745b2ca71 100644 --- a/src/ui/ManagementPortal/js/api.ts +++ b/src/ui/ManagementPortal/js/api.ts @@ -631,6 +631,9 @@ export default { ); }, + /* + AI Models + */ async getAIModels(): Promise[]> { const data = (await this.fetch( `/instances/${this.instanceId}/providers/FoundationaLLM.AIModel/aiModels?api-version=${this.apiVersion}`, From bef81615a204955b98587027cce3e7ee8f327e67 Mon Sep 17 00:00:00 2001 From: Sensational Code Date: Thu, 12 Dec 2024 05:34:33 -0800 Subject: [PATCH 03/24] Create initial PropertyBuilder component --- .../components/PropertyBuilder.vue | 129 ++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 src/ui/ManagementPortal/components/PropertyBuilder.vue diff --git a/src/ui/ManagementPortal/components/PropertyBuilder.vue b/src/ui/ManagementPortal/components/PropertyBuilder.vue new file mode 100644 index 000000000..fcec5b2b5 --- /dev/null +++ b/src/ui/ManagementPortal/components/PropertyBuilder.vue @@ -0,0 +1,129 @@ + + + + + \ No newline at end of file From 089dc47466c43d8d53f67cf2e84ef220606ecbb7 Mon Sep 17 00:00:00 2001 From: Sensational Code Date: Thu, 12 Dec 2024 05:37:08 -0800 Subject: [PATCH 04/24] Initial workflow configuration on agent form --- .../ManagementPortal/pages/agents/create.vue | 147 +++++++++++++++++- 1 file changed, 142 insertions(+), 5 deletions(-) diff --git a/src/ui/ManagementPortal/pages/agents/create.vue b/src/ui/ManagementPortal/pages/agents/create.vue index dbd8cffed..9ce3843ee 100644 --- a/src/ui/ManagementPortal/pages/agents/create.vue +++ b/src/ui/ManagementPortal/pages/agents/create.vue @@ -720,7 +720,72 @@ /> - + + +
Workflow
+
+ What workflow should the agent use? +
+ + +
+ +
+ + +
+ + +
+
Workflow main model:
+ +
+ + + + +
+
Workflow main model parameters:
+ +
+
+
Security
@@ -752,7 +817,7 @@ - +