dshbase

Plugin directory / Developer / dsh-maf

dsh-maf

Verified · install-tested on dsh WODE25500

✓ Actively maintained Builds on 2 official DSH packages

View on GitHub ↗ ← Back to plugin directory

0Stars
0Forks
0Open issues
—Language
2026-08-20Last push
Cross-platformPlatform

What it does

Microsoft Agent Framework (MAF) 的 DeepSeek Harness 插件 — 验证/运行/搭建 declarative agents 与 workflows(YAML)

✅
Our take
Works — verified, early-stage project

Microsoft Agent Framework (MAF) 的 DeepSeek Harness 插件 — 验证/运行/搭建 declarative agents 与 workflows(YAML) It installs cleanly and boots without issues in our testing. It's early-stage but functional.

“Verified” means our automated CI actually ran dsh plugin add in a clean profile and it booted — nothing more. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.

README

dsh-maf

Microsoft Agent Framework (MAF) 的 DeepSeek Harness (dsh) 插件 —— 让 dsh 智能体验证、运行和搭建
MAF 的 declarative agents / workflows(YAML 声明式定义)。

独立社区项目,非官方。基于 microsoft/agent-framework(MIT)。
MAF 是 Semantic Kernel 的企业级继任者(v1.0 已发布)。

为什么做

MAF(13k★,Python/.NET)是微软当前的 agent 编排框架,没有 DSH 适配。它的核心是
YAML 声明式 agent/workflow——正好适合 agent 生成、验证和运行:

工具 行为
maf_status MAF 包版本 + 环境检查
maf_validate 校验 declarative agent YAML(AgentFactory 解析)
maf_run_agent 运行 declarative agent(YAML + prompt)
maf_run_workflow 运行 declarative workflow sample(main.py)
maf_scaffold 生成 agent/workflow YAML 模板

前置要求

pip install agent-framework agent-framework-declarative python-dotenv

Agent YAML 的 model.id 常引用环境变量(=Env.OPENAI_CHAT_MODEL_ID),
运行前配置好 .env / 环境变量(provider 密钥)。

安装

# profile 的 cordis.patch.yml
- insert:
    - id: maf
      name: './src/index.js'
      config:
        pythonCmd: python
        enginePath: scripts/maf.py
pnpm dsh web --patch ./dsh-maf/cordis.patch.yml

然后问 agent:"maf_status 检查环境,maf_validate 校验 ./agents/Assistant.yaml"。

引擎实现

scripts/maf.py 包装 MAF SDK:

  • AgentFactory(safe_mode=False).create_agent_from_yaml_path(path) → await agent.run(prompt)
  • workflow 用 python main.py 标准 sample 布局(workflow.yaml + main.py)

配置项

键 默认 说明
pythonCmd python Python 解释器
enginePath scripts/maf.py 引擎脚本路径
timeoutMs 180000 单次调用超时(agent 运行可能较慢)

已知限制

  • maf_run_agent / maf_run_workflow 消耗配置的 provider API 额度
  • declarative agents API 官方标注为 experimental(可能变动)
  • 输出原样返回(含模型生成内容)

目录结构

dsh-maf/
  src/index.js            # 5 个工具 + 配置
  scripts/maf.py          # MAF SDK 引擎(status/validate/run/scaffold)
  skills/maf/SKILL.md
  docs/
  cordis.patch.yml

许可

MIT。

Install

🧩 Let your agent install it (recommended)

Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:

dsh plugin add dshbase-catalog

Then say "install dsh-maf for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.

This plugin is GitHub source (not published to npm) — install it straight from the repo:

Web profile:

dsh plugin --profile web add github:WODE25500/dsh-maf

Headless (CLI) profile:

dsh plugin --profile headless add github:WODE25500/dsh-maf

Test report

Verified: L1 install + L2 load + L3 runtime from GitHub source on dsh 0.1.0-rc.6.

Security: not yet scanned — our daily static scan will cover it shortly.

Share this badge

More in Developer

Browse all 7819 plugins →