Skip to main content

An AI Agent

Project description

Aser

Aser is equipped with standardized AI capability middleware, such as knowledge, memory, tracing, thinking, 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
)

Integrations & Examples

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.

Create an AI Agent with Model 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 with Model Smart Contract Protocol example

Create an AI Agent Server example

Create an AI Agent with CLI example

Create an AI Agent with Thinking example

Create an AI Agent with MCP example

Create an AI Agent with Workflow example

Create an AI Agent with UI example

Create a Discord AI Agent example

Create a Telegram AI Agent example

Create a Farcaster AI Agent 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.5.tar.gz (29.0 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.5-py3-none-any.whl (37.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aser-0.1.5.tar.gz
  • Upload date:
  • Size: 29.0 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.5.tar.gz
Algorithm Hash digest
SHA256 5a8f9c1b705ad05b94c92e9ff7c18c3e615b208a74c1516c971cf39037b8db03
MD5 57ce484d9b78834ecffee08604e40217
BLAKE2b-256 a80529dccaace4e1fd2713705ba131e0948478903048aaf63db39aa0e544b7c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aser-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 37.7 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c800102a509690cc9e7c320720f87877f9f8738be8a1d0cf8091eb832808816c
MD5 7b9234d1695a1d907e8e00d7b7a08ad7
BLAKE2b-256 a2984fa5334bd510f00b9694cf1af6c26aa990707f8b9e3aa41632e1a27e6870

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