Declarative framework for enterprise workflows with MCP integration - Client SDK
Project description
Memra SDK
The core Memra framework for building AI-powered business workflows.
Installation
pip install memra
Quick Start
from memra import Agent, Department, LLM, ExecutionEngine
# Define an agent
agent = Agent(
role="Data Analyst",
job="Analyze customer data",
llm=LLM(model="llama-3.2-11b-vision-preview"),
sops=["Load data", "Perform analysis", "Generate report"],
output_key="analysis_result"
)
# Create a department
department = Department(
name="Analytics",
mission="Provide data insights",
agents=[agent],
workflow_order=["Data Analyst"]
)
# Execute the workflow
engine = ExecutionEngine()
result = engine.execute_department(department, {"data": "customer_data.csv"})
Core Components
Agent
An AI worker that performs specific tasks using LLMs and tools.
Department
A team of agents working together to accomplish a mission.
ExecutionEngine
Orchestrates the execution of departments and their workflows.
LLM
Configuration for language models used by agents.
Examples
See the examples/ directory for basic usage examples:
simple_text_to_sql.py- Basic text-to-SQL conversionask_questions.py- Simple question answering
Documentation
For detailed documentation, visit docs.memra.co
License
MIT License - see LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file memra-0.2.3.tar.gz.
File metadata
- Download URL: memra-0.2.3.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bf0640fcd6044d6912dcc78b6d4a2f43a7476bdb2d19b225c5945d362c3756e
|
|
| MD5 |
7aa3b082316a38af79554bd635889c88
|
|
| BLAKE2b-256 |
606a15c9c0770bcdce7520344a555847d4d6e42714ca6b382ab113c83c49e789
|
File details
Details for the file memra-0.2.3-py3-none-any.whl.
File metadata
- Download URL: memra-0.2.3-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d6c011fd19e4cba89313256dc0ccc8e9d9e53d0e627f97bce06cfdf170b1a75
|
|
| MD5 |
003b9902bbad9238d2931dc89941cfad
|
|
| BLAKE2b-256 |
77201c609801c53be101c561b113778cf19b42f1d0979de91e0dcd678c69cdf7
|