Multi-agent framework for generative AI.
<div align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset=".github/resources/images/logo-light.svg">
<source media="(prefers-color-scheme: light)" srcset=".github/resources/images/logo-dark.svg">
<img alt="TinyGent Logo" src=".github/resources/images/logo-dark.svg" width="80%">
</picture>
</div>
<div align="center">
<h3>Tiny platform for amazing agents</h3>
<h4>
<a href="https://github.com/filchy/tinygent">Homepage</a> | <a href="https://filchy.github.io/tinygent">Documentation</a> | <a href="https://filchy.github.io/tinygent/examples">Examples</a> | <a href="https://filchy.github.io/tinygent/examples/quick-start/">Quick Start</a>
</h4>
</div>
Tinygent is a tiny agentic framework - lightweight, easy to use (hopefully), and efficient (also hopefully ;-0) library for building and deploying generative AI applications. It provides a simple interface for working with various models and tools, making it ideal for developers who want to quickly prototype and deploy AI solutions.
## Create an agent
```python
# uv sync --extra openai
from tinygent.tools import tool
from tinygent.core.factory import build_agent
@tool
def get_weather(location: str) -> str:
"""Get the current weather in a given location."""
return f'The weather in {location} is sunny with a high of 75°F.'
agent = build_agent(
'react',
llm='openai:gpt-4o-mini',
tools=[get_weather],
)
print(agent.run('What is the weather like in Prague?'))
```
## Getting Started
### Prerequisites
Before you begin using tinygent, ensure that you meet the following software prerequisites.
- Install [Git](https://git-scm.com/)
- Install [uv](https://docs.astral.sh/uv/getting-started/installation/)
### Install From Source
1. Clone the tinygent repository to your local machine.
```bash
git clone [email protected]:filchy/tinygent.git tinygent
cd tinygent
```
2. Create a Python environment.
```bash
uv venv --seed .venv
source Google's AI-powered research notebook that ingests your documents and becomes an expert on your content. Generates audio overviews, study guides, FAQs, and interactive discussions from uploaded sources.
Google DeepMind's experimental AI agent that can navigate websites, fill forms, and complete multi-step browser tasks autonomously. Uses Gemini's multimodal understanding to interact with web interfaces.
Google DeepMind's universal AI assistant prototype that can see, hear, and respond in real-time through your device camera and microphone. Demonstrates the future of multimodal AI interaction.
Google Cloud's enterprise platform for building, deploying, and managing AI agents powered by Gemini. Supports multi-agent orchestration, tool integration, and enterprise governance.
Gemini's agentic research capability that autonomously browses the web, synthesizes information from dozens of sources, and produces comprehensive research reports on any topic.
Interactive coding and content creation agent that generates, previews, and iterates on code, documents, and interactive applications in a side panel. Supports HTML/CSS/JS, Python, and more.