mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-19 16:56:12 +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;
|
model_parameters: AgentModelParameters;
|
||||||
tools?: string[];
|
tools?: string[];
|
||||||
provider?: AgentProvider | OptionWithIcon;
|
provider?: AgentProvider | OptionWithIcon;
|
||||||
|
/** @deprecated Use edges instead */
|
||||||
agent_ids?: string[];
|
agent_ids?: string[];
|
||||||
edges?: GraphEdge[];
|
edges?: GraphEdge[];
|
||||||
[AgentCapabilities.artifacts]?: ArtifactModes | string;
|
[AgentCapabilities.artifacts]?: ArtifactModes | string;
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,7 @@ export const agentBaseSchema = z.object({
|
||||||
avatar: agentAvatarSchema.nullable().optional(),
|
avatar: agentAvatarSchema.nullable().optional(),
|
||||||
model_parameters: z.record(z.unknown()).optional(),
|
model_parameters: z.record(z.unknown()).optional(),
|
||||||
tools: z.array(z.string()).optional(),
|
tools: z.array(z.string()).optional(),
|
||||||
|
/** @deprecated Use edges instead */
|
||||||
agent_ids: z.array(z.string()).optional(),
|
agent_ids: z.array(z.string()).optional(),
|
||||||
edges: z.array(graphEdgeSchema).optional(),
|
edges: z.array(graphEdgeSchema).optional(),
|
||||||
end_after_tools: z.boolean().optional(),
|
end_after_tools: z.boolean().optional(),
|
||||||
|
|
|
||||||
|
|
@ -225,6 +225,7 @@ export type Agent = {
|
||||||
/** @deprecated Use ACL permissions instead */
|
/** @deprecated Use ACL permissions instead */
|
||||||
isCollaborative?: boolean;
|
isCollaborative?: boolean;
|
||||||
tool_resources?: AgentToolResources;
|
tool_resources?: AgentToolResources;
|
||||||
|
/** @deprecated Use edges instead */
|
||||||
agent_ids?: string[];
|
agent_ids?: string[];
|
||||||
edges?: GraphEdge[];
|
edges?: GraphEdge[];
|
||||||
end_after_tools?: boolean;
|
end_after_tools?: boolean;
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,7 @@ const agentSchema = new Schema<IAgent>(
|
||||||
end_after_tools: {
|
end_after_tools: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
},
|
},
|
||||||
|
/** @deprecated Use edges instead */
|
||||||
agent_ids: {
|
agent_ids: {
|
||||||
type: [String],
|
type: [String],
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ export interface IAgent extends Omit<Document, 'model'> {
|
||||||
authorName?: string;
|
authorName?: string;
|
||||||
hide_sequential_outputs?: boolean;
|
hide_sequential_outputs?: boolean;
|
||||||
end_after_tools?: boolean;
|
end_after_tools?: boolean;
|
||||||
|
/** @deprecated Use edges instead */
|
||||||
agent_ids?: string[];
|
agent_ids?: string[];
|
||||||
edges?: GraphEdge[];
|
edges?: GraphEdge[];
|
||||||
/** @deprecated Use ACL permissions instead */
|
/** @deprecated Use ACL permissions instead */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue