Agents storage

Agents storage


This file can be run on any platform supporting Python, with the necessary install permissions. This example shows how to use an Agent's storage through the uAgents Python library.

Supporting documentation

The agent
from uagents import Agent, Context
agent = Agent(name="bob")
async def initialize_storage(ctx: Context):"count", 0)
async def on_interval(ctx: Context):
    current_count ="count")"My count is: {current_count}")"count", current_count + 1)
if __name__ == "__main__":

Was this page helpful?