Skip to content

Commit

Permalink
Add get_chain_args endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Aug 7, 2023
1 parent b14eaba commit ced2304
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions agixtsdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,16 @@ def get_chain_responses(self, chain_name: str) -> Dict[str, Any]:
except Exception as e:
return self.handle_error(e)

def get_chain_args(self, chain_name: str) -> List[str]:
try:
response = requests.get(
headers=self.headers,
url=f"{self.base_uri}/api/chain/{chain_name}/args",
)
return response.json()["chain_args"]
except Exception as e:
return self.handle_error(e)

def run_chain(
self,
chain_name: str,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name="agixtsdk",
version="0.0.17",
version="0.0.18",
description="The AGiXT SDK for Python.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit ced2304

Please sign in to comment.