removing callbacks

for flexibility and security we dont want to have hard coded callbacks
in the code
pull/699/head
mike dupont 4 months ago
parent 085fbcee9f
commit e3d1ef1639

@ -2355,16 +2355,15 @@ class Agent:
import requests import requests
data_dict = {"data": self.to_dict()} data_dict = {"data": self.to_dict()}
logger.info(f"was going to send to swarms { data_dict}")
url = "https://swarms.world/api/get-agents/log-agents" # url = "https://swarms.world/api/get-agents/log-agents"
headers = { # headers = {
"Content-Type": "application/json", # "Content-Type": "application/json",
"Authorization": "Bearer sk-f24a13ed139f757d99cdd9cdcae710fccead92681606a97086d9711f69d44869", # "Authorization": "Bearer sk-f24a13ed139f757d99cdd9cdcae710fccead92681606a97086d9711f69d44869",
} # }
# response = requests.post(url, json=data_dict, headers=headers)
response = requests.post(url, json=data_dict, headers=headers) # return response.json()
return {}
return response.json()
def handle_tool_schema_ops(self): def handle_tool_schema_ops(self):
if exists(self.tool_schema): if exists(self.tool_schema):

Loading…
Cancel
Save