GenAI Processors is a lightweight Python library for building modular, asynchronous, and composable AI pipelines around Gemini. Its central abstraction is the Processor, a unit of work that consumes an asynchronous stream of parts (text, images, audio, JSON) and produces another stream, making it natural to chain operations and keep everything streaming end-to-end. Processors can be composed sequentially (to build multi-step flows) or in parallel (to fan-out work and merge results), which makes sophisticated agent behaviors easy to express with simple operators. The library offers built-in processors for classic turn-based Gemini calls as well as Live API streaming, so you can mix “batch” and real-time interactions in the same graph. It leans on Python’s asyncio to coordinate concurrency, handle network I/O, and juggle background compute threads without blocking.

Features

  • Processor abstraction with async streams for text, image, audio, and JSON
  • Easy composition with sequential chain and parallel fan-out operators
  • Built-in processors for Gemini REST and Live API interactions
  • Rich content parts with metadata, roles, and MIME information
  • Stream utilities for splitting, concatenation, and merging
  • Examples for research agents, real-time audio bots, and live commentary

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

Apache License V2.0

Follow GenAI Processors

GenAI Processors Web Site

Other Useful Business Software
Simple, Secure Domain Registration Icon
Simple, Secure Domain Registration

Get your domain at wholesale price. Cloudflare offers simple, secure registration with no markups, plus free DNS, CDN, and SSL integration.

Register or renew your domain and pay only what we pay. No markups, hidden fees, or surprise add-ons. Choose from over 400 TLDs (.com, .ai, .dev). Every domain is integrated with Cloudflare's industry-leading DNS, CDN, and free SSL to make your site faster and more secure. Simple, secure, at-cost domain registration.
Sign up for free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of GenAI Processors!

Additional Project Details

Programming Language

Python

Related Categories

Python Libraries

Registered

2025-10-06