@mastra/core
Version:
25 lines • 1.15 kB
TypeScript
/**
* AgentSkillsResolver — resolves agent-level skills config into a WorkspaceSkills.
*
* Handles the split between path-based skills (resolved via LocalSkillSource)
* and inline skills (served from InlineSkillSource), producing a single
* WorkspaceSkillsImpl that the Agent can use for processor injection and tool creation.
*/
import type { WorkspaceSkills } from '../workspace/skills/types.js';
import type { SkillInput } from './types.js';
/**
* Resolve an array of SkillInput items into a WorkspaceSkills instance.
*
* @param skills - Array of path strings and/or inline skills
* @returns A WorkspaceSkills implementation ready for use by the Agent
*/
export declare function resolveAgentSkills(skills: SkillInput[]): WorkspaceSkills;
/**
* Merge two WorkspaceSkills instances by combining their skill lists.
* Agent-level skills take precedence on name conflicts (returned first in list).
*/
export declare function mergeWorkspaceSkills(agentSkills: WorkspaceSkills, workspaceSkills: WorkspaceSkills): Promise<{
merged: WorkspaceSkills;
agentSkillNames: Set<string>;
}>;
//# sourceMappingURL=agent-skills-resolver.d.ts.map