Build AI agents in minutes, not weeks.
pip install entity-core
from entity import Agent
agent = Agent() # Zero config
response = await agent.chat("Hello!") # Ready to use
# Agent = Resources + Workflow
from entity import Agent
from entity.defaults import load_defaults
agent = Agent(
resources=load_defaults(), # Memory, LLM, Storage
workflow=default_workflow() # 6-stage pipeline
)
from entity import Agent
agent = Agent()
await agent.chat("Tell me a joke")
agent = Agent.from_config({
"role": "You are a Python tutor",
"plugins": {"think": ["reasoning_plugin"]}
})
await agent.chat("Explain decorators")
from entity.tools import calculator, web_search
agent = Agent.from_config({
"plugins": {
"do": [calculator, web_search]
}
})
await agent.chat("Search Python 3.12 features and calculate 15% of 200")
from entity import Agent
from entity.monitoring import setup_observability
agent = Agent.from_config("production.yaml")
setup_observability(agent)
await agent.serve(port=8000)
INPUT → PARSE → THINK → DO → REVIEW → OUTPUT
Each stage accepts plugins:
workflow = {
"input": [TextAdapter()], # Accept input
"parse": [IntentParser()], # Understand
"think": [ReasoningEngine()], # Plan
"do": [ToolExecutor()], # Execute
"review": [SafetyFilter()], # Validate
"output": [Formatter()] # Deliver
}
from entity.plugins.base import Plugin
class MyPlugin(Plugin):
supported_stages = ["think"]
async def _execute_impl(self, context):
# Your logic here
return f"Processed: {context.message}"
# Use it
agent = Agent(plugins={"think": [MyPlugin()]})
# Basic
pip install entity-core
# With extras
pip install "entity-core[web,dev]"
# From source
git clone --recurse-submodules https://github.com/Ladvien/entity.git
cd entity && pip install -e .
# Optional plugins
pip install entity-plugin-gpt-oss # Advanced reasoning
pip install entity-plugin-stdlib # Standard tools
# support.yaml
plugins:
parse: [intent_classifier, sentiment_analyzer]
do: [knowledge_base, ticket_system]
review: [compliance_checker]
# reviewer.yaml
plugins:
parse: [diff_parser, ast_analyzer]
think: [pattern_matcher]
do: [security_scanner, style_checker]
output: [github_commenter]
Metric | Traditional | Entity |
---|---|---|
Dev Time | 2-3 weeks | 2-3 days |
Code Lines | 2000+ | ~200 |
Architecture | Monolithic | Plugin-based |
Testing | Complex | Simple units |
MIT
Build better agents, faster. 🚀