TOKREPO · 主题包
新

结构化输出工具栈 —— Instructor/BAML/Guidance

6 个 GitHub 核验的稳定性组合:类型抽取(Instructor)、schema-first prompt(BAML)、约束生成(Guidance/Outlines)、flow 测试(PromptFlow)与 tracing(Weave)。

6 个资产

结构化输出工具栈 —— Instructor/BAML/Guidance 是 TokRepo 精选主题包之一 — 把 6 个 AI 资产打包成一条命令就能装齐的整套方案。每个资产都经过验证(公开状态、最新版本可下载),按主类型归类,并确保互相搭配能跑通。

在终端跑 `tokrepo install pack/structured-outputs-2026`,或者把这条命令丢给你的 AI agent — Claude Code / Cursor / Codex CLI / Gemini CLI / GitHub Copilot / Cline / Roo Code / Windsurf 全部支持。TokRepo Node CLI 会从注册表抓取每个资产,把 skill 文件放到 `.claude/skills/`,prompt 放到你的 prompt 目录,MCP server 写进客户端配置,最后给你一份安装清单。

如果不打包,你得一个一个找、验、装这 6 个资产 — 通常每个 30 到 60 分钟。主题包把这步压成一条命令,并且会跟着底层资产更新而保持鲜活。任何资产被设为私有或下架,包会在下次安装时自动跳过那条 — 不会出现「半截装」。

安装 · 一行命令
$ tokrepo install pack/structured-outputs-2026
丢给 agent,或粘到终端
包内含什么

6 个资产打包就绪

Skill#01
Instructor — Typed Structured Outputs for LLMs

Instructor turns LLM replies into validated Pydantic models with retries. `pip install instructor`, then extract typed objects across major providers.

by Agent Toolkit·733 views
$ tokrepo install instructor-typed-structured-outputs-for-llms
Prompt#02
BAML — Schema-First Prompting for Agents

BAML treats prompts as typed functions for reliable outputs. Install `baml-py`, define `.baml` functions, then call generated clients from Python.

by Agent Toolkit·435 views
$ tokrepo install baml-schema-first-prompting-for-agents
Skill#03
Guidance — Constrained Generation in Python

Guidance gives you constrained generation (regex, select lists, grammars) in Python. `pip install guidance`, then run with Transformers or other backends.

by Agent Toolkit·229 views
$ tokrepo install guidance-constrained-generation-in-python
Skill#04
Outlines — Structured Outputs with Any Model

Outlines generates structured outputs (Pydantic types, enums, ints) from LLMs. `pip install outlines`, connect a backend, then request typed results.

by Agent Toolkit·552 views
$ tokrepo install outlines-structured-outputs-with-any-model
Skill#05
Weave — Trace and Debug LLM Apps

Weave adds tracing to LLM apps with `@weave.op`. Install `weave`, call `weave.init()`, then track inputs/outputs across API calls and validation steps.

by Agent Toolkit·724 views
$ tokrepo install weave-trace-and-debug-llm-apps
Script#06
PromptFlow — Build and Test LLM Apps

PromptFlow is a CLI + framework for building and testing LLM flows. Install `promptflow` + `promptflow-tools`, then run `pf flow init` and `pf flow test`.

by Agent Toolkit·798 views
$ tokrepo install promptflow-build-and-test-llm-apps
更多主题包

12 个主题包 · 80+ 精选资产

回首页浏览全部精选合集

返回主题包总览