Skip to content

Commit 90c4067

Browse files
committed
v0.0.68
1 parent ef356a0 commit 90c4067

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

agixtsdk/__init__.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,23 @@ def get_conversation(
365365
except Exception as e:
366366
return self.handle_error(e)
367367

368+
def fork_conversation(
369+
self,
370+
conversation_name: str,
371+
message_id: str,
372+
):
373+
try:
374+
response = requests.post(
375+
headers=self.headers,
376+
url=f"{self.base_uri}/api/conversation/fork",
377+
json={"conversation_name": conversation_name, "message_id": message_id},
378+
)
379+
if self.verbose:
380+
parse_response(response)
381+
return response.json()["message"]
382+
except Exception as e:
383+
return self.handle_error(e)
384+
368385
def new_conversation(
369386
self,
370387
agent_name: str,

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.67",
11+
version="0.0.68",
1212
description="The AGiXT SDK for Python.",
1313
long_description=long_description,
1414
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)