turul-ai-catalog-lambda
An AWS Lambda handler that serves an AI Catalog at the well-known URI
/.well-known/ai-catalog.json. The catalog is assembled from a
turul-ai-catalog-storage store, validated, and
served as canonical application/ai-catalog+json bytes.
Part of turul-agent-card.
GETandHEADon the well-known path answer 200 with the catalog media type; other methods answer 405 withAllow: GET, HEAD; any other path answers 404.- Cold start fails if the catalog cannot be assembled or has an error diagnostic. A later refresh that fails keeps serving the last good snapshot.
- The deployed function binary reads
TURUL_AI_CATALOG_ID(required withdynamodb, otherwise defaultdefault),TURUL_AI_CATALOG_TABLE(withdynamodb) andTURUL_AI_CATALOG_MAX_AGE_SECS(default 60).
Feature flags
| Feature | Enables |
|---|---|
dynamodb |
The turul-ai-catalog-lambda binary reads the catalog from a DynamoDB table, and table_name is available. |
local |
The turul-ai-catalog-serve binary: the same handler on a plain HTTP port for local development. |
Without dynamodb the function binary serves an empty in-memory store.
Example
use ;
use ;
use ;
# block_on?;
# Ok::
License
Apache-2.0.