Build AI agents in minutes, not weeks.
pip install entity-corefromentityimportAgentagent=Agent() # Zero configresponse=awaitagent.chat("Hello!") # Ready to use# Agent = Resources + WorkflowfromentityimportAgentfromentity.defaultsimportload_defaultsagent=Agent(
resources=load_defaults(), # Memory, LLM, Storageworkflow=default_workflow() # 6-stage pipeline
)fromentityimportAgentagent=Agent()
awaitagent.chat("Tell me a joke")agent=Agent.from_config({
"role": "You are a Python tutor",
"plugins": {"think": ["reasoning_plugin"]}
})
awaitagent.chat("Explain decorators")fromentity.toolsimportcalculator, web_searchagent=Agent.from_config({
"plugins": {
"do": [calculator, web_search]
}
})
awaitagent.chat("Search Python 3.12 features and calculate 15% of 200")fromentityimportAgentfromentity.monitoringimportsetup_observabilityagent=Agent.from_config("production.yaml")
setup_observability(agent)
awaitagent.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
}fromentity.plugins.baseimportPluginclassMyPlugin(Plugin):
supported_stages= ["think"]
asyncdef_execute_impl(self, context):
# Your logic herereturnf"Processed: {context.message}"# Use itagent=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.yamlplugins:
parse: [intent_classifier, sentiment_analyzer]do: [knowledge_base, ticket_system]review: [compliance_checker]# reviewer.yamlplugins:
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. 🚀