Fetch.ai has recently launched ASI-1 Mini, a Web3-native LLM designed for complex, autonomous workflows.
Try nowWelcome. In this tutorial I will show you how to retrieve addresses related to your microagent. First of all, let's create a script named agent_addresses.py.
You can print your microagent's addresses in the following way:
from uagents import Agent alice = Agent(name="alice") print("uAgent address: ", alice.address) print("Fetch network address: ", alice.wallet.address())
As it is possible to notice, our microagent will have two types of addresses:
a microagent address: this is the main microagent identifier. Other microagents can use this to query the agent's information in the Almanac contract.
a Fetch address: this provides the agent with the capabilities for interacting with the Fetch ledger such as registering in the Almanac contract.
Save your script and go on your terminal. Run the script.
python agent_addresses.py
The terminal output would be: