feat: Add support for agent handoffs with edges in agent forms and schemas

This commit is contained in:
Danny Avila 2025-09-03 21:15:31 -04:00
parent e705b09280
commit 317a5b5310
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
12 changed files with 406 additions and 3 deletions

View file

@ -71,6 +71,10 @@ const agentSchema = new Schema<IAgent>(
agent_ids: {
type: [String],
},
edges: {
type: [{ type: Schema.Types.Mixed }],
default: [],
},
isCollaborative: {
type: Boolean,
default: undefined,

View file

@ -1,4 +1,5 @@
import { Document, Types } from 'mongoose';
import type { GraphEdge } from 'librechat-data-provider';
export interface ISupportContact {
name?: string;
@ -28,6 +29,7 @@ export interface IAgent extends Omit<Document, 'model'> {
hide_sequential_outputs?: boolean;
end_after_tools?: boolean;
agent_ids?: string[];
edges?: GraphEdge[];
/** @deprecated Use ACL permissions instead */
isCollaborative?: boolean;
conversation_starters?: string[];