Download packages/agent-core-v2/src/agent/toolSelect/flag.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 692 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/agent/toolSelect/flag.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/agent-core-v2/src/agent/toolSelect/flag.ts
-
curl -L -o flag.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/agent/toolSelect/flag.ts
692 Bytes
| import { type FlagDefinitionInput, registerFlagDefinition } from '#/app/flag/flagRegistry'; | |
| export const TOOL_SELECT_FLAG_ID = 'tool-select'; | |
| export const TOOL_SELECT_FLAG_ENV = 'KIMI_CODE_EXPERIMENTAL_TOOL_SELECT'; | |
| export const toolSelectFlag: FlagDefinitionInput = { | |
| id: TOOL_SELECT_FLAG_ID, | |
| title: 'Tool select (progressive tool disclosure)', | |
| description: | |
| 'Keep MCP tool schemas out of the immutable top-level tools[]; the model loads them on demand via the select_tools tool. Only takes effect on models whose capability catalog declares dynamically loaded tools.', | |
| env: TOOL_SELECT_FLAG_ENV, | |
| default: false, | |
| surface: 'core', | |
| }; | |
| registerFlagDefinition(toolSelectFlag); | |