Skip to main content

An AI Agent

Project description

Aser

Aser is equipped with standardized AI capability middleware, such as knowledge, memory, tracing, CoT, API interfaces, and social clients. By dynamically integrating Web3 toolkits, it helps developers quickly build and launch AI agents with native Web3 capabilities.

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=https://openrouter.ai/api/v1
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:

Your First AI Agent example

Create an AI Agent with Model Config example

Create an AI Agent with Memory example

Create an AI Agent with Knowledge example

Create an AI Agent with Tools example

Create an AI Agent with Toolkits example

Create an AI Agent with Trace example

Create an AI Agent Server example

Create an AI Agent with CLI example

Create a Discord AI Agent example

Create a Telegram AI Agent example

Create a Farcaster AI Agent example

Intermediate:

Create an AI Agent with Chain of Thought example

Create an AI Agent with MCP example

Create an AI Agent with Workflow example

Create an AI Agent with UI example

Evaluate an AI Agent example

Router Multi-Agents example

Sequential Multi-Agents example

Parallel Multi-Agents example

Reactive Multi-Agents example

Hierarchical Multi-Agents example

Advanced:

Create an AI Agent with Model Smart Contract Protocol example

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aser-0.1.7.tar.gz (32.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aser-0.1.7-py3-none-any.whl (40.5 kB view details)

Uploaded Python 3

File details

Details for the file aser-0.1.7.tar.gz.

File metadata

  • Download URL: aser-0.1.7.tar.gz
  • Upload date:
  • Size: 32.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for aser-0.1.7.tar.gz
Algorithm Hash digest
SHA256 26de47b8e7223f4306449e50647dc3fe9570356f1ac334a563b7a29b41d752fa
MD5 bd318f5bdbc0f8aff967b91b2efb6364
BLAKE2b-256 48f252c7c0d98510033902169c73eb99dce5c8a78b2697a7f8cdd60021ba0112

See more details on using hashes here.

File details

Details for the file aser-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: aser-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 40.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for aser-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 fdf409c9387ecc2a4381786541ea1decdcf7009bf0f88eb074b2a3622f7eed84
MD5 b1dd7f05acdb3f2c6eb27ed7b66940c5
BLAKE2b-256 443c893fe7752840040e8ed957a47ad817a6b5703377387a225b5a792ca93c66

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page