Skip to content

Commit

Permalink
v0.0.50
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jun 18, 2024
1 parent d011286 commit a5cc808
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
22 changes: 20 additions & 2 deletions agixtsdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
from pydub import AudioSegment
from pydantic import BaseModel
from typing import Dict, List, Any, Optional, Callable
from pathlib import Path
import os


class ChatCompletions(BaseModel):
Expand Down Expand Up @@ -317,6 +315,26 @@ def update_conversation_message(
except Exception as e:
return self.handle_error(e)

def new_conversation_message(
self,
role: str = "user",
message: str = "",
conversation_name: str = "",
) -> str:
try:
response = requests.post(
headers=self.headers,
url=f"{self.base_uri}/api/conversation/message",
json={
"role": role,
"message": message,
"conversation_name": conversation_name,
},
)
return response.json()["message"]
except Exception as e:
return self.handle_error(e)

def prompt_agent(
self,
agent_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.49",
version="0.0.50",
description="The AGiXT SDK for Python.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit a5cc808

Please sign in to comment.