Skip to content

feat: Add AI Agent workflow action node #12650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 370 commits into from
Jun 22, 2025
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
370 commits
Select commit Hold shift + click to select a range
43a47ee
refactor(ai-agent): update WorkflowAiAgentActionInput type to include…
abdulrahmancodes Jun 16, 2025
a538fd0
refactor(ai-agent): replace model-related fields with agentId in Work…
abdulrahmancodes Jun 16, 2025
a84f3d4
add migration to create agent table with foreign key constraint
abdulrahmancodes Jun 16, 2025
9ac0bd0
refactor(ai-agent): consolidate model options into ALL_MODELS array w…
abdulrahmancodes Jun 16, 2025
61f231d
install @ai-sdk/anthropic
abdulrahmancodes Jun 16, 2025
6a6e9a4
add AgentDTO for GraphQL integration with validation and authorization
abdulrahmancodes Jun 16, 2025
62cdaeb
create AgentEntity model for database representation of agents
abdulrahmancodes Jun 16, 2025
7e132b3
add DTOs for agent operations: CreateAgentInput, UpdateAgentInput, an…
abdulrahmancodes Jun 16, 2025
57e4648
implement AgentExecutionService for executing agents with model valid…
abdulrahmancodes Jun 16, 2025
9e9213b
add utility function to infer Zod schema from example objects for dyn…
abdulrahmancodes Jun 16, 2025
e08aade
implement AI agent execution in AiAgentWorkflowAction, including agen…
abdulrahmancodes Jun 16, 2025
04a9d88
enhance ai-agent module: integrate TypeOrmModule and AgentModule for …
abdulrahmancodes Jun 16, 2025
a95ef67
implement AI agent creation and deletion in WorkflowVersionStepWorksp…
abdulrahmancodes Jun 16, 2025
3717178
import AgentModule in WorkflowVersionStepModule to enhance workflow s…
abdulrahmancodes Jun 16, 2025
c4eaf46
implement AgentService for managing agents, including creation, retri…
abdulrahmancodes Jun 16, 2025
5c9c172
Add AgentResolver for GraphQL API, implementing queries and mutations…
abdulrahmancodes Jun 16, 2025
88f902d
Add AgentModule to encapsulate agent-related services and entities, i…
abdulrahmancodes Jun 16, 2025
3bcfeee
Add AgentException class and enum for handling agent-related errors
abdulrahmancodes Jun 16, 2025
09b57f4
Import AgentModule into MetadataEngineModule to integrate agent-relat…
abdulrahmancodes Jun 16, 2025
00e1a1f
generate GraphQL schema for Agent
abdulrahmancodes Jun 16, 2025
7814a11
Add GraphQL queries and mutations for agent management, including upd…
abdulrahmancodes Jun 16, 2025
0d9c988
Refactor WorkflowEditActionAiAgent component to utilize new agent upd…
abdulrahmancodes Jun 16, 2025
6d548e5
Update AI agent model constants to include new OpenAI and Anthropic m…
abdulrahmancodes Jun 16, 2025
9b6da6d
Remove feature flag checks from AgentService methods
abdulrahmancodes Jun 17, 2025
960f8dd
Add FeatureFlagModule to workflow API and resolvers; implement AI fea…
abdulrahmancodes Jun 17, 2025
ca4b4fa
use filtered actions based on feature flag; add useFilteredOtherActio…
abdulrahmancodes Jun 17, 2025
143d347
Remove unused useAiAgentForm hook
abdulrahmancodes Jun 17, 2025
3aa9098
Enhance WorkflowVersionStepWorkspaceService to include AI_AGENT in Ou…
abdulrahmancodes Jun 17, 2025
619b28c
Implement response format handling in WorkflowEditActionAiAgent compo…
abdulrahmancodes Jun 17, 2025
d5daed5
Update AI agent model in WorkflowVersionStepWorkspaceService to use '…
abdulrahmancodes Jun 17, 2025
02fac2b
Update AI agent model in WorkflowVersionStepWorkspaceService to 'gpt-4o'
abdulrahmancodes Jun 17, 2025
b9f9f0a
Remove existing agent check in AgentService to streamline agent creat…
abdulrahmancodes Jun 17, 2025
ca92ae5
Refactor loading state handling in WorkflowEditActionAiAgent componen…
abdulrahmancodes Jun 17, 2025
48ee658
Add unique key to FormTextFieldInput in WorkflowEditActionAiAgent com…
abdulrahmancodes Jun 17, 2025
d8dee2c
Update key generation for FormTextFieldInput in WorkflowEditActionAiA…
abdulrahmancodes Jun 17, 2025
e600a28
Remove HTTP_REQUEST case from getActionIconColorOrThrow function to s…
abdulrahmancodes Jun 17, 2025
7d436ba
Remove deprecated AI SDK dependencies from yarn.lock to streamline pa…
abdulrahmancodes Jun 17, 2025
817807f
Refactor AgentExecutionService to remove dependency on TwentyConfigSe…
abdulrahmancodes Jun 17, 2025
aa2dfb4
Fix syntax error in CreateAgentTable migration by correcting response…
abdulrahmancodes Jun 17, 2025
d21c5f0
Remove existing agent name validation in AgentService to simplify age…
abdulrahmancodes Jun 17, 2025
41200bb
rename inferZodSchemaFromExample to inferZodSchemaFromExampleResponse
abdulrahmancodes Jun 17, 2025
7781430
Update key generation in WorkflowEditActionAiAgent component to use m…
abdulrahmancodes Jun 17, 2025
0c8ed21
Enhance agent execution by adding context parameter to executeAgent m…
abdulrahmancodes Jun 17, 2025
9205790
Update labels and placeholders in WorkflowEditActionAiAgent component…
abdulrahmancodes Jun 17, 2025
83a7735
Remove foreign key constraint from agent table migration to simplify …
abdulrahmancodes Jun 17, 2025
dbf0f17
Add index on agent table for improved query performance
abdulrahmancodes Jun 17, 2025
4d2b976
Add foreign key constraint to agent table for workspace relationship …
abdulrahmancodes Jun 17, 2025
d18df96
Refactor AgentExecutionService to remove agent repository dependency,…
abdulrahmancodes Jun 17, 2025
e9227c1
Refactor executeAgent method in AgentExecutionService to streamline p…
abdulrahmancodes Jun 17, 2025
63d96af
Refactor getModel method in AgentExecutionService to support multiple…
abdulrahmancodes Jun 17, 2025
b849145
Improve error message for AI feature availability in WorkflowStepReso…
abdulrahmancodes Jun 17, 2025
bcb497a
Remove unused GraphQL mutations and queries for agent actions, updati…
abdulrahmancodes Jun 17, 2025
df6f306
Refactor inferZodSchemaFromExampleResponse utility to accept a more g…
abdulrahmancodes Jun 17, 2025
65fd055
Revert "Remove unused GraphQL mutations and queries for agent actions…
abdulrahmancodes Jun 17, 2025
d3a6680
Update foreign key constraint name in agent table migration for consi…
abdulrahmancodes Jun 17, 2025
c126a16
Rename GraphQL mutation and query for agent actions to improve clarit…
abdulrahmancodes Jun 17, 2025
4cd566e
Remove unused dependencies from AgentService
abdulrahmancodes Jun 17, 2025
0a1a989
Revert "Add foreign key constraint to agent table for workspace relat…
abdulrahmancodes Jun 17, 2025
ca754e8
Refactor WorkflowStepDetail component to consolidate unreachable asse…
abdulrahmancodes Jun 18, 2025
fd8c0ff
add agent table with workspace foreign key constraint
abdulrahmancodes Jun 18, 2025
0ae42cc
Add validation decorators to model field in CreateAgentInput DTO for …
abdulrahmancodes Jun 18, 2025
6a5403c
Add validation decorator to responseFormat field in CreateAgentInput …
abdulrahmancodes Jun 18, 2025
6434a9f
Add validation decorators to model and responseFormat fields in Updat…
abdulrahmancodes Jun 18, 2025
f1a84d9
Add FeatureFlagGuard and RequireFeatureFlag decorator to agent and se…
abdulrahmancodes Jun 18, 2025
59109dc
fix(): captcha refresh after signup (#12598)
AMoreaux Jun 13, 2025
65f32ee
803 timebox improve the ux when creating a new step (#12599)
martmull Jun 13, 2025
ee91e38
Delete changelog directory (#12612)
FelixMalfait Jun 15, 2025
549832a
Move the viewport of the workflow visualizer on the show page when si…
Devessier Jun 16, 2025
5ccef64
fix: correct inverted permission checks for create buttons (fix #1258…
josephj Jun 16, 2025
25a9305
avoid nullable values (#12606)
guillim Jun 16, 2025
08159ab
Fixes on side panel closing and table rows and board cards activation…
bosiraphael Jun 16, 2025
1b3dbbe
Improved date filter input behavior (#12596)
lucasbordeau Jun 16, 2025
c854603
[permissions] Fix rest api (#12608)
ijreilly Jun 16, 2025
cc47ce9
feat: add short number formatting option to number field (#12613)
omarNaifer12 Jun 16, 2025
daa5f1c
i18n - translations (#12620)
github-actions[bot] Jun 16, 2025
2d4f611
[permissions] Writing permission does not go without reading permissi…
ijreilly Jun 16, 2025
abbf437
1031 workflows menu fixes (#12618)
martmull Jun 16, 2025
ca4b357
Search action - Add variables to select and relations + other fixes (…
thomtrp Jun 16, 2025
64a21c3
update billing prices display (#12622)
etiennejouan Jun 16, 2025
b05a7d1
i18n - translations (#12625)
github-actions[bot] Jun 16, 2025
42a98af
Improve VariableChip design (#12610)
Devessier Jun 16, 2025
5d4023a
fix: move icon state update to useEffect in ObjectOptionsDropdownMenu…
AjayAdsule Jun 16, 2025
9d663a2
Enable multiple row selection with Shift + checkbox click (#12492)
omarNaifer12 Jun 16, 2025
ff6be71
Fix side panel closing when clicking on workflow nodes or options (#1…
bosiraphael Jun 16, 2025
0be414c
download record sample - Import (#12489)
etiennejouan Jun 16, 2025
3a928fb
Fix inconsistent volume path in docker-compose.yml (#12479)
real-marty Jun 16, 2025
1cffbb8
Force close dropdown when using cmdK (#12506)
guillim Jun 16, 2025
12f811d
i18n - translations (#12630)
github-actions[bot] Jun 16, 2025
1c1aee3
Fix shortcuts inconsistencies (#12624)
bosiraphael Jun 16, 2025
b67ed6b
Created DropdownMenuInnerSelect and implemented it for filter dropdow…
lucasbordeau Jun 16, 2025
86001f5
Fix remaining field issues for find record action (#12628)
thomtrp Jun 16, 2025
ade0138
Remove actions when record deleted (#12633)
martmull Jun 16, 2025
cd56330
Fix typos in website README (#12641)
FelixMalfait Jun 16, 2025
ec76351
feat: Add Cursor background agent configuration with PostgreSQL and R…
FelixMalfait Jun 16, 2025
377b67e
Improve sync performances (#12639)
charlesBochet Jun 16, 2025
1c224af
Fix path typo for timeline repositories (#12640)
FelixMalfait Jun 16, 2025
eec3af2
Migrate cursor rules (#12646)
FelixMalfait Jun 17, 2025
35242ab
[permissions] allow checkoutSession if workspace is pending_creation …
ijreilly Jun 17, 2025
04f4eda
Display + edge icon on hover (#12635)
martmull Jun 17, 2025
785d8bf
BREAKING CHANGE: Fix broken support button (#12648)
charlesBochet Jun 17, 2025
a8b7c54
Harmonize filter and sort dropdown width (#12649)
lucasbordeau Jun 17, 2025
6b170b8
Enable find records action + Implement readonly (#12636)
thomtrp Jun 17, 2025
f2b91b4
Hide runs by default on workflow index view (#12652)
thomtrp Jun 17, 2025
79b7bcb
Import - Upsert on composite fields (#12615)
etiennejouan Jun 17, 2025
26a1dda
Fix icon button group design (#12656)
martmull Jun 17, 2025
7557a13
[permissions] Enable permissionsV2 in seeds (#12623)
ijreilly Jun 17, 2025
9fa98cf
Import - fix uuid field import (#12659)
etiennejouan Jun 17, 2025
e6c67ec
Set hotkey scope when navigating in side panel's history (#12634)
bosiraphael Jun 17, 2025
52bb6f3
Fixed single record picker missing dropdown separator (#12672)
lucasbordeau Jun 17, 2025
438dd61
Add basic UUID support to filters (#12676)
thomtrp Jun 17, 2025
922b1c3
Fix table loading (#12653)
charlesBochet Jun 17, 2025
85b5005
Improve seeds (#12675)
FelixMalfait Jun 17, 2025
8a04939
Deactivate workflow when deleted (#12677)
martmull Jun 17, 2025
1a0ced3
Fix linter on main
charlesBochet Jun 17, 2025
276adbf
Adjutment to the padding (#12619)
guillim Jun 17, 2025
5396599
fix(front): import missing fragment (#12678)
AMoreaux Jun 17, 2025
fc96f47
role settings various fixes + update role object level permission des…
Weiko Jun 17, 2025
d079a92
Fix readonly mode with permissions v2 for tables (#12617)
Weiko Jun 17, 2025
0f7bbce
i18n - translations (#12684)
github-actions[bot] Jun 17, 2025
1f99a7b
Fix "No results found" in record pickers (#12685)
lucasbordeau Jun 17, 2025
861f7b9
Removing trailing slashes (#12658)
guillim Jun 17, 2025
5081dba
catching better internal errors from google (#12663)
guillim Jun 17, 2025
b601b32
Fix single picker dropdown search filter (#12688)
lucasbordeau Jun 17, 2025
e2ec8a0
fixing index on relations (#12602)
guillim Jun 17, 2025
48bc082
Remove unused hook useSelectFilterFromViewBarFilterDropdown (#12687)
thomtrp Jun 17, 2025
a987856
Add delete role action (#12691)
Weiko Jun 17, 2025
13b6c17
i18n - translations (#12693)
github-actions[bot] Jun 17, 2025
28d0767
Fix banner z-index (#12683)
martmull Jun 18, 2025
62d8fd5
fix(admin-panel): prevent layout shift when toggling feature flags (#…
ehconitin Jun 18, 2025
11146ec
Onboarding - fix infinite loop (#12694)
etiennejouan Jun 18, 2025
53e4983
Import - Increase record import limit (#12627)
etiennejouan Jun 18, 2025
09772b1
i18n - translations (#12696)
github-actions[bot] Jun 18, 2025
132cffb
fix(signinup): several issues (#12698)
AMoreaux Jun 18, 2025
2fe84c4
fix missing trash x off icon (#12699)
Weiko Jun 18, 2025
255e72d
i18n - translations (#12701)
github-actions[bot] Jun 18, 2025
bdc9928
Fix user signup event (#12700)
FelixMalfait Jun 18, 2025
1a83b10
Fix table fetchMore flakyness (#12702)
charlesBochet Jun 18, 2025
102df4b
Fix authUser decorator usage (#12697)
martmull Jun 18, 2025
4e4b72f
[permissions] Adapt defaultPath to permissions (#12689)
ijreilly Jun 18, 2025
733cd15
[permissions] Filter tabs + registered actions according to permissio…
ijreilly Jun 18, 2025
2a9492e
Merge branch 'main' into feat/ai-agent-node
abdulrahmancodes Jun 18, 2025
8e33869
Add AI model DTO, entity, and service for billing module
abdulrahmancodes Jun 18, 2025
bebca72
Create migration for AI model table with initial data and enum type
abdulrahmancodes Jun 18, 2025
d11f8d5
Integrate AIModel and AIModelService into BillingModule
abdulrahmancodes Jun 18, 2025
66456f8
Add AI model integration to ClientConfig and ClientConfigService
abdulrahmancodes Jun 18, 2025
da67e94
Add AI model support to AiModule, including DTO, entity, and service.…
abdulrahmancodes Jun 18, 2025
218abe4
Refactor agent model handling to use modelId instead of model. Update…
abdulrahmancodes Jun 18, 2025
57a618a
Add AIModel import to TypeORMService for enhanced entity management
abdulrahmancodes Jun 18, 2025
bc9a114
Add AI model data to ClientConfigController tests and update model re…
abdulrahmancodes Jun 18, 2025
03be4c4
Update model reference in WorkflowVersionStepWorkspaceService to use …
abdulrahmancodes Jun 18, 2025
fae1aaa
Refactor AI agent handling to use modelId instead of model across com…
abdulrahmancodes Jun 18, 2025
819e1e0
Add AiModel type and update agent handling to use modelId in GraphQL …
abdulrahmancodes Jun 18, 2025
f598c5b
Create migration for AI model table with initial data and enum type
abdulrahmancodes Jun 19, 2025
3e1a11b
move migration to correct folder
abdulrahmancodes Jun 19, 2025
df09558
Add empty aiModels array to mockedClientConfig for initial setup
abdulrahmancodes Jun 19, 2025
b286664
Add AI models state management and integrate with ClientConfigProvide…
abdulrahmancodes Jun 19, 2025
9f27cc8
Refactor AI model selection in WorkflowEditActionAiAgent component to…
abdulrahmancodes Jun 19, 2025
369ebef
Add AIBillingService for cost calculation and billing integration in …
abdulrahmancodes Jun 19, 2025
32b5d79
Add unit tests for AIBillingService to validate cost calculation and …
abdulrahmancodes Jun 19, 2025
013388a
Update foreign key constraint name in CreateAgentTable migration for …
abdulrahmancodes Jun 19, 2025
c56883c
Update AIModel entity to define provider as an enum type with a speci…
abdulrahmancodes Jun 19, 2025
c025b8b
Add AIModelService dependency to ClientConfigService tests and valida…
abdulrahmancodes Jun 19, 2025
7c3860e
Refactor AgentExecutionService to streamline model retrieval by accep…
abdulrahmancodes Jun 19, 2025
5ca8ac4
Refactor validateApiKey method in AgentExecutionService to use a swit…
abdulrahmancodes Jun 19, 2025
804c9de
Refactor AgentIdInput and AgentDTO to replace IDField with Field deco…
abdulrahmancodes Jun 19, 2025
122560d
Fix deleteOneAgent method to use the correct agent ID for soft deleti…
abdulrahmancodes Jun 19, 2025
a399731
Add support for Anthropic API key in ConfigVariables and refactor Age…
abdulrahmancodes Jun 19, 2025
d01431b
Refactor return value in updateAgent method to return the updated age…
abdulrahmancodes Jun 19, 2025
e72007c
Update responseFormat field in CreateAgentInput to ensure it is non-n…
abdulrahmancodes Jun 19, 2025
12b760a
Replace generic error handling with AgentException in AgentExecutionS…
abdulrahmancodes Jun 19, 2025
032c0b7
Refactor responseFormat field across agent-related entities and servi…
abdulrahmancodes Jun 19, 2025
144598f
Enhance responseFormat handling in useAgentUpdateFormState hook by en…
abdulrahmancodes Jun 19, 2025
11239cc
Update responseFormat field to use JSON type in GraphQL schema and re…
abdulrahmancodes Jun 19, 2025
8972b7d
Update responseFormat field in agent-related DTOs and inputs to use G…
abdulrahmancodes Jun 19, 2025
a1c51f9
Merge branch 'main' into feat/ai-agent-node
abdulrahmancodes Jun 19, 2025
e9e5bc5
Remove unused AIModelService dependency from ClientConfigService test…
abdulrahmancodes Jun 19, 2025
aec7756
[permissions] Activate permissions V2 on new workspaces (#12731)
ijreilly Jun 19, 2025
d609428
Replace hotkey scopes by focus stack (Part 1 - Dropdowns and Side Pan…
bosiraphael Jun 19, 2025
9468116
Remove workflow feature flag (#12732)
thomtrp Jun 19, 2025
c23dc43
Fixed record pickers create new (#12705)
lucasbordeau Jun 19, 2025
a86e757
fix(): add loader on signup (#12714)
AMoreaux Jun 19, 2025
278e63e
0.60.0 upgrade commands (#12735)
prastoin Jun 19, 2025
aa8746a
Transform record phone field metadata (#12706)
prastoin Jun 19, 2025
5191821
12690-error-unknown-error-importing-calendar-events-reafcto-required …
guillim Jun 19, 2025
03fe060
Protect serverless migration metadata operations interacting with met…
prastoin Jun 19, 2025
e8f9aa7
Prevent workflows to be opened in side panel (#12738)
thomtrp Jun 19, 2025
482e6a9
Merge branch 'main' into feat/ai-agent-node
abdulrahmancodes Jun 19, 2025
3322605
Remove unused import of FeatureFlag in serverless function resolver
abdulrahmancodes Jun 19, 2025
63d7f39
simplify ai output schema input
abdulrahmancodes Jun 20, 2025
d283536
Remove inferZodSchemaFromExampleResponse utility function as it is no…
abdulrahmancodes Jun 20, 2025
3f019ee
Refactor WorkflowOutputSchemaBuilder to use uuid for field IDs and im…
abdulrahmancodes Jun 20, 2025
fde53fa
Update GraphQL types and database schema to make responseFormat optional
abdulrahmancodes Jun 20, 2025
634ecfa
Enhance WorkflowOutputFieldTypeSelector to accept dynamic dropdownId …
abdulrahmancodes Jun 20, 2025
8b97554
Add getFieldIcon utility to dynamically assign icons based on field t…
abdulrahmancodes Jun 20, 2025
2126b58
Update convertOutputSchemaToZod to use camelCase for field names in o…
abdulrahmancodes Jun 20, 2025
2ac2161
Add label to schema fields in useAiAgentOutputSchema hook for improve…
abdulrahmancodes Jun 20, 2025
34f7808
Refactor convertOutputSchemaToZod to remove camelCase transformation …
abdulrahmancodes Jun 20, 2025
af56b53
Add toggle icon to Boolean output field type in OUTPUT_FIELD_TYPE_OPT…
abdulrahmancodes Jun 20, 2025
3334e39
Add description field to output schema in WorkflowOutputSchemaBuilder
abdulrahmancodes Jun 20, 2025
40a1b22
Update output schema description in WorkflowOutputSchemaBuilder to cl…
abdulrahmancodes Jun 20, 2025
c225bcd
Refactor WorkflowEditActionAiAgent and useAgentUpdateFormState to str…
abdulrahmancodes Jun 20, 2025
d898bc1
Update placeholder text in WorkflowOutputSchemaBuilder for improved c…
abdulrahmancodes Jun 20, 2025
67e640d
Remove unused properties from useAgentUpdateFormState to streamline f…
abdulrahmancodes Jun 20, 2025
5a7d634
Refactor WorkflowOutput components to use InputSchemaPropertyType for…
abdulrahmancodes Jun 20, 2025
fb24a47
Remove WorkflowOutputFieldType definition to simplify output field ty…
abdulrahmancodes Jun 20, 2025
b24a97e
Refactor AgentExecutionService to use ModelProvider type for improved…
abdulrahmancodes Jun 20, 2025
d0e2a59
Update output schema type casting in WorkflowEditActionAiAgent for im…
abdulrahmancodes Jun 20, 2025
50e1dbb
Refactor cost calculation in AIBillingService to improve accuracy and…
abdulrahmancodes Jun 20, 2025
899b2a9
trigger deployment
abdulrahmancodes Jun 20, 2025
5697069
Refactor AI model management by removing AIModel entity and related f…
abdulrahmancodes Jun 21, 2025
eb18354
Remove unused AIModelService dependency from ClientConfigService test…
abdulrahmancodes Jun 21, 2025
1794750
Enhance AI model configuration by introducing AIModelConfig class and…
abdulrahmancodes Jun 21, 2025
9c819b0
Update GraphQL types to replace deprecated AiModel with AiModelConfig
abdulrahmancodes Jun 21, 2025
4e45664
Remove unused 'relations' property from AiAgentWorkflowAction to stre…
abdulrahmancodes Jun 21, 2025
ad082e7
format ai-model.utils.ts code
abdulrahmancodes Jun 21, 2025
9333fda
Update ClientConfigController tests to use ModelProvider for AI model…
abdulrahmancodes Jun 21, 2025
8c482dd
Refactor TokenUsage interface in AIBillingService to improve clarity …
abdulrahmancodes Jun 21, 2025
adfb98e
Merge branch 'main' into feat/ai-agent-node
abdulrahmancodes Jun 21, 2025
6360e2d
Remove unused BillingController import from billing.module.ts to stre…
abdulrahmancodes Jun 21, 2025
2a6b099
fix incorrect type issue
abdulrahmancodes Jun 21, 2025
6319956
Update aiModelsState to use AiModelConfig type instead of deprecated …
abdulrahmancodes Jun 21, 2025
c573555
Mock getActiveAIModels function in ClientConfigService tests to impro…
abdulrahmancodes Jun 21, 2025
d1209ee
Remove AI_TOKEN_USAGE, use WORKFLOW_NODE_RUN instead
abdulrahmancodes Jun 21, 2025
38beacb
Add dollar-to-credit multiplier constant and refactor AI billing serv…
abdulrahmancodes Jun 21, 2025
2460f3e
Refactor client configuration to use credits for AI model costs and a…
abdulrahmancodes Jun 21, 2025
4afd8ad
Refactor AIBillingService to simplify cost calculation by returning t…
abdulrahmancodes Jun 21, 2025
5c22f41
Refactor agent-execution.service.ts to replace string literals with M…
abdulrahmancodes Jun 21, 2025
5aae02e
Remove isDefault field from AI model configurations across multiple f…
abdulrahmancodes Jun 21, 2025
7cdb785
Remove isActive field from AI model configurations and related utilit…
abdulrahmancodes Jun 21, 2025
7ec1adc
Refactor AI model configurations to replace string modelId with Model…
abdulrahmancodes Jun 21, 2025
5f93f9a
Update GraphQL query in findOneAgent.ts to use UUID type for agent ID…
abdulrahmancodes Jun 21, 2025
eef6491
Update GraphQL schema to use UUID type for agent ID across multiple f…
abdulrahmancodes Jun 21, 2025
4b7c78c
Internationalize AI model labels and descriptions in WorkflowEditActi…
abdulrahmancodes Jun 21, 2025
15b98cb
Internationalize header title in useWorkflowActionHeader hook for imp…
abdulrahmancodes Jun 21, 2025
72491ae
Refactor client configuration to use ClientAIModelConfig for AI model…
abdulrahmancodes Jun 21, 2025
71421ed
Remove tests for non-existent AI model handling in AIBillingService, …
abdulrahmancodes Jun 21, 2025
a751a93
Add error handling for AI model selection in WorkflowEditActionAiAgen…
abdulrahmancodes Jun 21, 2025
5376944
Refactor AI model provider initialization in AgentExecutionService to…
abdulrahmancodes Jun 21, 2025
162b53e
Enhance type safety in ClientConfigController tests by importing Mode…
abdulrahmancodes Jun 21, 2025
d66df7c
Refactor AI model configuration types to use ClientAiModelConfig, enh…
abdulrahmancodes Jun 21, 2025
590fafa
Internationalize error message in WorkflowEditActionAiAgent component…
abdulrahmancodes Jun 21, 2025
8ea9030
trigger deployement
abdulrahmancodes Jun 21, 2025
52e491c
Update import path for ClientAiModelConfig in aiModelsState to use ge…
abdulrahmancodes Jun 22, 2025
22cba4c
Refactor conditional return in ClientConfigService to improve code re…
abdulrahmancodes Jun 22, 2025
3fbfacc
Remove isEnvOnly property from OpenAI and Anthropic API key configura…
abdulrahmancodes Jun 22, 2025
983a51f
rename ai-model.util.ts file
abdulrahmancodes Jun 22, 2025
2ac62d6
Refactor AI model configuration to replace 'displayName' with 'label'…
abdulrahmancodes Jun 22, 2025
8cb6952
Refactor useWorkflowActionHeader hook to simplify headerTitle assignm…
abdulrahmancodes Jun 22, 2025
dea67c0
Update ClientConfigController test to replace 'displayName' with 'lab…
abdulrahmancodes Jun 22, 2025
80590fb
Internationalize output field type labels in WorkflowOutputFieldTypeS…
abdulrahmancodes Jun 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions packages/twenty-front/src/generated-metadata/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,23 @@ export type AdminPanelWorkerQueueHealth = {
status: AdminPanelHealthServiceStatus;
};

export type Agent = {
__typename?: 'Agent';
createdAt: Scalars['DateTime']['output'];
description?: Maybe<Scalars['String']['output']>;
id: Scalars['UUID']['output'];
modelId: Scalars['String']['output'];
name: Scalars['String']['output'];
prompt: Scalars['String']['output'];
responseFormat?: Maybe<Scalars['JSON']['output']>;
updatedAt: Scalars['DateTime']['output'];
};

export type AgentIdInput = {
/** The id of the agent. */
id: Scalars['UUID']['input'];
};

export type Analytics = {
__typename?: 'Analytics';
/** Boolean that confirms query was dispatched */
Expand Down Expand Up @@ -320,8 +337,18 @@ export type CheckUserExistOutput = {
isEmailVerified: Scalars['Boolean']['output'];
};

export type ClientAiModelConfig = {
__typename?: 'ClientAIModelConfig';
displayName: Scalars['String']['output'];
inputCostPer1kTokensInCredits: Scalars['Float']['output'];
modelId: Scalars['String']['output'];
outputCostPer1kTokensInCredits: Scalars['Float']['output'];
provider: ModelProvider;
};

export type ClientConfig = {
__typename?: 'ClientConfig';
aiModels: Array<ClientAiModelConfig>;
analyticsEnabled: Scalars['Boolean']['output'];
api: ApiConfig;
authProviders: AuthProviders;
Expand Down Expand Up @@ -413,6 +440,14 @@ export type ConfigVariablesOutput = {
groups: Array<ConfigVariablesGroupData>;
};

export type CreateAgentInput = {
description?: InputMaybe<Scalars['String']['input']>;
modelId: Scalars['String']['input'];
name: Scalars['String']['input'];
prompt: Scalars['String']['input'];
responseFormat?: InputMaybe<Scalars['JSON']['input']>;
};

export type CreateAppTokenInput = {
expiresAt: Scalars['DateTime']['input'];
};
Expand Down Expand Up @@ -944,6 +979,11 @@ export enum MessageChannelVisibility {
SUBJECT = 'SUBJECT'
}

export enum ModelProvider {
ANTHROPIC = 'ANTHROPIC',
OPENAI = 'OPENAI'
}

export type Mutation = {
__typename?: 'Mutation';
activateWorkflowVersion: Scalars['Boolean']['output'];
Expand All @@ -957,6 +997,7 @@ export type Mutation = {
createDraftFromWorkflowVersion: WorkflowVersion;
createOIDCIdentityProvider: SetupSsoOutput;
createObjectEvent: Analytics;
createOneAgent: Agent;
createOneAppToken: AppToken;
createOneField: Field;
createOneObject: Object;
Expand All @@ -969,6 +1010,7 @@ export type Mutation = {
deleteApprovedAccessDomain: Scalars['Boolean']['output'];
deleteCurrentWorkspace: Workspace;
deleteDatabaseConfigVariable: Scalars['Boolean']['output'];
deleteOneAgent: Agent;
deleteOneField: Field;
deleteOneObject: Object;
deleteOneRemoteServer: RemoteServer;
Expand Down Expand Up @@ -1012,6 +1054,7 @@ export type Mutation = {
unsyncRemoteTable: RemoteTable;
updateDatabaseConfigVariable: Scalars['Boolean']['output'];
updateLabPublicFeatureFlag: FeatureFlagDto;
updateOneAgent: Agent;
updateOneField: Field;
updateOneObject: Object;
updateOneRemoteServer: RemoteServer;
Expand Down Expand Up @@ -1093,6 +1136,11 @@ export type MutationCreateObjectEventArgs = {
};


export type MutationCreateOneAgentArgs = {
input: CreateAgentInput;
};


export type MutationCreateOneAppTokenArgs = {
input: CreateOneAppTokenInput;
};
Expand Down Expand Up @@ -1148,6 +1196,11 @@ export type MutationDeleteDatabaseConfigVariableArgs = {
};


export type MutationDeleteOneAgentArgs = {
input: AgentIdInput;
};


export type MutationDeleteOneFieldArgs = {
input: DeleteOneFieldInput;
};
Expand Down Expand Up @@ -1339,6 +1392,11 @@ export type MutationUpdateLabPublicFeatureFlagArgs = {
};


export type MutationUpdateOneAgentArgs = {
input: UpdateAgentInput;
};


export type MutationUpdateOneFieldArgs = {
input: UpdateOneFieldMetadataInput;
};
Expand Down Expand Up @@ -1655,8 +1713,10 @@ export type Query = {
field: Field;
fields: FieldConnection;
findDistantTablesWithStatus: Array<RemoteTable>;
findManyAgents: Array<Agent>;
findManyRemoteServersByType: Array<RemoteServer>;
findManyServerlessFunctions: Array<ServerlessFunction>;
findOneAgent: Agent;
findOneRemoteServerById: RemoteServer;
findOneServerlessFunction: ServerlessFunction;
findWorkspaceFromInviteHash: Workspace;
Expand Down Expand Up @@ -1726,6 +1786,11 @@ export type QueryFindManyRemoteServersByTypeArgs = {
};


export type QueryFindOneAgentArgs = {
input: AgentIdInput;
};


export type QueryFindOneRemoteServerByIdArgs = {
input: RemoteServerIdInput;
};
Expand Down Expand Up @@ -2280,6 +2345,15 @@ export type UuidFilterComparison = {
notLike?: InputMaybe<Scalars['UUID']['input']>;
};

export type UpdateAgentInput = {
description?: InputMaybe<Scalars['String']['input']>;
id: Scalars['UUID']['input'];
modelId: Scalars['String']['input'];
name: Scalars['String']['input'];
prompt: Scalars['String']['input'];
responseFormat?: InputMaybe<Scalars['JSON']['input']>;
};

export type UpdateFieldInput = {
defaultValue?: InputMaybe<Scalars['JSON']['input']>;
description?: InputMaybe<Scalars['String']['input']>;
Expand Down
Loading
Loading