cognitrix 0.2.2__tar.gz → 0.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cognitrix-0.2.2 → cognitrix-0.2.3}/PKG-INFO +1 -1
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/agents/base.py +5 -2
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/cli.py +1 -4
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/config.py +1 -1
- {cognitrix-0.2.2 → cognitrix-0.2.3}/pyproject.toml +1 -1
- {cognitrix-0.2.2 → cognitrix-0.2.3}/LICENSE +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/README.md +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/__init__.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/agents/__init__.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/agents/assistant.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/agents/core.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/agents/templates.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/app.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/llms/__init__.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/llms/anthropic_llm.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/llms/base.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/llms/clarifai_llm.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/llms/cohere_llm.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/llms/google_llm.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/llms/groq_llm.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/llms/local_llm.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/llms/mindsdb_llm.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/llms/openai_llm.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/llms/session.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/llms/together_llm.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/tasks/__init__.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/tasks/base.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/tools/__init__.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/tools/base.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/tools/misc.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/tools/python.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/tools/tool.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/transcriber.py +0 -0
- {cognitrix-0.2.2 → cognitrix-0.2.3}/cognitrix/utils/__init__.py +0 -0
|
@@ -228,8 +228,11 @@ class Agent(BaseModel):
|
|
|
228
228
|
logger.exception(e)
|
|
229
229
|
break
|
|
230
230
|
|
|
231
|
-
def start(self, session_id: Optional[str] = None):
|
|
232
|
-
|
|
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)
|
|
233
236
|
|
|
234
237
|
def handle_transcription(self, sentence: str, transcriber: Transcriber):
|
|
235
238
|
if sentence:
|
|
@@ -124,10 +124,7 @@ def start(args: Namespace):
|
|
|
124
124
|
assistant.format_system_prompt()
|
|
125
125
|
asyncio.run(assistant.save())
|
|
126
126
|
|
|
127
|
-
|
|
128
|
-
assistant.start_audio()
|
|
129
|
-
else:
|
|
130
|
-
assistant.start(args.session)
|
|
127
|
+
assistant.start(args.session, audio=args.audio)
|
|
131
128
|
except Exception as e:
|
|
132
129
|
logging.exception(e)
|
|
133
130
|
parser.print_help()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|