Skip to content

Commit 1c45c55

Browse files
committed
Add commands and training urls to add agent
1 parent 4f619f5 commit 1c45c55

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

agixtsdk/__init__.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,22 @@ def get_embedders(self) -> Dict[str, Any]:
7171
return self.handle_error(e)
7272

7373
def add_agent(
74-
self, agent_name: str, settings: Dict[str, Any] = {}
74+
self,
75+
agent_name: str,
76+
settings: Dict[str, Any] = {},
77+
commands: Dict[str, Any] = {},
78+
training_urls: List[str] = [],
7579
) -> Dict[str, Any]:
7680
try:
7781
response = requests.post(
7882
headers=self.headers,
7983
url=f"{self.base_uri}/api/agent",
80-
json={"agent_name": agent_name, "settings": settings},
84+
json={
85+
"agent_name": agent_name,
86+
"settings": settings,
87+
"commands": commands,
88+
"training_urls": training_urls,
89+
},
8190
)
8291
return response.json()
8392
except Exception as e:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setup(
1010
name="agixtsdk",
11-
version="0.0.36",
11+
version="0.0.37",
1212
description="The AGiXT SDK for Python.",
1313
long_description=long_description,
1414
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)