mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-24 12:20:14 +01:00
chore: Mark agent_ids field as deprecated in favor of edges across various schemas and types
This commit is contained in:
parent
317a5b5310
commit
cfffd43184
5 changed files with 5 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ export type AgentForm = {
|
|||
model_parameters: AgentModelParameters;
|
||||
tools?: string[];
|
||||
provider?: AgentProvider | OptionWithIcon;
|
||||
/** @deprecated Use edges instead */
|
||||
agent_ids?: string[];
|
||||
edges?: GraphEdge[];
|
||||
[AgentCapabilities.artifacts]?: ArtifactModes | string;
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ export const agentBaseSchema = z.object({
|
|||
avatar: agentAvatarSchema.nullable().optional(),
|
||||
model_parameters: z.record(z.unknown()).optional(),
|
||||
tools: z.array(z.string()).optional(),
|
||||
/** @deprecated Use edges instead */
|
||||
agent_ids: z.array(z.string()).optional(),
|
||||
edges: z.array(graphEdgeSchema).optional(),
|
||||
end_after_tools: z.boolean().optional(),
|
||||
|
|
|
|||
|
|
@ -225,6 +225,7 @@ export type Agent = {
|
|||
/** @deprecated Use ACL permissions instead */
|
||||
isCollaborative?: boolean;
|
||||
tool_resources?: AgentToolResources;
|
||||
/** @deprecated Use edges instead */
|
||||
agent_ids?: string[];
|
||||
edges?: GraphEdge[];
|
||||
end_after_tools?: boolean;
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ const agentSchema = new Schema<IAgent>(
|
|||
end_after_tools: {
|
||||
type: Boolean,
|
||||
},
|
||||
/** @deprecated Use edges instead */
|
||||
agent_ids: {
|
||||
type: [String],
|
||||
},
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ export interface IAgent extends Omit<Document, 'model'> {
|
|||
authorName?: string;
|
||||
hide_sequential_outputs?: boolean;
|
||||
end_after_tools?: boolean;
|
||||
/** @deprecated Use edges instead */
|
||||
agent_ids?: string[];
|
||||
edges?: GraphEdge[];
|
||||
/** @deprecated Use ACL permissions instead */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue