delete_hosted_strategy
Delete a hosted strategy to stop automatic responses to intents in that category.
Instructions
删除托管策略。删除后不再自动响应该品类的意图。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strategy_id | Yes | 策略 ID |
Implementation Reference
- src/acap-client.ts:372-374 (handler)The actual implementation of deleteHostedStrategy in the AcapClient class. It sends a DELETE request to '/acap/v1/hosted/strategies/{strategyId}' to delete a hosted strategy.
async deleteHostedStrategy(strategyId: number) { return this.request('DELETE', `/acap/v1/hosted/strategies/${strategyId}`); } - src/index.ts:665-675 (schema)The tool registration/schema definition for 'delete_hosted_strategy', including its inputSchema which requires a strategy_id (number).
{ name: 'delete_hosted_strategy', description: '删除托管策略。删除后不再自动响应该品类的意图。', inputSchema: { type: 'object' as const, properties: { strategy_id: { type: 'number', description: '策略 ID' }, }, required: ['strategy_id'], }, }, - src/index.ts:147-149 (registration)Registration of 'delete_hosted_strategy' in the 'hosted_strategy' feature group, which controls whether this tool is enabled.
hosted_strategy: [ 'set_hosted_strategy', 'list_hosted_strategies', 'delete_hosted_strategy', ], - src/index.ts:1016-1020 (handler)The switch-case handler in the CallToolRequestSchema handler that parses the strategy_id argument and calls client.deleteHostedStrategy(strategy_id).
case 'delete_hosted_strategy': { const { strategy_id } = args as { strategy_id: number }; result = await client.deleteHostedStrategy(strategy_id); break; }