{"repo":"doganarif/fastapi-ai-sdk","free":true,"listed":false,"github":"https://github.com/doganarif/fastapi-ai-sdk","clone":"git clone https://github.com/doganarif/fastapi-ai-sdk.git","description":"FastAPI helper library for Vercel AI SDK backend implementation - Stream AI responses from FastAPI to Next.js with full type safety and SSE support","language":"Python","stars":63,"topics":["ai","ai-sdk","fastapi","llm","nextjs","python","vercel"],"license":"MIT","category":"ai-agents","readme_excerpt":"FastAPI AI SDK A Pythonic helper library for building FastAPI applications that integrate with the Vercel AI SDK. This library provides a seamless way to stream AI responses from your FastAPI backend to your Next.js frontend. Features - Full Vercel AI SDK Compatibility - Implements the complete AI SDK protocol specification - Type-Safe with Pydantic - Full type hints and validation for all events - Streaming Support - Built-in Server-Sent Events (SSE) streaming - Easy Integration - Simple decorators and utilities for FastAPI - Flexible Builder Pattern - Intuitive API for constructing AI streams - Well Tested - Comprehensive test coverage - Fully Documented - Complete documentation with examples Installation Quick Start Basic Example Frontend Integration (Next.js) Documentation Stream Events The library supports all Vercel AI SDK event types: - Message Lifecycle : start , finish - Text Streaming : text-start , text-delta , text-end - Reasoning : reasoning-start , reasoning-delta , reasoning-end - Tool Calls : tool-input-start , tool-input-delta , tool-input-available , tool-output-available - Structured Data : Custom data- events - File References : URLs and documents - Error Handling : Error events with messages Using the Stream Builder Decorators @ai endpoint - Automatic AI SDK Response Handling @streaming endpoint - Simple Text Streaming @tool endpoint - Tool Call Handling Advanced Examples Streaming with Reasoning and Tools Custom Async Generators Chunked Text Streaming Te","default_branch":null,"files":null,"tree":[],"storefront":"/r/doganarif","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/doganarif/fastapi-ai-sdk/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}