Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
pydantic-ai - Skill - OpenSmartRoute
Skillv1.0.0
pydantic-ai
Build typed LLM applications with PydanticAI: schema-constrained outputs, tool integration, validation, retries, and deterministic downstream handoffs.
Imported from akillness/jeo-skills (.agent-skills/pydantic-ai/SKILL.md). Install upstream with npx skills add akillness/jeo-skills --skill pydantic-ai. Copyright stays with the author.
PydanticAI
When to use this skill
LLM 출력이 JSON/객체 스키마를 반드시 따라야 할 때
후속 자동화(저장/분석/API 호출)에 안정적으로 넘겨야 할 때
자유서술보다 검증 가능한 구조화 출력이 중요한 경우
Instructions
Step 1) 스키마 우선 설계
먼저 Pydantic 모델을 정의하고 필수/선택 필드 분리
enum/range/regex 제약을 명시
오류 메시지는 사용자 교정 가능 형태로 설계
Step 2) Agent + Tool 결합
도구 입출력도 Pydantic 타입으로 통일
실패 시 재시도 규칙(필드 누락/타입 불일치)을 분리
모델 출력이 스키마 미준수면 즉시 재질문(repair prompt)
Step 3) 검증/복구 루프
ValidationError를 카테고리화(누락/형식/논리)
동일 오류 반복 시 프롬프트가 아니라 스키마 복잡도 재검토
최종 결과에 신뢰 플래그(validated, repaired, failed) 포함
Step 4) 운영 적용
DB 저장 전 2차 검증(서버 측) 수행
버전드 스키마(v1,v2)로 호환성 관리
관찰 지표: first-pass success, retry rate, field error rate
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slotcurl-s-X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Installed into a catalogue, chosen by a router
Install pydantic-ai and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
When a provider is down or over quota the request moves on; the trace says it did.
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
akillness-jeo-skills-pydantic-ai.ocm.jsonjson
{
"ocm": "1",
"id": "akillness-jeo-skills-pydantic-ai",
"kind": "skill",
"name": "pydantic-ai",
"description": "Build typed LLM applications with PydanticAI: schema-constrained outputs, tool integration, validation, retries, and deterministic downstream handoffs. Use when users need reliable structured outputs instead of free-form text generation.",
"publisher": "akillness",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding",
"observability"
],
"tags": [
"skill-md",
"pydantic",
"structured-output",
"validation",
"llm-app",
"python",
"skills-sh"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Build typed LLM applications with PydanticAI: schema-constrained outputs, tool integration, validation, retries, and deterministic downstream handoffs. Use when users need reliable structured outputs instead of free-form text generation."
],
"primary": false,
"metadata": {
"source": {
"provider": "skills.sh",
"repository": "https://github.com/akillness/jeo-skills",
"path": ".agent-skills/pydantic-ai/SKILL.md",
"ref": "HEAD",
"url": "https://github.com/akillness/jeo-skills/blob/HEAD/.agent-skills/pydantic-ai/SKILL.md",
"key": "akillness/jeo-skills/.agent-skills/pydantic-ai/SKILL.md"
},
"allowed_tools": [
"Bash",
"Read",
"Write",
"Edit",
"Grep",
"Glob"
]
},
"instructions": "# PydanticAI\n\n## When to use this skill\n- LLM 출력이 JSON/객체 스키마를 반드시 따라야 할 때\n- 후속 자동화(저장/분석/API 호출)에 안정적으로 넘겨야 할 때\n- 자유서술보다 검증 가능한 구조화 출력이 중요한 경우\n\n## Instructions\n\n### Step 1) 스키마 우선 설계\n- 먼저 Pydantic 모델을 정의하고 필수/선택 필드 분리\n- enum/range/regex 제약을 명시\n- 오류 메시지는 사용자 교정 가능 형태로 설계\n\n### Step 2) Agent + Tool 결합\n- 도구 입출력도 Pydantic 타입으로 통일\n- 실패 시 재시도 규칙(필드 누락/타입 불일치)을 분리\n- 모델 출력이 스키마 미준수면 즉시 재질문(repair prompt)\n\n### Step 3) 검증/복구 루프\n- ValidationError를 카테고리화(누락/형식/논리)\n- 동일 오류 반복 시 프롬프트가 아니라 스키마 복잡도 재검토\n- 최종 결과에 신뢰 플래그(validated, repaired, failed) 포함\n\n### Step 4) 운영 적용\n- DB 저장 전 2차 검증(서버 측) 수행\n- 버전드 스키마(`v1`,`v2`)로 호환성 관리\n- 관찰 지표: first-pass success, retry rate, field error rate\n\n## Examples\n- 요청: \"리서치 결과를 항상 동일 포맷 JSON으로 받아서 파이프라인에 넣고 싶다\"\n- 적용: `ResearchSummary` 스키마 정의 후 Agent 결과를 강제 검증\n- 결과: 파싱 실패율 감소, 후속 자동화 안정화\n\n## Best practices\n1. 자연어 요구사항을 먼저 스키마로 번역한다.\n2. 스키마는 작게 시작하고 점진적으로 확장한다.\n3. 재시도 횟수보다 오류 분류 품질을 먼저 개선한다.\n\n## References\n- https://github.com/pydantic/pydantic-ai",
"cost": {
"context_tokens": 242
}
}
Fetch it by URL: GET /api/v1/registry/akillness-jeo-skills-pydantic-ai/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.