Skillquality 0.45
litestar-ai-serving
Auto-activate for Google ADK, LlmAgent, Runner, SQLSpecSessionService, Vertex AI, agent chat endpoints, streaming AI responses, tool-calling endpoints, or Litestar-hosted model workflows. Use when serving AI agents or model-backed workflows from Litestar. Not for offline ML train
Price
free
Protocol
skill
Verified
no
What it does
Litestar AI Serving
Use this skill for HTTP-facing AI agent endpoints, Google ADK integration, session-backed conversations, and Litestar service boundaries around model workflows.
Code Style Rules
- Keep agent orchestration behind service functions or providers.
- Use typed request and response DTOs at the HTTP boundary.
- Store multi-turn state through the project's database stack.
- Stream only when the client contract needs incremental output.
Quick Reference
- AI serving patterns: ai-serving.md
- Pair with sqlspec for ADK session stores.
- Pair with litestar-realtime for streaming or event fan-out.
Workflow
- Define the HTTP contract before agent internals.
- Wire agent runners through DI.
- Persist session state through the chosen data stack.
- Test deterministic failure, timeout, and cancellation paths.
Guardrails
- Do not expose raw agent internals as the API contract.
- Do not block request workers with unbounded model calls.
- Do not store prompts, tool outputs, or memory without a retention decision.
- Do not skip authorization on agent endpoints.
Validation Checkpoint
- Request and response DTOs are explicit.
- Session persistence is wired.
- Timeouts and model failures are handled.
- Auth policy matches the sensitivity of tools and data.
Example
@get("/chat/{session_id:str}")
async def chat(session_id: str, runner: Runner, body: ChatRequest) -> ChatResponse:
result = await runner.run_async(session_id=session_id, new_message=body.message)
return ChatResponse(message=result.final_response)
</example>
References Index
Official References
- https://docs.litestar.dev/ - Litestar documentation
- https://docs.litestar.dev/latest/reference/ - Litestar API reference
Shared Styleguide Baseline
Capabilities
skillsource-litestar-orgskill-litestar-ai-servingtopic-advanced-alchemytopic-agent-skillstopic-agentskillstopic-ai-agentstopic-claude-code-plugintopic-claude-code-skillstopic-gemini-cli-extensiontopic-htmxtopic-inertiatopic-litestartopic-mcptopic-python
Install
Installnpx skills add litestar-org/litestar-skills
Transportskills-sh
Protocolskill
Quality
0.45/ 1.00
deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 7 github stars · SKILL.md body (2,216 chars)
Provenance
Indexed fromgithub
Enriched2026-05-18 19:13:53Z · deterministic:skill-github:v1 · v1
First seen2026-05-18
Last seen2026-05-18