ai-python
Build Python LLM apps, agents, and tool loops
All Skills in This Repository (1)
Pure Emerald Level IndicatorsFrequently Asked Questions
FAQPage SchemaHow to install ai-python?โผ
Run `npx skills add vercel-labs/ai-python --all -g -y` in your terminal to install this skill globally.
How to call LLMs from Python?โผ
Use `ai.get_model()` with a provider ID and `ai.stream()` to send messages and receive streamed responses. It works with OpenAI, Anthropic, and Vercel AI Gateway through one consistent API.
How to build a tool-calling agent in Python?โผ
Decorate any Python function with `@ai.tool` and pass it to `ai.Agent`, which runs the loop, executes tools, and manages message history automatically.
Does ai-python support human approval steps?โผ
Yes. Hooks let an agent pause for external input such as human approval, then resume with the recorded decision, including in serverless environments.
Can I test agent behavior without real API calls?โผ
Yes. The SDK includes deterministic testing utilities so you can verify model interactions, tool calls, and agent loops without hitting live providers.
Related Repositories in Software Engineering
View All in Software Engineeringโopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core