Files
twenty/packages/twenty-server/src/engine/metadata-modules/flat-agent/constants/flat-agent-editable-properties.constant.ts
T
Paul Rastoin 59672e3e34 Migrate agent v2 (#16214)
# Introduction
Closes https://github.com/twentyhq/core-team-issues/issues/1980

In this PR we migrate the agent from v1 to v2.

## New FlatRoleTargetByAgentIdMaps
Derivated the `flatRoleTargetMaps` to be building a
`flatRoleTargetByAgentIdMaps` to ease retrieving a roleId to associate
to an agent

## Coverage
Added strong coverage on both failing and successful CRU agents
operations

---------

Co-authored-by: Weiko <corentin@twenty.com>
2025-12-03 11:51:19 +01:00

14 lines
325 B
TypeScript

import { type FlatAgent } from 'src/engine/metadata-modules/flat-agent/types/flat-agent.type';
export const FLAT_AGENT_EDITABLE_PROPERTIES = [
'name',
'label',
'icon',
'description',
'prompt',
'modelId',
'responseFormat',
'modelConfiguration',
'evaluationInputs',
] as const satisfies (keyof FlatAgent)[];