mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-10-26 16:55:08 +00:00
2.2 KiB
2.2 KiB
kind, description
| kind | description |
|---|---|
| upgrade-guide | Tool execution modes move from dsh-tools configuration into explicit executor plugins. |
Mount a tool executor
English | 中文
Change
@deepseek-ai/dsh-tools keeps tool registration and executor selection, but no longer accepts mode or maxParallelSubCalls. Native and PTC execution require @deepseek-ai/dsh-tool-executor-native or @deepseek-ai/dsh-tool-executor-ptc. Shipped profiles mount an executor; custom compositions must add one. The existing dsh-agent-tool-presentation selector remains supported but is deprecated.
Migration
- Keep the
dsh-toolsrow and remove its execution configuration. Mount one native or PTC executor in the intended deployment or preset scope. For shipped profile patches, target the executor row instead of thetoolsrow. - Move
maxParallelSubCallsto the PTC executor configuration. PTC still requires a compatible runtime.agent-loop.maxParallelToolCallsand saved overrides stay in place with default10. The loop forwards the current limit to each batch; live edits apply to the next batch instead of the next tool group. - Custom executors implement
describeandexecute. Programmatic callers pass rawcallsandsignal, optionalagent, and optionallog: { turn, step }; read single-call outcomes fromresults. Omitlogoutside a committed model step. - Import PTC SDK renderers and
CodeRunFailedErrorfrom@deepseek-ai/dsh-tool-executor-ptc. Run a task with the selected interaction mode and confirm its tool results appear in the Session. - Import
ToolExecutionPipelineandexecuteToolBatchfrom@deepseek-ai/dsh-tools/pipeline. Complete calls, including single calls, use batches; custom schedulers callprepare,dispatch, andcompletedirectly. Add@deepseek-ai/dsh-tool-testkitas a development dependency for tool fixtures and import them from that package. Neither is exported by the tool registry entry. - Import
PtcDispatchLogfrom the PTC executor package usingimport type. Detached Session readers use@deepseek-ai/dsh-tool-executor-ptc/typesfor durable dispatch events. Live PTC policy and message-source declarations remain on the executor package entry.