kazari-qwp/Nexarbor ↗★ 2

datanet-harness

提供数据与智能动态网络及业务协作组件 适合需要构建多节点网络结构和进行分布式业务协作的用户

套件
datanet-harness
相容性
待驗證
Harness 依賴範圍
>=0.2.0-rc.2 <0.3.0-0
版本
0.4.0
最近更新
2026年10月15日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:kazari-qwp/Nexarbor

方式一:使用当前 Harness 应用

当前提供Windows x64后端,已在DeepSeek Harness 0.2.0-rc.2环境验证。

  1. 准备客户端、模型服务与API配置。
  2. 从 v0.4.0 Release 下载 datanet-harness-0.4.0.tgz,导入客户端并启用插件。
  3. 配置 cordis.patch.yml 中的工作目录、存储位置与模型路线。
  4. 进入网络管理Skill,或直接使用网络管理工具创建节点及网络。

正式安装包通过 GitHub Releases 分发。源码仓库可按下方步骤构建,产物位于 build/datanet-harness-0.4.0.tgz;安装包和构建目录不提交 Git。

Agent循环、工具执行和会话由Harness原生运行时负责,织林组件负责网络结构与业务协作。模型配置与登录使用宿主客户端设置。

方式二:使用Python网络基础

在仓库根目录配置Python路径:

$env:PYTHONPATH = (Join-Path (Get-Location) "python")

下面的示例不调用模型:

from datanet.core.network import Network
from datanet.core.interface import Interface
from datanet.core.node import Node
from datanet.core.text_node import TextFileNode
from datanet.core.agent_node import AgentNode

network = Network()
source = Node("source", "访问起点", None)
data = TextFileNode("data", "数据节点", "text", "data.md")
data.write("content", "你好,织林", mode="upsert")
source.read_interfaces.append(Interface("data", visibility="public"))
network.add_node(source)
network.add_node(data)
network.add_node(AgentNode("worker", "Agent", file_path="worker-memory.md"))

result = network.read("source", {"method": "key", "key": "content"}, strength=1)
print(result.items)

Python建议使用3.11。基础图与访问协议使用标准库;组件依赖按启用能力准备,例如CSV节点需要pandas,LlamaIndex节点需要相应可选依赖。