Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
flvndvd committed Aug 9, 2024
1 parent 8dcec49 commit b0c7c8d
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
24 changes: 12 additions & 12 deletions front/lib/api/assistant/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion front/lib/api/assistant/configuration/browse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}: {
Expand Down
2 changes: 1 addition & 1 deletion front/lib/api/assistant/configuration/dust_app_run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}: {
Expand Down
2 changes: 1 addition & 1 deletion front/lib/api/assistant/configuration/process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}: {
Expand Down
2 changes: 1 addition & 1 deletion front/lib/api/assistant/configuration/retrieval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}: {
Expand Down
2 changes: 1 addition & 1 deletion front/lib/api/assistant/configuration/table_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
AgentTablesQueryConfigurationTable,
} from "@app/lib/models/assistant/actions/tables_query";

export async function fetchTableQueryActionsConfigurations({
export async function fetchTableQueryActionConfigurations({
configurationIds,
variant,
}: {
Expand Down
2 changes: 1 addition & 1 deletion front/lib/api/assistant/configuration/websearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}: {
Expand Down

0 comments on commit b0c7c8d

Please sign in to comment.