feat: Add category and support contact fields to Agent schema and UI components

This commit is contained in:
“Praneeth 2025-05-22 11:57:03 +02:00
parent e86842fd19
commit c43a52b4c9
15 changed files with 581 additions and 11 deletions

View file

@ -177,6 +177,11 @@ export const defaultAgentFormValues = {
recursion_limit: undefined,
[Tools.execute_code]: false,
[Tools.file_search]: false,
category: 'general',
support_contact: {
name: '',
email: '',
},
};
export const ImageVisionTool: FunctionTool = {

View file

@ -1,4 +1,9 @@
import { Schema, Document, Types } from 'mongoose';
export interface ISupportContact {
name?: string;
email?: string;
}
export interface IAgent extends Omit<Document, 'model'> {
id: string;
name?: string;
@ -26,6 +31,8 @@ export interface IAgent extends Omit<Document, 'model'> {
conversation_starters?: string[];
tool_resources?: unknown;
projectIds?: Types.ObjectId[];
category: string;
support_contact?: ISupportContact;
}
const agentSchema = new Schema<IAgent>(