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
SoftCo: Enterprise Invoice and P2P Automation Software Icon
SoftCo: Enterprise Invoice and P2P Automation Software

For companies that process over 20,000 invoices per year

SoftCo Accounts Payable Automation processes all PO and non-PO supplier invoices electronically from capture and matching through to invoice approval and query management. SoftCoAP delivers unparalleled touchless automation by embedding AI across matching, coding, routing, and exception handling to minimize the number of supplier invoices requiring manual intervention. The result is 89% processing savings, supported by a context-aware AI Assistant that helps users understand exceptions, answer questions, and take the right action faster.
Learn More
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