Files
deepseek-harness/scripts/snapshots/python-sdk-single-exe/dynamic-tools/tool-history.json
T
yudshj 50ba635949 feat(office): Office 操作改为常驻的原生 office 工具
- 新包 @deepseek-ai/dsh-tool-office 提供常驻的 office 工具(render / convert / recalculate),由 office-kit 在 Host 中直接调用 Kit 的 JS API;标准模式与 PTC 通过同一个工具调用
- render 的页面图片直接进入工具结果(有数量、像素与字节上限);convert / recalculate 的结果写入 office-kit 按 Session 划分的私有输出目录,由模型用 shell 复制到工作区,fs 与 Host 代码不写用户工作区
- 删除为 shell 执行 Kit CLI 而存在的代码:skill-office 的 node / cli / kitRoot、resolveKitCli、DSH_BUNDLED_OFFICE_CLI / DSH_BUNDLED_OFFICE_NODE / DSH_BUNDLED_RUNTIME_ROOT 与 Electron 下的独立 Node 检查;打包 smoke 改为经 office-kit 真实渲染、转换与重算
- office 由 web-app 的 standard / ptc 预设与 sdk-app 挂载,minimal 不挂载;操作技能正文与目录描述指向 office 工具
- 新增 Agent Note,部分取代 progressive-office-skills 的 shell 执行决定;同步 README、子系统页、catalog 与升级指南(含已保存预设的迁移步骤)

本 PR 的 snapshot 统一在这个提交里重新生成,前 4 个提交中的 snapshot 不一定和那一步的代码对应。
2026-11-04 18:17:58 +08:00

276 lines
6.0 KiB
JSON

{
"finalResponse": "DYNAMIC_TOOLS_OK",
"declarations": [
null,
{
"name": "snapshot_ping",
"description": "Return pong once.",
"input_schema": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"defer_loading": true
},
null
],
"requestToolChanges": [
[],
[
{
"type": "tool_addition",
"tool": {
"type": "tool_reference",
"name": "snapshot_ping"
}
}
],
[]
],
"events": [
{
"type": "request/header",
"seq": 12,
"time": 0,
"data": {
"header": {
"config": {
"provider": "deepseek-official",
"model": "smoke-model",
"maxTokens": 256000,
"reasoningEffort": "high"
},
"adapterDefaults": {
"reasoningEffort": true,
"maxTokens": true
},
"tools": [
"apply_patch",
"ask_user_question",
"create_goal",
"edit",
"get_goal",
"glob",
"grep",
"interrupt_agent",
"job_kill",
"job_list",
"job_output",
"list_agents",
"office",
"plugin_manager",
"present",
"read",
"read_image",
"schedule_create",
"schedule_edit",
"schedule_list",
"schedule_view",
"send_message",
"skill",
"subagent",
"subagent_fork",
"todo_write",
"update_goal",
"wait_agent",
"web_fetch",
"web_search",
"workflow",
"working_directory",
"write"
]
},
"reason": "initial"
}
},
{
"type": "request/context",
"seq": 13,
"time": 0,
"data": {
"provider": "deepseek-official",
"model": "smoke-model",
"contextWindow": 1000000
}
},
{
"type": "request/header",
"seq": 20,
"time": 0,
"data": {
"header": {
"config": {
"provider": "deepseek-official",
"model": "smoke-model",
"maxTokens": 256000,
"reasoningEffort": "high"
},
"adapterDefaults": {
"reasoningEffort": true,
"maxTokens": true
},
"tools": [
"apply_patch",
"ask_user_question",
"create_goal",
"edit",
"get_goal",
"glob",
"grep",
"interrupt_agent",
"job_kill",
"job_list",
"job_output",
"list_agents",
"office",
"plugin_manager",
"present",
"read",
"read_image",
"schedule_create",
"schedule_edit",
"schedule_list",
"schedule_view",
"send_message",
"skill",
"snapshot_ping",
"subagent",
"subagent_fork",
"todo_write",
"update_goal",
"wait_agent",
"web_fetch",
"web_search",
"workflow",
"working_directory",
"write"
]
},
"reason": "change"
}
},
{
"type": "developer/message",
"seq": 21,
"time": 0,
"data": {
"turn": 1,
"step": 2,
"message": {
"source": {
"kind": "tool-registry"
},
"content": [
{
"type": "tool-addition",
"toolName": "snapshot_ping"
}
],
"role": "developer",
"id": "{{messageId}}"
},
"headerSeq": "{{header:2}}"
},
"surfaceOp": "append"
},
{
"type": "request/header",
"seq": 27,
"time": 0,
"data": {
"header": {
"config": {
"provider": "deepseek-official",
"model": "smoke-model",
"maxTokens": 256000,
"reasoningEffort": "high"
},
"adapterDefaults": {
"reasoningEffort": true,
"maxTokens": true
},
"tools": [
"apply_patch",
"ask_user_question",
"create_goal",
"edit",
"get_goal",
"glob",
"grep",
"interrupt_agent",
"job_kill",
"job_list",
"job_output",
"list_agents",
"office",
"plugin_manager",
"present",
"read",
"read_image",
"schedule_create",
"schedule_edit",
"schedule_list",
"schedule_view",
"send_message",
"skill",
"subagent",
"subagent_fork",
"todo_write",
"update_goal",
"wait_agent",
"web_fetch",
"web_search",
"workflow",
"working_directory",
"write"
]
},
"reason": "change"
}
},
{
"type": "developer/message",
"seq": 28,
"time": 0,
"data": {
"turn": 1,
"step": 3,
"message": {
"source": {
"kind": "tool-registry"
},
"content": [
{
"type": "tool-removal",
"toolName": "snapshot_ping"
}
],
"role": "developer",
"id": "{{messageId}}"
}
},
"surfaceOp": "append"
}
],
"toolCalls": [
"read",
"snapshot_ping"
],
"pingResult": {
"role": "tool",
"source": {
"kind": "tool",
"callId": "python-dynamic-ping"
},
"toolCallId": "python-dynamic-ping",
"content": [
{
"type": "text",
"text": "pong"
}
],
"isError": false,
"id": "{{messageId}}"
}
}