Help us shape the future of Go! Take the 2026 Go Developer Survey

basic-middleware/

directory
v1.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2026 License: Apache-2.0

Directories

Path Synopsis
This sample serves an A2UI-enabled agent over HTTP, compatible with the browser frontend in js/testapps/a2ui/web.
This sample serves an A2UI-enabled agent over HTTP, compatible with the browser frontend in js/testapps/a2ui/web.
This sample demonstrates the experimental Budget middleware, which caps the tokens a generate run spends across its whole tool loop.
This sample demonstrates the experimental Budget middleware, which caps the tokens a generate run spends across its whole tool loop.
This sample demonstrates the experimental ContextCompression middleware on a research loop that fills the context with verbose tool output.
This sample demonstrates the experimental ContextCompression middleware on a research loop that fills the context with verbose tool output.
This sample demonstrates the Filesystem middleware, which grants the model scoped file access through list_files, read_file, write_file, and search_and_replace tools.
This sample demonstrates the Filesystem middleware, which grants the model scoped file access through list_files, read_file, write_file, and search_and_replace tools.
This sample meters model usage per tenant with an observer.
This sample meters model usage per tenant with an observer.
This sample demonstrates composing the Retry and Fallback middlewares into a resilient model pipeline.
This sample demonstrates composing the Retry and Fallback middlewares into a resilient model pipeline.
This sample demonstrates the Skills middleware, which offers the model a local library of specialised instructions stored as SKILL.md files.
This sample demonstrates the Skills middleware, which offers the model a local library of specialised instructions stored as SKILL.md files.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL