schema
json

专为 AI Agent 设计

boss-agent-cli

把招聘平台工作流变成稳定、可编排、可验证的命令行协议。

Python >=3.10 JSON stdout Schema first MIT

能力发现

Agent 先读 schema,再执行动作。

`boss schema` 是能力真源:命令、参数、角色、平台可用性一次返回,宿主不需要硬编码命令表。

agent-session

$ boss schema --format native

{

"ok": true,

"supported_platforms": ["zhipin", "zhilian"],

"commands": ["search", "detail", "greet", "hr"]

}

核心差异化

福利筛选是真过滤,不是关键词装饰。

$ boss search "Golang" --city 广州 --welfare "双休,五险一金"
搜索 职位列表
补抓详情 福利字段
AND 匹配 精准结果
ok 15 个匹配职位 hints.next_actions: detail → greet → pipeline
{
  "ok": true,
  "schema_version": "1.0",
  "command": "search",
  "data": [
    {
      "title": "Golang 高级工程师",
      "salary": "25-50K",
      "welfare_match": {
        "双休": "tag",
        "五险一金": "tag"
      }
    }
  ],
  "pagination": { "has_more": true },
  "hints": { "next_actions": ["boss detail <sid>"] }
}

CLI 不变量

stdout 只给机器读。

01 JSON envelope only
02 exit 0 means ok:true
03 error includes recovery_action

开源项目质量

从命令契约到贡献流程,都可验证。

650+测试用例
docs中英文文档
CIlint · typecheck · tests
schema能力自描述

github.com/can4hou6joeng4/boss-agent-cli