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
Try Google Cloud Risk-Free With $300 in Credit Icon
Try Google Cloud Risk-Free With $300 in Credit

No hidden charges. No surprise bills. Cancel anytime.

Use your credit across every product. Compute, storage, AI, analytics. When it runs out, 20+ products stay free. You only pay when you choose to.
Start 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