Skip to Content
References

src.uagents.setup

Agent’s Setup.

fund_agent_if_low

def fund_agent_if_low(wallet_address: str, min_balance: int = REGISTRATION_FEE)

Checks the agent’s wallet balance and adds testnet funds if it’s below min_balance.

Arguments:

  • wallet_address str - The wallet address of the agent.
  • min_balance int - The minimum balance required.

Returns:

None

register_agent_with_mailbox

def register_agent_with_mailbox(agent: Agent, email: str)

Registers the agent on a mailbox server using the provided email.

Arguments:

  • agent Agent - The agent object to be registered.
  • email str - The email address associated with the agent.

Returns:

None

Last updated on