Spaces:
Sleeping
Sleeping
Update components/agentcreation.py
Browse files
components/agentcreation.py
CHANGED
|
@@ -100,7 +100,7 @@ class VelocityPayableAgent():
|
|
| 100 |
create_keypair(self.agent)
|
| 101 |
|
| 102 |
|
| 103 |
-
def Agent(self):
|
| 104 |
client = Groq(api_key="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")
|
| 105 |
available_functions= {
|
| 106 |
"load_keypair": load_keypair,
|
|
@@ -173,7 +173,7 @@ class VelocityPayableAgent():
|
|
| 173 |
|
| 174 |
|
| 175 |
if response.choices[0].message.tool_calls:
|
| 176 |
-
|
| 177 |
function_response = execute_tool_call(tool_call)
|
| 178 |
messages.append({
|
| 179 |
"role": "tool",
|
|
|
|
| 100 |
create_keypair(self.agent)
|
| 101 |
|
| 102 |
|
| 103 |
+
def Agent(self,user_input):
|
| 104 |
client = Groq(api_key="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")
|
| 105 |
available_functions= {
|
| 106 |
"load_keypair": load_keypair,
|
|
|
|
| 173 |
|
| 174 |
|
| 175 |
if response.choices[0].message.tool_calls:
|
| 176 |
+
for tool_call in response.choices[0].message.tool_calls:
|
| 177 |
function_response = execute_tool_call(tool_call)
|
| 178 |
messages.append({
|
| 179 |
"role": "tool",
|