Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Docs target

The docs target writes llms.txt, llms-full.txt, tools.json and a README. This is the README tungsten generates for the example API.

Swagger Petstore API, version 1.0.0.

API version 1.0.0 · base URL http://petstore.swagger.io/v1 · 1 namespace · 3 callable operations · 0 planned

Files

FilePurpose
llms.txtIndex for agents: one line per callable operation with its safety tier and idempotency rule.
llms-full.txtFull reference for agents: arguments, responses, errors, remediation and types.
tools.jsonFunction-calling manifest: one tool per callable operation, parameters as JSON Schema.

Authentication

Auth: none declared. Auth profiles: none; each operation names the schemes it needs (a + b all of, a | b any of).

openapi operations

Swagger Petstore (version 1.0.0).

OperationEndpointSummarySafetyIdempotency
openapi.pets.listGET /petsList all petsread_onlynone
openapi.pets.createPOST /petsCreate a petmutatingnone
openapi.pets.getGET /pets/{petId}Info for a specific petread_onlynone

Errors

SDK calls never throw for API or transport errors: they return a result whose error is one envelope with category, retryable and remediation. llms-full.txt lists the API's error codes with their remediation.

CategoryWhenRetryable by default
VALIDATION_FAILEDarguments failed pre-flight validation, or a 400 with an error bodynever
MALFORMED_REQUESTa 400 without an error bodynever
REQUEST_TOO_LARGE413never
AUTH_FAILED401 or 403never
NOT_FOUND404never
CONFLICT409never
PRECONDITION_FAILED402, 412 or 422 as the manifest saysnever
RATE_LIMITED429after_delay
UPSTREAM_UNAVAILABLE502, 503 or 504 on a readafter_delay
OUTCOME_UNKNOWNa timeout, reset, ambiguous status or unexplained 5xx on a mutationsame_key_only (after_remediation without an idempotency key)
TRANSPORT_FAILEDDNS, TLS or connection refused before sendingafter_delay
CONFIRMATION_REQUIREDa destructive or irreversible call without confirmationnever
GATE_DISABLEDa gated route answered with its disabled statusnever
UNEXPECTED_RESPONSEa response that failed strict validationnever

Regenerating

These files are generated from the API's OpenAPI documents and its tungsten manifests. Run tungsten generate after changing them; tungsten check --ci fails while these files are stale.