Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
app
|
|
|
common
|
|
|
strutil
Package strutil holds small, dependency-free string helpers.
|
Package strutil holds small, dependency-free string helpers. |
|
Package config loads configuration from environment variables.
|
Package config loads configuration from environment variables. |
|
Package container wraps uber/dig with per-context modules.
|
Package container wraps uber/dig with per-context modules. |
|
domain
|
|
|
infra
|
|
|
cache/cachetest
Package cachetest provides cache test doubles shared across app-layer tests.
|
Package cachetest provides cache test doubles shared across app-layer tests. |
|
cache/semantic
Package semantic provides a Redis Stack (RediSearch) vector store used by the semantic cache plugin to look up and persist responses by embedding similarity, scoped per rule via a hashed tag.
|
Package semantic provides a Redis Stack (RediSearch) vector store used by the semantic cache plugin to look up and persist responses by embedding similarity, scoped per rule via a hashed tag. |
|
database/migrations
Package migrations registers in-code schema migrations via init().
|
Package migrations registers in-code schema migrations via init(). |
|
metrics/playground
Package playground stores the metrics Event of playground proxy requests in Redis so the dashboard can fetch the trace by TraceID (the X-AG-Trace-Id echoed in the proxy response).
|
Package playground stores the metrics Event of playground proxy requests in Redis so the dashboard can fetch the trace by TraceID (the X-AG-Trace-Id echoed in the proxy response). |
|
plugins/cors
Package cors implements a PreRequest CORS plugin that validates the request origin, applies CORS response headers, and short-circuits preflight requests.
|
Package cors implements a PreRequest CORS plugin that validates the request origin, applies CORS response headers, and short-circuits preflight requests. |
|
plugins/semanticcache
Package semanticcache implements a semantic response cache: on PreRequest it serves a cached response when a semantically similar request is found, and on PostResponse it stores successful upstream responses for future hits.
|
Package semanticcache implements a semantic response cache: on PreRequest it serves a cached response when a semantically similar request is found, and on PostResponse it stores successful upstream responses for future hits. |
|
providers/openaicompat
Package openaicompat implements a provider client for arbitrary OpenAI-compatible Chat Completions endpoints (Together, Fireworks, vLLM, Ollama, self-hosted gateways, ...).
|
Package openaicompat implements a provider client for arbitrary OpenAI-compatible Chat Completions endpoints (Together, Fireworks, vLLM, Ollama, self-hosted gateways, ...). |
|
Package server hosts the shared HTTP server lifecycle for admin and proxy.
|
Package server hosts the shared HTTP server lifecycle for admin and proxy. |
|
router
Package router declares the ServerRouter contract wired into BaseServer.
|
Package router declares the ServerRouter contract wired into BaseServer. |
|
Package version exposes build metadata injected via ldflags.
|
Package version exposes build metadata injected via ldflags. |
Click to show internal directories.
Click to hide internal directories.