Download packages/agent-core-v2/src/features/skill/skillFeature.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 699 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/features/skill/skillFeature.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/agent-core-v2/src/features/skill/skillFeature.ts
-
curl -L -o skillFeature.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/features/skill/skillFeature.ts
699 Bytes
| import { ScopeActivation } from '#/_base/di/instantiation'; | |
| import { Feature } from '#/features/feature'; | |
| import { registerFeature } from '#/features/featureRegistry'; | |
| import { AgentSkillService, IAgentSkillService } from './skillService'; | |
| import { ISkillTool } from './tools/skill'; | |
| import { SkillTool } from './tools/skillTool'; | |
| export class SkillFeature extends Feature { | |
| static override readonly name = 'skill'; | |
| constructor() { | |
| super(); | |
| this.contributeAgentService(IAgentSkillService, AgentSkillService, { | |
| activation: ScopeActivation.OnDemand, | |
| }); | |
| this.contributeTool(ISkillTool, SkillTool, { name: 'Skill', domain: 'skill' }); | |
| } | |
| } | |
| registerFeature(SkillFeature); | |