ai
Installation
SKILL.md
ai
uv add vercel-ai-sdk
import ai
Quick reference
@ai.tool
async def get_weather(city: str) -> str:
"""Get the current weather for a city."""
return f"Sunny, 72F in {city}"
model = ai.ai_gateway("anthropic/claude-sonnet-4")
Related skills
More from vercel-labs/py-ai
vercel-python-services
Building Python backend services using Vercel's experimentalServices API. Use when creating Python backends, or multi-service projects with a Python backend and JavaScript frontend.
28vercel-ai-sdk
Vercel AI SDK (Python) - patterns for building LLM-powered apps with streaming, tools, hooks, and structured output
25