Install
$ agentstack add skill-litestar-org-litestar-skills-litestar-ai-serving ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
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](references/ai-serving.md)
- Pair with [sqlspec](../sqlspec/SKILL.md) for ADK session stores.
- Pair with [litestar-realtime](../litestar-realtime/SKILL.md) 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)
References Index
- [ai-serving.md](references/ai-serving.md)
Official References
- - Litestar documentation
- - Litestar API reference
Shared Styleguide Baseline
- [General](../litestar-styleguide/references/general.md)
- [Python](../litestar-styleguide/references/python.md)
- [Litestar](../litestar-styleguide/references/litestar.md)
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: litestar-org
- Source: litestar-org/litestar-skills
- License: MIT
- Homepage: https://github.com/litestar-org/litestar-skills
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.