mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-23 10:54:11 +01:00
feat: Add category and support contact fields to Agent schema and UI components
This commit is contained in:
parent
e86842fd19
commit
c43a52b4c9
15 changed files with 581 additions and 11 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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>(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue