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§
- Tool
Parallel Plan Flags - Parallel-batch eligibility for one planned tool invocation.
Functions§
- caller_
allowed_ for_ tool - caller_
type_ for_ tool_ use - final_
tool_ input - Promote a streaming
ToolUseStateto a finalized JSON input. - format_
tool_ error - is_
mcp_ tool_ name - Whether
nameis dispatched through the MCP pool (vs. the nativeToolRegistry). Mirrors the body oftui::mcp::McpPool::is_mcp_toolso the core turn loop andMcpHostimplementations 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