Skip to main content

Module dispatch

Module dispatch 

Source
Expand description

Tool-input parsing and batch policy helpers (P2 PR4).

Types that tie to the live engine batch driver (ToolExecutionPlan, lock guards) remain in deepseek-runtime engine dispatch glue.

Structs§

ToolParallelPlanFlags
Parallel-batch eligibility for one planned tool invocation.

Functions§

caller_allowed_for_tool
caller_type_for_tool_use
final_tool_input
Promote a streaming ToolUseState to a finalized JSON input.
format_tool_error
is_mcp_tool_name
Whether name is dispatched through the MCP pool (vs. the native ToolRegistry). Mirrors the body of tui::mcp::McpPool::is_mcp_tool so the core turn loop and McpHost implementations can answer the same question without depending on the tui crate.
mcp_tool_approval_description
mcp_tool_is_parallel_safe
mcp_tool_is_read_only
parse_parallel_tool_calls
parse_tool_input_json
Parse streamed tool arguments (fences, segments, double-encoded JSON).
should_force_update_plan_first
should_parallelize_tool_batch
should_stop_after_plan_tool