ai-python-custom-provider

Installation
SKILL.md

ai-python-custom-provider

Providers emit model events. They do not run Python tools. ai.stream collects events into a Message. ai.Agent adds tool execution, hooks, and replay.

Minimal shape:

from collections.abc import AsyncGenerator, Sequence
from typing import Any, Literal

import pydantic
import ai


class MyProtocol(ai.ProviderProtocol[Any]):
    protocol_class_id: Literal["my_protocol"] = "my_protocol"
Installs
9
GitHub Stars
148
First Seen
12 days ago
ai-python-custom-provider — vercel-labs/ai-python