om-ai-lab/OmAgent
[EMNLP-2024] Build multimodal language agents for fast prototype and production
📚 What is OmAgent?
OmAgent is a Python library that lets you build multimodal language agents—software assistants that can understand and reason over text, images, video, and audio. The library hides the heavy‑lifting (worker orchestration, task queues, graph execution, memory handling, etc.) behind a simple API, so you can focus on defining the agent’s behavior.
🚀 Core Capabilities
| Capability | What it means for you |
|---|---|
| Graph‑based workflow | Define an agent as a directed graph of nodes; the engine schedules and runs them automatically. |
| Multimodal I/O | Native hooks for vision‑language models (VLMs), video processing, and even mobile device connections, so an agent can ingest images, video streams, or audio. |
| Reusable “agent operators” | Pre‑implemented reasoning patterns such as ReAct, Chain‑of‑Thought (CoT), SC‑CoT, etc., which you can drop into any agent. |
| Local model support | Run models on‑device via Ollama or LocalAI, avoiding cloud‑only APIs. |
| Scalable / distributed | The framework can run in a fully distributed mode or a lightweight “Lite” mode that needs no extra middleware. |
| Memory types | Built‑in short‑term and long‑term memory abstractions for contextual reasoning across turns. |
🛠️ Getting Started
- Install (Python ≥ 3.10)
pip install omagent-core # stable release # or from source pip install -e omagent-core - Configure – a
container.yamldescribes component dependencies. The quick‑start example generates it with:cd examples/step1_simpleVQA python compile_container.py - Set LLM credentials – edit
configs/llms/gpt.ymlor export env vars:export custom_openai_key="YOUR_KEY" export custom_openai_endpoint="YOUR_ENDPOINT" - Run a demo – a simple visual‑question‑answering (VQA) app with a Gradio‑style web UI:
cd examples/step1_simpleVQA python run_webpage.py # then open http://127.0.0.1:7860
🎬 Example Projects (included in the repo)
| Project | Description |
|---|---|
| Video QA Agents | Upload a video and ask arbitrary questions; the system extracts frames, runs VLMs, and returns answers via a Gradio UI. A related paper (arXiv:2406.16620) details the approach. |
| Mobile Personal Assistant | Shows how to connect a smartphone to the framework, creating a Google‑Astral‑style multimodal assistant in minutes. |
| Agentic Operators Benchmark | Implements several reasoning operators (ReAct, CoT, SC‑CoT, etc.) and evaluates them on GSM8K and AQuA using the same LLM, with results displayed in a table. |
📖 Documentation & Resources
- Full docs: https://om-ai-lab.github.io/OmAgentDocs/ (covers architecture, container config, model integration, etc.)
- Paper: OmAgent: A Multi‑modal Agent Framework for Complex Video Understanding with Task Divide‑and‑Conquer (arXiv:2406.16620).
- Related research: OMDet, OVDEval (vision‑language detection benchmarks) – links provided in the README.
- Community: Twitter/X, Discord, and a WeChat group for support.
🤝 Contributing
The repository follows a standard open‑source contribution model. See CONTRIBUTING.md for guidelines and a contributor‑rock‑image badge shows active community involvement.
📦 When to Use OmAgent?
- You need an agent that can handle more than just text (e.g., video QA, image‑based assistants).
- You prefer local model deployment (Ollama/LocalAI) over cloud‑only APIs.
- You want a graph‑oriented workflow that can be scaled across machines or run lightweight on a single device.
- You like to reuse proven reasoning patterns without re‑implementing them from scratch.
⭐️ Quick Takeaway
OmAgent is a purpose‑built framework for constructing sophisticated multimodal agents with minimal boilerplate. It bundles orchestration, memory, and a suite of reasoning operators while supporting both cloud and local LLM/VLM back‑ends, making it suitable for researchers prototyping new agentic ideas and developers building production‑grade multimodal assistants.
Related
- Project
- Project
- Project
- Project