L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Productivité · SKILL.md

api-engine-and-cli

api-engine-and-cli

Operate Sparrow LLM API and CLI surfaces, request routing, validation, table templates, and protected-access configuration.

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

name: api-engine-and-cli description: "Operate Sparrow LLM API and CLI surfaces, request routing, validation, table templates, and protected-access configuration." metadata: disco-role: operating disable-model-invocation: true license: GPL 3.0

API Engine and CLI

Use this sub-skill when the task is to run, debug, or translate requests for Sparrow's LLM-facing command line and HTTP API surfaces: sparrow.sh, the Typer engine command, the FastAPI /api/v1/sparrow-llm/inference endpoint, or /api/v1/sparrow-llm/instruction-inference.

Route the task

Boundaries and handoffs

Safe bundled helpers

These scripts are offline by default and are safe to run for fixture checks or request construction:

  • python scripts/sparrow_cli_request.py --help builds CLI or curl requests, including curl-to-CLI translation.
  • python scripts/json_validation_smoke.py --help validates Sparrow-style JSON example schemas against candidate JSON.
  • python scripts/table_template_smoke.py --help exercises the generic table-template mapping against an embedded HTML table fixture.

Operating checklist

  1. Identify the surface: CLI, document API, or instruction API.
  2. Normalize options: repeated --options for CLI; comma-separated options= for API.
  3. Choose the pipeline: sparrow-parse for document/schema work, sparrow-instructor for instruction/payload text work.
  4. Check query mode before blaming the model: *, --instruction, --validation, --markdown, --page-type, and --table change both prompts and validation behavior.
  5. If the API is protected, confirm the sparrow_key route: config-key validation when database use is disabled, database validation when enabled.
  6. For table requests, confirm whether the request is using the generic table template and whether it supplied the second backend/model pair required by the table OCR pass.
Skills enregistrées