From b0c7c8d9975569177acecdf46a53ecadda992932 Mon Sep 17 00:00:00 2001 From: Flavien David Date: Fri, 9 Aug 2024 13:55:18 +0200 Subject: [PATCH] :sparkles: --- front/lib/api/assistant/configuration.ts | 24 +++++++++---------- .../lib/api/assistant/configuration/browse.ts | 2 +- .../assistant/configuration/dust_app_run.ts | 2 +- .../api/assistant/configuration/process.ts | 2 +- .../api/assistant/configuration/retrieval.ts | 2 +- .../assistant/configuration/table_query.ts | 2 +- .../api/assistant/configuration/websearch.ts | 2 +- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/front/lib/api/assistant/configuration.ts b/front/lib/api/assistant/configuration.ts index 104aea57f6dc..116ab4a33564 100644 --- a/front/lib/api/assistant/configuration.ts +++ b/front/lib/api/assistant/configuration.ts @@ -37,12 +37,12 @@ import { DEFAULT_TABLES_QUERY_ACTION_NAME, DEFAULT_WEBSEARCH_ACTION_NAME, } from "@app/lib/api/assistant/actions/names"; -import { fetchBrowseActionsConfigurations } from "@app/lib/api/assistant/configuration/browse"; -import { fetchDustAppRunActionsConfigurations } from "@app/lib/api/assistant/configuration/dust_app_run"; -import { fetchAgentProcessActionsConfigurations } from "@app/lib/api/assistant/configuration/process"; -import { fetchAgentRetrievalActionsConfigurations } from "@app/lib/api/assistant/configuration/retrieval"; -import { fetchTableQueryActionsConfigurations } from "@app/lib/api/assistant/configuration/table_query"; -import { fetchWebsearchActionsConfigurations } from "@app/lib/api/assistant/configuration/websearch"; +import { fetchBrowseActionConfigurations } from "@app/lib/api/assistant/configuration/browse"; +import { fetchDustAppRunActionConfigurations } from "@app/lib/api/assistant/configuration/dust_app_run"; +import { fetchAgentProcessActionConfigurations } from "@app/lib/api/assistant/configuration/process"; +import { fetchAgentRetrievalActionConfigurations } from "@app/lib/api/assistant/configuration/retrieval"; +import { fetchTableQueryActionConfigurations } from "@app/lib/api/assistant/configuration/table_query"; +import { fetchWebsearchActionConfigurations } from "@app/lib/api/assistant/configuration/websearch"; import { getGlobalAgents, isGlobalAgentId, @@ -387,12 +387,12 @@ async function fetchWorkspaceAgentConfigurationsForView( browseActionsConfigurationsPerAgent, agentUserRelations, ] = await Promise.all([ - fetchAgentRetrievalActionsConfigurations({ configurationIds, variant }), - fetchAgentProcessActionsConfigurations({ configurationIds, variant }), - fetchDustAppRunActionsConfigurations({ configurationIds, variant }), - fetchTableQueryActionsConfigurations({ configurationIds, variant }), - fetchWebsearchActionsConfigurations({ configurationIds, variant }), - fetchBrowseActionsConfigurations({ configurationIds, variant }), + fetchAgentRetrievalActionConfigurations({ configurationIds, variant }), + fetchAgentProcessActionConfigurations({ configurationIds, variant }), + fetchDustAppRunActionConfigurations({ configurationIds, variant }), + fetchTableQueryActionConfigurations({ configurationIds, variant }), + fetchWebsearchActionConfigurations({ configurationIds, variant }), + fetchBrowseActionConfigurations({ configurationIds, variant }), user && configurationIds.length > 0 ? AgentUserRelation.findAll({ where: { diff --git a/front/lib/api/assistant/configuration/browse.ts b/front/lib/api/assistant/configuration/browse.ts index 99e05adbaeb5..6129deeea869 100644 --- a/front/lib/api/assistant/configuration/browse.ts +++ b/front/lib/api/assistant/configuration/browse.ts @@ -4,7 +4,7 @@ import { Op } from "sequelize"; import { DEFAULT_BROWSE_ACTION_NAME } from "@app/lib/api/assistant/actions/names"; import { AgentBrowseConfiguration } from "@app/lib/models/assistant/actions/browse"; -export async function fetchBrowseActionsConfigurations({ +export async function fetchBrowseActionConfigurations({ configurationIds, variant, }: { diff --git a/front/lib/api/assistant/configuration/dust_app_run.ts b/front/lib/api/assistant/configuration/dust_app_run.ts index 1153d7fb525a..63eb51c554ab 100644 --- a/front/lib/api/assistant/configuration/dust_app_run.ts +++ b/front/lib/api/assistant/configuration/dust_app_run.ts @@ -5,7 +5,7 @@ import { Op } from "sequelize"; import { App } from "@app/lib/models/apps"; import { AgentDustAppRunConfiguration } from "@app/lib/models/assistant/actions/dust_app_run"; -export async function fetchDustAppRunActionsConfigurations({ +export async function fetchDustAppRunActionConfigurations({ configurationIds, variant, }: { diff --git a/front/lib/api/assistant/configuration/process.ts b/front/lib/api/assistant/configuration/process.ts index 4a7c39b0cf39..cdf7eac95fd0 100644 --- a/front/lib/api/assistant/configuration/process.ts +++ b/front/lib/api/assistant/configuration/process.ts @@ -15,7 +15,7 @@ import { Workspace } from "@app/lib/models/workspace"; import { DataSourceViewResource } from "@app/lib/resources/data_source_view_resource"; import { DataSourceViewModel } from "@app/lib/resources/storage/models/data_source_view"; -export async function fetchAgentProcessActionsConfigurations({ +export async function fetchAgentProcessActionConfigurations({ configurationIds, variant, }: { diff --git a/front/lib/api/assistant/configuration/retrieval.ts b/front/lib/api/assistant/configuration/retrieval.ts index 89ada6a60b68..5ef543208ac2 100644 --- a/front/lib/api/assistant/configuration/retrieval.ts +++ b/front/lib/api/assistant/configuration/retrieval.ts @@ -15,7 +15,7 @@ import { Workspace } from "@app/lib/models/workspace"; import { DataSourceViewResource } from "@app/lib/resources/data_source_view_resource"; import { DataSourceViewModel } from "@app/lib/resources/storage/models/data_source_view"; -export async function fetchAgentRetrievalActionsConfigurations({ +export async function fetchAgentRetrievalActionConfigurations({ configurationIds, variant, }: { diff --git a/front/lib/api/assistant/configuration/table_query.ts b/front/lib/api/assistant/configuration/table_query.ts index 062d0446ad8c..9cbbdd53c499 100644 --- a/front/lib/api/assistant/configuration/table_query.ts +++ b/front/lib/api/assistant/configuration/table_query.ts @@ -8,7 +8,7 @@ import { AgentTablesQueryConfigurationTable, } from "@app/lib/models/assistant/actions/tables_query"; -export async function fetchTableQueryActionsConfigurations({ +export async function fetchTableQueryActionConfigurations({ configurationIds, variant, }: { diff --git a/front/lib/api/assistant/configuration/websearch.ts b/front/lib/api/assistant/configuration/websearch.ts index 119220086a90..e9ca8320f0d0 100644 --- a/front/lib/api/assistant/configuration/websearch.ts +++ b/front/lib/api/assistant/configuration/websearch.ts @@ -4,7 +4,7 @@ import { Op } from "sequelize"; import { DEFAULT_WEBSEARCH_ACTION_NAME } from "@app/lib/api/assistant/actions/names"; import { AgentWebsearchConfiguration } from "@app/lib/models/assistant/actions/websearch"; -export async function fetchWebsearchActionsConfigurations({ +export async function fetchWebsearchActionConfigurations({ configurationIds, variant, }: {