uAgents is a Python library from Fetch.ai for building autonomous agents. Decorators attach behavior to an agent, so it can run a task on a schedule (an interval handler, for example) or act when an event or message arrives.
On startup, each agent registers on the Almanac, a smart contract on the Fetch.ai blockchain, which makes it discoverable to other uAgents. Agent messages and wallets are cryptographically secured, and an agent keeps a fixed address when it is created from a seed phrase. Agents registered on Agentverse report start, stop, message, and error events to the Agentverse dashboard.
Documented concepts cover addresses, storage, synchronous communication, and broadcast between agents, and a tutorial builds an agent compatible with ASI:One. A uagents-core package holds the core definitions for software that interacts with the Fetch.ai ecosystem and agent marketplace, and a separate examples repository collects official and community agents.
Features
- Decorator-driven agents: interval and event handlers define what an agent does
- Almanac registration: agents join the uAgents network through a smart contract on the Fetch.ai blockchain
- Secured identity: cryptographically secured messages and wallets, with fixed addresses from a seed phrase
- Agent communication: synchronous send-and-receive and broadcast between agents
- Agentverse telemetry: start, stop, message, and error events reported to the Agentverse dashboard
- Core package: uagents-core for building agent software that integrates with the Fetch.ai marketplace
