Spaces:
Sleeping
Sleeping
Update components/agentcreation.py
Browse files
components/agentcreation.py
CHANGED
|
@@ -80,9 +80,7 @@ def load_keypair(agent):
|
|
| 80 |
|
| 81 |
class VelocityPayableAgent():
|
| 82 |
|
| 83 |
-
def __init__(self
|
| 84 |
-
|
| 85 |
-
self.agent=agent
|
| 86 |
self.tools = [load_keypair_tool,transfer_sol_tool]
|
| 87 |
|
| 88 |
|
|
@@ -96,8 +94,8 @@ class VelocityPayableAgent():
|
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
-
def Agentinit(self):
|
| 100 |
-
create_keypair(
|
| 101 |
|
| 102 |
|
| 103 |
def Agent(self,user_input):
|
|
@@ -110,7 +108,7 @@ class VelocityPayableAgent():
|
|
| 110 |
"type": "function",
|
| 111 |
"function": {
|
| 112 |
"name": "load_keypair",
|
| 113 |
-
"description": "Load the Solana keypair for
|
| 114 |
"parameters": {
|
| 115 |
"type": "object",
|
| 116 |
"properties": {
|
|
|
|
| 80 |
|
| 81 |
class VelocityPayableAgent():
|
| 82 |
|
| 83 |
+
def __init__(self):
|
|
|
|
|
|
|
| 84 |
self.tools = [load_keypair_tool,transfer_sol_tool]
|
| 85 |
|
| 86 |
|
|
|
|
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
+
def Agentinit(self,agent):
|
| 98 |
+
create_keypair(agent)
|
| 99 |
|
| 100 |
|
| 101 |
def Agent(self,user_input):
|
|
|
|
| 108 |
"type": "function",
|
| 109 |
"function": {
|
| 110 |
"name": "load_keypair",
|
| 111 |
+
"description": "Load the Solana keypair for for the provided agent id.",
|
| 112 |
"parameters": {
|
| 113 |
"type": "object",
|
| 114 |
"properties": {
|