IAgentToolExecutorService (toolExecutor/toolExecutor.ts)

kimi-code · packages/agent-core-v2/src/agent/toolExecutor/toolExecutor.ts · typescript · MIT
ai

Interface for executing tool calls in agent framework.

// Source: https://github.com/MoonshotAI/kimi-code | License: MIT | Copyright 2026 Moonshot AI
// Provided via justclaw.it.com; keep this notice with the code.
import { createDecorator } from '#/_base/di/instantiation';
import type { IDisposable } from '#/_base/di/lifecycle';
import type { Event } from '#/_base/event';
import type { ToolResult } from '#/tool/toolContract';
import type {
  BeforeToolExecuteEvent,
  ToolDidExecuteContext,
  WillExecuteToolEvent,
} from '#/agent/toolExecutor/toolHooks';
import type { ToolCall } from '#human/llm/message';
import type { OrderedHookSlot } from '#/hooks';
import type { LLMRequestTrace } from '#/llm-adapter/contract/request-trace';
import type { ToolInputDisplay } from '#/tool/toolInputDisplay';
import type { ToolSource } from '#/tool/toolContract

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key