Skip to content

Commit b00ae09

Browse files
committed
minor update
1 parent 460c8fa commit b00ae09

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

cognitrix/agents/base.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,11 @@ def initialize(self, session_id: Optional[str] = None):
228228
logger.exception(e)
229229
break
230230

231-
def start(self, session_id: Optional[str] = None):
232-
self.initialize(session_id)
231+
def start(self, session_id: Optional[str] = None, audio: bool = False):
232+
if audio:
233+
self.start_audio()
234+
else:
235+
self.initialize(session_id)
233236

234237
def handle_transcription(self, sentence: str, transcriber: Transcriber):
235238
if sentence:

cognitrix/cli.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,7 @@ def start(args: Namespace):
124124
assistant.format_system_prompt()
125125
asyncio.run(assistant.save())
126126

127-
if args.audio:
128-
assistant.start_audio()
129-
else:
130-
assistant.start(args.session)
127+
assistant.start(args.session, audio=args.audio)
131128
except Exception as e:
132129
logging.exception(e)
133130
parser.print_help()

cognitrix/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import aiofiles
44
import json
55

6-
VERSION = '0.2.2'
6+
VERSION = '0.2.3'
77
SPIRAL_WORKDIR = Path('~').expanduser() / '.cognitrix'
88

99
AGENTS_FILE = SPIRAL_WORKDIR / 'agents.json'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "cognitrix"
3-
version = "0.2.2"
3+
version = "0.2.3"
44
description = "Package for creating AI Agents using llms"
55
authors = ["theonlyamos <[email protected]>"]
66
license = "Apache2"

0 commit comments

Comments
 (0)