You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 12, 2024. It is now read-only.
This was an idea that didn't materialize, and also didn't want it to get lost in the mix.
We could create a WalletAgent class that defines some extra fields for the normal Agent class, so that we can avoid excessive tool usage and/or make sure results are consistent.
Still a WIP 🚧
classWalletAgent(Agent):
wallet_account_index: int=Field(..., description="Index of the wallet account")
bitcoin_address: str=Field(..., description="Bitcoin address of the agent")
stacks_address: str=Field(..., description="Stacks address of the agent")
bns_name: Optional[str] =Field(
None, description="BNS name of the agent (optional)"
)
classConfig:
arbitrary_types_allowed=Truedef__init__(self, **data):
super().__init__(**data)
@classmethoddeffrom_agent(
cls,
agent: Agent,
wallet_account_index: int,
bitcoin_address: str,
stacks_address: str,
bns_name: Optional[str] =None,
):
wallet_agent_data=agent.model_dump()
wallet_agent_data.update(
{
"wallet_account_index": wallet_account_index,
"bitcoin_address": bitcoin_address,
"stacks_address": stacks_address,
"bns_name": bns_name,
}
)
returncls(**wallet_agent_data)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This was an idea that didn't materialize, and also didn't want it to get lost in the mix.
We could create a
WalletAgent
class that defines some extra fields for the normalAgent
class, so that we can avoid excessive tool usage and/or make sure results are consistent.Still a WIP 🚧
The text was updated successfully, but these errors were encountered: