Senpi Client
The Senpi Client is a specialized Eliza client that extends the DirectClient
class, serving as the primary interface for users on senpi.ai to interact with their agents.
One of its key features is the ability to inject authenticated users data into predefined states, enabling developers to access relevant information during Skill development.
In the Senpi Eliza Skills Framework, the Senpi Client does not include an authentication layer for local development purposes. Consequently, the injected states will return mock data instead of real user data.
These states include:
State | Description |
---|---|
agentName | The name of the agent |
moxieUserInfo | The authenticated user's information |
agentWallet | Details of the agent's wallet |
moxieWalletClient | A MoxieWalletClient instance |
currentWalletBalance | The ERC20 balance of the current wallet |
For more details:
📄️ agentName
agentName state returns the agent's name in string type.
📄️ agentWallet
agentWallet state returns info and metadata of Senpi user's agent wallet that can be used to execute transactions and sign messages.
📄️ currentWalletBalance
currentWalletBalance state returns an array of token balances for the user's agent wallet.
📄️ moxieWalletClient
moxieWalletClient state returns a class instance of Senpi agent's embedded wallet that can be used to execute transactions and sign messages.
🗃️ states
1 item