Fix find tool filters by mapping many-to-one relations to fieldId (#15716)
**Root Cause** Many-to-one relation filters were being exposed under the relation name (e.g., `company`) instead of the corresponding foreign-key attribute (e.g., `companyId`). **Change** - Detect many-to-one relation metadata and remap those filter keys to `<fieldName>Id`. - Removed some unused code unrelated to this fix.
This commit is contained in:
-1
@@ -9,7 +9,6 @@ export const DATA_MANIPULATOR_AGENT: StandardAgentDefinition = {
|
||||
'AI agent specialized in creating, updating, and managing data across all objects',
|
||||
icon: 'IconEdit',
|
||||
applicationId: null,
|
||||
createHandoffFromDefaultAgent: true,
|
||||
prompt: `You are a Data Manipulator Agent specialized in helping users create, update, and manage data in Twenty.
|
||||
|
||||
Your capabilities include:
|
||||
|
||||
-1
@@ -9,7 +9,6 @@ export const DATA_NAVIGATOR_AGENT: StandardAgentDefinition = {
|
||||
'AI agent specialized in exploring and reading data across all objects',
|
||||
icon: 'IconSearch',
|
||||
applicationId: null,
|
||||
createHandoffFromDefaultAgent: true,
|
||||
prompt: `You are a Data Navigator Agent specialized in helping users explore and understand their data in Twenty.
|
||||
|
||||
Your capabilities include:
|
||||
|
||||
-1
@@ -8,7 +8,6 @@ export const HELPER_AGENT: StandardAgentDefinition = {
|
||||
'AI agent specialized in helping users learn how to use Twenty CRM',
|
||||
icon: 'IconHelp',
|
||||
applicationId: null,
|
||||
createHandoffFromDefaultAgent: true,
|
||||
prompt: `You are a Helper Agent specialized in assisting users with questions about how to use Twenty CRM.
|
||||
|
||||
Your capabilities include:
|
||||
|
||||
-1
@@ -8,7 +8,6 @@ export const WORKFLOW_BUILDER_AGENT: StandardAgentDefinition = {
|
||||
description: 'AI agent specialized in creating and managing workflows',
|
||||
icon: 'IconSettingsAutomation',
|
||||
applicationId: null,
|
||||
createHandoffFromDefaultAgent: true,
|
||||
prompt: `You are a Workflow Builder Agent specialized in helping users create, modify, and manage workflows in Twenty.
|
||||
|
||||
Your capabilities include:
|
||||
|
||||
-2
@@ -6,6 +6,4 @@ export type StandardAgentDefinition = Omit<
|
||||
> & {
|
||||
standardId: string;
|
||||
standardRoleId?: string;
|
||||
// If true, creates a handoff from the default agent to this agent
|
||||
createHandoffFromDefaultAgent?: boolean;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user