mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-31 17:03:24 +00:00
🧭 feat: Scope Model Spec Skills (#13522)
* feat: scope model spec skills * style: format skill catalog limit * fix: serialize model spec skill resolution * test: satisfy model spec load config typing * fix: apply model spec skills to added conversations * fix: support alwaysApply frontmatter alias * fix: address model spec skills review
This commit is contained in:
parent
3fb48021f7
commit
6357ea10c1
28 changed files with 1398 additions and 139 deletions
|
|
@ -572,6 +572,11 @@ export const agentsEndpointSchema = baseEndpointSchema
|
|||
.array(z.nativeEnum(AgentCapabilities))
|
||||
.optional()
|
||||
.default(defaultAgentCapabilities),
|
||||
skills: z
|
||||
.object({
|
||||
maxCatalogSkills: z.number().int().min(1).max(100).optional(),
|
||||
})
|
||||
.optional(),
|
||||
remoteApi: remoteApiSchema.optional(),
|
||||
}),
|
||||
)
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ export type TModelSpec = {
|
|||
executeCode?: boolean;
|
||||
artifacts?: string | boolean;
|
||||
mcpServers?: string[];
|
||||
skills?: boolean | string[];
|
||||
};
|
||||
|
||||
export const tModelSpecSchema = z.object({
|
||||
|
|
@ -60,6 +61,7 @@ export const tModelSpecSchema = z.object({
|
|||
executeCode: z.boolean().optional(),
|
||||
artifacts: z.union([z.string(), z.boolean()]).optional(),
|
||||
mcpServers: z.array(z.string()).optional(),
|
||||
skills: z.union([z.boolean(), z.array(z.string())]).optional(),
|
||||
});
|
||||
|
||||
export const specsConfigSchema = z.object({
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@ export type TCreateSkill = {
|
|||
body: string;
|
||||
frontmatter?: Partial<SkillFrontmatter>;
|
||||
category?: string;
|
||||
/** When `true`, the skill auto-primes into every turn (mirrors `always-apply` frontmatter). */
|
||||
/** When `true`, the skill auto-primes into every turn (mirrors always-apply frontmatter). */
|
||||
alwaysApply?: boolean;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue