Download packages/agent-core-v2/src/agent/userTool/userTool.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 722 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/agent/userTool/userTool.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/agent-core-v2/src/agent/userTool/userTool.ts
-
curl -L -o userTool.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/agent/userTool/userTool.ts
722 Bytes
| import { createDecorator } from '#/_base/di/instantiation'; | |
| import type { ToolDisclosure } from '#/tool/toolContract'; | |
| export interface UserToolRegistration { | |
| readonly name: string; | |
| readonly description: string; | |
| readonly parameters: Record<string, unknown>; | |
| readonly disclosure?: ToolDisclosure; | |
| } | |
| export interface IAgentUserToolService { | |
| readonly _serviceBrand: undefined; | |
| list(): readonly UserToolRegistration[]; | |
| inheritUserTools( | |
| parent: IAgentUserToolService, | |
| activeToolNames?: readonly string[], | |
| ): void; | |
| register(input: UserToolRegistration): void; | |
| unregister(name: string): void; | |
| } | |
| export const IAgentUserToolService = createDecorator<IAgentUserToolService>('agentUserToolService'); | |