An AI Agent
Project description
Aser
Aser is a minimalist, modular, and versatile AI agent framework. You can assemble an agent with just a few lines of code.
Website | Documentation | Get Support | 中文
Installation
Install from pypi:
pip install aser
Or clone the repository:
git clone https://github.com/AmeNetwork/aser.git
cd aser
pip install -r requirements.txt
Set up environment variables
Please refer to .env.example file, and create a .env file with your own settings. You don't need to configure all environment variables, just select the ones you use.
.env file example:
#MODEL
MODEL_BASE_URL=<your model base url>
MODEL_KEY=<your model key>
Usage
#Basic
from aser.agent import Agent
agent=Agent(name="aser agent",model="gpt-4.1-mini")
response=agent.chat("what's bitcoin?")
print(response)
# Full configuration
aser = Agent(
name="aser",
model="gpt-4o-mini",
tools=[web3bio, exa],
knowledge=knowledge,
memory=memory,
chat2web3=[connector],
mcp=[price],
trace=trace
)
Get Started
If you clone the project source code, before running the examples, please run pip install -e . in the root directory, which allows Python to find and import the aser module from the local source code. If you install it via pip install aser , you can run the examples directly.
Beginner:
- Aser Agent: Your First AI Agent
- Model Config: Customize the LLM configuration
- Memory: Build an agent with memory storage
- RAG: Build an agent with knowledge retrieval
- Tools: Build an agent with tools
- Toolkits: Use built-in toolkits
- Trace: Build an agent with tracing
- API: Build an agent with API server
- CLI: Interact with the agent using the CLI
- Discord: Build an agent with Discord client
- Telegram: Build an agent with Telegram client
- Farcaster: Build an agent with Farcaster client
Intermediate:
- CoT: Chain of Thought
- MCP: Model Context Protocol
- Workflow: Custom Agent Workflows
- Evaluation: Evaluate an AI Agent
- Router Multi-Agent: Multiple agents distribute tasks based on routing
- Sequential Multi-Agent: Multiple agents work sequentially
- Parallel Multi-Agent: Multiple agents work simultaneously
- Reactive Multi-Agent: Multiple agents respond to changes
- Hierarchical Multi-Agent: Multiple agents work at different levels
- Agent UI: Interact with the agent through the UI
Advanced:
- MSCP: Model Smart Contract Protocol
- A2Aser: Integrate Google Agent2Agent (A2A) Protocol
- A2A Client: Agent to Agent Client
Experiments:
- ERC8004 Server Agent: Server Agent Offers services and executes tasks
- ERC8004 Identity: Identity registration is performed using the MSCP ERC8004 Connector
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 aser-0.1.8.tar.gz.
File metadata
- Download URL: aser-0.1.8.tar.gz
- Upload date:
- Size: 34.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cde916805b9dc39a7e3ba26630f9e2ded4b3ba247d631cbf2fc5f607ed3e210e
|
|
| MD5 |
4704974bf385db244e48900082d15da1
|
|
| BLAKE2b-256 |
4727a33d48af22fa4af38976f9dca650f98818b1049c8296e54a3377be2b5b0b
|
File details
Details for the file aser-0.1.8-py3-none-any.whl.
File metadata
- Download URL: aser-0.1.8-py3-none-any.whl
- Upload date:
- Size: 42.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8eff8b34969f3d529f8d0103d184542e5f973eeef5e90cc58f238d546790932
|
|
| MD5 |
328ef5741006b9408d0430e49905caa3
|
|
| BLAKE2b-256 |
48b8f23fe667c969ce80817349a49a087f53db5575371712d7afd35758f2dd9e
|