🌌 ExoModel AI
Your Python objects, autonomous.
Describe what you want — the object thinks, acts, and responds.
📖 Official Documentation: https://exomodel.ai
📦 GitHub Repository: https://github.com/exomodel-ai/exomodel
📬 Contact: contact@exomodel.ai
Your domain objects already know how to do things.
Making them understand a natural language instruction shouldn't require
adapters, intent routers, and prompt templates written by hand.
ExoModel bridges natural language intent and object behavior — so your domain objects can understand instructions, call their own methods, and respond with guaranteed structure. No glue code. No rewrites.
Install now: pip install exomodel
⚡ Why ExoModel?
| Traditional approach | With ExoModel |
|---|---|
| Write adapters and parsers before every feature | Objects understand instructions directly — no translation layer |
Map intent to methods by hand (if intent == X) |
Objects discover and call their own methods based on intent |
| Glue code buries your domain logic | Domain code stays domain code |
| Tied to one LLM provider | Swap providers without touching business logic |
🤔 Why not just use LangChain directly?
LangChain is great — ExoModel is actually built on top of it. But there's a gap between "I have an LLM" and "I have a working business application", and that's exactly what ExoModel fills.
1. LangChain thinks in pipelines. Your business thinks in objects.
When you model a Proposal, a LeadContact, or an AuditReport, you're thinking in entities — not chains. LangChain makes you wrap your objects around the AI. ExoModel puts the AI inside the objects, where it belongs.
2. You still have to write all the glue code.
With raw LangChain, you manage prompt templates, output parsers, schema validation, RAG retrieval, and tool registration — separately, by hand, for every entity. ExoModel handles all of that by convention. Define the schema, attach the documents, and the object knows what to do.
3. The output is still just text.
LangChain returns strings. Your application needs structured, validated, typed objects that can act — objects you can save to a database, send to an API, render in a UI, or use to trigger further methods. ExoModel's output is always a live Pydantic object — guaranteed schema, no parsing, ready to do work.
🔥 Core Features
- 🧠 Natural Language Updates — Give objects instructions in plain English — they update their own fields with guaranteed structure. No parsers, no manual mapping.
- 📚 Native RAG Grounding — Ground your objects in real documents — attach PDFs, URLs, or text files and the object reasons within your actual business context.
- 🤖 ExoAgent Orchestration — Let objects coordinate without writing routing logic — ExoAgent reads intent and decides which method or tool to invoke, not
if/else. - 🔌 Schema-Validated Output — Feed raw human input, get back schema-validated output — ready for your APIs, databases, or UI. No parsing step.
- ⚙️ Agentic Tools with
@llm_function— Expose any method as an agent tool with one decorator — ExoAgent discovers and calls it autonomously. No registration, no wiring. - 📊 Collection Operations — Operate on entire collections in one LLM call — generate, update, and export lists of objects without looping manually.
📦 Installation
ExoModel is LLM-agnostic. Install only the provider package you need:
pip install "exomodel[google]" # Gemini (default)
pip install "exomodel[anthropic]" # Claude
pip install "exomodel[openai]" # OpenAI / Azure OpenAI
pip install "exomodel[cohere]" # Cohere
pip install "exomodel[all]" # all providers
Then create a .env file at the root of your project:
MY_LLM_MODEL=google_genai:gemini-2.5-flash-lite
MY_EMB_MODEL=google_genai:gemini-embedding-001 # optional — auto-detected from provider
GOOGLE_API_KEY=your-key-here
🚀 Quick Start
Three steps. No boilerplate.
Step 1 — Install
pip install "exomodel[google]"
Step 2 — Inherit
from exomodel import ExoModel
class Proposal(ExoModel):
client: str = ""
budget: float = 0.0
flagged_for_legal: bool = False
def flag_for_review(self):
self.flagged_for_legal = True
@classmethod
def get_rag_sources(cls):
return ["proposal_rules.md"]
Step 3 — Instruct
# The object updates fields and calls the right method — from one instruction
p = Proposal.create("Draft a 50k proposal for Tesla")
p.update("apply the 10% safety margin and flag it for legal review")
# → budget updated, flag_for_review() called — no if/else, no manual routing
print(p.to_ui())
# The object checks itself against proposal_rules.md
print(p.run_analysis())
The @llm_function decorator makes any method callable by the agent. Point it at a rules document and the object validates itself — no extra code.
from exomodel import ExoModel, llm_function
class LeadContact(ExoModel):
name: str = ""
status: str = "new"
score: int = 0
@llm_function
def qualify(self):
"""Qualify this lead based on company size and budget signals."""
self.status = "qualified"
@llm_function
def disqualify(self, reason: str):
"""Mark this lead as disqualified and record why."""
self.status = f"disqualified: {reason}"
lead = LeadContact.create("Sarah from Acme Corp, mentioned $200k budget")
lead.master_prompt("Evaluate this lead and take the right action")
# → qualify() or disqualify() called autonomously based on context
🛠 Architecture
| Class | Role |
|---|---|
ExoModel |
The intelligent object foundation — schema-driven, AI-powered, RAG-aware. Subclass this to define your entities. |
ExoAgent |
The reasoning engine that routes tool calls, manages LLM context, and processes RAG sources. Used internally by ExoModel; also available for direct use. |
ExoModelList[T] |
Typed collection for bulk generation, updating, and export of ExoModel instances in a single LLM call. |
@llm_function |
Decorator that turns any method into an agentic tool, discoverable and callable by ExoAgent at runtime via master_prompt. |
🎯 Use Cases
- 🤝 Consultative Apps — Build AI advisors that guide users through complex processes (insurance claims, financial planning) by populating structured objects in real time.
- 🔌 Agentic Middleware — Bridge human language and rigid backends. Every LLM output fits your API's exact specification before it hits the wire.
- 📊 Sales & CRM Automation — Draft proposals, calculate pricing against business rules, and update lead status autonomously.
- 🕵️ Smart Auditing & Compliance — Create objects that read their own source contracts to populate audit fields and flag inconsistencies without manual oversight.
- 📈 Intelligent Dashboarding — Transform raw logs or transcripts into lists of structured objects (
ExoModelList), ready for data visualization.
🔧 Logging
ExoModel uses Python's standard logging module. No output is shown by default.
import logging
# Show warnings and errors only (recommended for production):
logging.getLogger("exomodel").setLevel(logging.WARNING)
# Show all internal traces (useful for debugging):
logging.basicConfig(level=logging.DEBUG)
logging.getLogger("exomodel").setLevel(logging.DEBUG)
With ExoModel, your domain code stays domain code.
Your objects do what they were always meant to do — just smarter.
🤝 Contributing
We welcome contributions! ExoModel is built by developers for developers.
- Fork the project.
- Create your Feature Branch (
git checkout -b feature/AmazingFeature). - Commit your changes (
git commit -m 'Add some AmazingFeature'). - Push to the branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
📄 License
Distributed under the Apache License 2.0. See LICENSE for more information.
Metadata
Release files for exomodel 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| exomodel-1.0.4.tar.gz | 57.2 kB | Without provenance | Details for exomodel-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| exomodel-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for exomodel-1.0.4-py3-none-any.whl |
Total release size: 94.7 kB
Release files / exomodel-1.0.4.tar.gz
| Download URL | exomodel-1.0.4.tar.gz |
|---|---|
| Size | 57.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0e710369a97d66317105d782b37a8ef0c8b10f2a35d760e9182b5946c149adc
|
|
BLAKE2b-256 checksum How to use checksums |
2c0976a211fafbede684576bd26e30cb0b80225f9950817256c8da96f5233e30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / exomodel-1.0.4-py3-none-any.whl
| Download URL | exomodel-1.0.4-py3-none-any.whl |
|---|---|
| Size | 37.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf531dd21b6bf33f0b9f1380efdf054b0d136cf27b8f223684f24ed49cfc29be
|
|
BLAKE2b-256 checksum How to use checksums |
97f64b3f35dfff96609b7dda7a0fa08e1adbf941ee5a931dbb84a9c4105f3913
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for exomodel 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.