Download packages/agent-core-v2/src/features/usage/usageFeature.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 687 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/features/usage/usageFeature.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/agent-core-v2/src/features/usage/usageFeature.ts
-
curl -L -o usageFeature.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/features/usage/usageFeature.ts
687 Bytes
| import { LifecycleScope } from '#/app/scopes'; | |
| import { Feature } from '#/features/feature'; | |
| import { registerFeature } from '#/features/featureRegistry'; | |
| import { ISessionUsageService } from '#/session/usage/sessionUsage'; | |
| import { SessionUsageService } from '#/session/usage/sessionUsageService'; | |
| import { UsageAgentModelDefinition } from '#/session/usage/usageAgentModel'; | |
| export class UsageFeature extends Feature { | |
| static override readonly name = 'usage'; | |
| constructor() { | |
| super(); | |
| this.contributeAgentModel(UsageAgentModelDefinition); | |
| this.contributeService(LifecycleScope.Session, ISessionUsageService, SessionUsageService); | |
| } | |
| } | |
| registerFeature(UsageFeature); | |