AGENT SKILL

structured-tool-reasoning

Use this vLLM sub-skill for structured outputs, JSON/regex/grammar constraints, tool calling, reasoning parsers, chat-template/tool-parser routing, streaming tool-call deltas, and parser/backend troubleshooting.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
structured-tool-reasoning
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Use this vLLM sub-skill for structured outputs, JSON/regex/grammar constraints, tool calling, reasoning parsers, chat-template/tool-parser routing, streaming tool-call deltas, and parser/backend troubleshooting.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Structured Tool Reasoning

Use this sub-skill when the task involves constrained generation, OpenAI-compatible response_format or structured_outputs, tool/function calling, reasoning parser output, or debugging parser/template/backend behavior in vLLM.

Route by Task

  • For JSON schema, JSON object, choice, regex, grammar, or structural-tag constraints, read references/structured-outputs.md.
  • For OpenAI-compatible tools, tool_choice, auto tool choice, strict tool schemas, parser names, chat templates, and streaming tool-call assembly, read references/tool-calling.md.
  • For --reasoning-parser, reasoning fields, reasoning streaming deltas, thinking controls, and combining reasoning with tools or structured outputs, read references/reasoning-parsers.md.
  • For unsupported schema keywords, invalid grammars, backend dependency issues, parser name mismatches, incompatible chat templates, missing streamed tool calls, or absent reasoning content, read references/troubleshooting.md.

Safe Local Helper

Use the bundled validator before contacting a server when a user provides a request fragment:

# From this sub-skill directory:
python scripts/validate_structured_request.py --input request.json
python scripts/validate_structured_request.py --example tool-streaming

# From the root vLLM skill directory:
python sub-skills/structured-tool-reasoning/scripts/validate_structured_request.py --input request.json

The helper checks request-shape consistency for response_format, structured_outputs, tools, tool_choice, reasoning flags, common backend compatibility risks, and streaming tool-call handling. It does not import vLLM, download models, start a server, execute tools, or call external APIs.

Boundaries

  • Route general server startup, authentication, host/port, OpenAI endpoint coverage, and deployment layout to ../openai-serving/ when present.
  • Route basic LLM.generate or LLM.chat setup without structured constraints to ../offline-inference/ when present.
  • Route multimodal, pooling, embeddings, adapters, and LoRA-specific requests to ../modalities-adapters-pooling/ when present.
  • Route performance tuning of structured decoding backends, throughput, batching, and benchmark questions to ../deployment-performance/ when present.

Hardware and Runtime Notes

  • Offline and serving examples require user-provided models and hardware appropriate for the selected model; CPU-only or precompiled inspection environments prove imports and signatures, not GPU throughput.
  • OpenAI-compatible examples assume the user already has a running vLLM server exposing /v1.
  • Tool execution is always application-owned: vLLM returns tool-call names and argument strings; caller code validates and executes the actual functions.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351