sinapsis 0.2.18__tar.gz → 0.2.19__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.
Files changed (29) hide show
  1. {sinapsis-0.2.18 → sinapsis-0.2.19}/PKG-INFO +10 -2
  2. {sinapsis-0.2.18 → sinapsis-0.2.19}/README.md +9 -1
  3. {sinapsis-0.2.18 → sinapsis-0.2.19}/pyproject.toml +1 -1
  4. {sinapsis-0.2.18 → sinapsis-0.2.19}/src/sinapsis/webapp/chatbot_base.py +13 -2
  5. {sinapsis-0.2.18 → sinapsis-0.2.19}/src/sinapsis.egg-info/PKG-INFO +10 -2
  6. {sinapsis-0.2.18 → sinapsis-0.2.19}/.dockerignore +0 -0
  7. {sinapsis-0.2.18 → sinapsis-0.2.19}/.gitignore +0 -0
  8. {sinapsis-0.2.18 → sinapsis-0.2.19}/.pre-commit-config.yaml +0 -0
  9. {sinapsis-0.2.18 → sinapsis-0.2.19}/.python-version +0 -0
  10. {sinapsis-0.2.18 → sinapsis-0.2.19}/LICENSE +0 -0
  11. {sinapsis-0.2.18 → sinapsis-0.2.19}/README-internal.md +0 -0
  12. {sinapsis-0.2.18 → sinapsis-0.2.19}/docker/Dockerfile +0 -0
  13. {sinapsis-0.2.18 → sinapsis-0.2.19}/docker/compose.yaml +0 -0
  14. {sinapsis-0.2.18 → sinapsis-0.2.19}/setup.cfg +0 -0
  15. {sinapsis-0.2.18 → sinapsis-0.2.19}/src/sinapsis/__init__.py +0 -0
  16. {sinapsis-0.2.18 → sinapsis-0.2.19}/src/sinapsis/bin/sinapsis_cli.py +0 -0
  17. {sinapsis-0.2.18 → sinapsis-0.2.19}/src/sinapsis/configs/hello_world_agent.yml +0 -0
  18. {sinapsis-0.2.18 → sinapsis-0.2.19}/src/sinapsis/templates/__init__.py +0 -0
  19. {sinapsis-0.2.18 → sinapsis-0.2.19}/src/sinapsis/templates/display_hello_world.py +0 -0
  20. {sinapsis-0.2.18 → sinapsis-0.2.19}/src/sinapsis/templates/hello_world.py +0 -0
  21. {sinapsis-0.2.18 → sinapsis-0.2.19}/src/sinapsis/webapp/__init__.py +0 -0
  22. {sinapsis-0.2.18 → sinapsis-0.2.19}/src/sinapsis/webapp/agent_gradio_helper.py +0 -0
  23. {sinapsis-0.2.18 → sinapsis-0.2.19}/src/sinapsis/webapp/agent_webapp_utils.py +0 -0
  24. {sinapsis-0.2.18 → sinapsis-0.2.19}/src/sinapsis/webapp/tts_base.py +0 -0
  25. {sinapsis-0.2.18 → sinapsis-0.2.19}/src/sinapsis.egg-info/SOURCES.txt +0 -0
  26. {sinapsis-0.2.18 → sinapsis-0.2.19}/src/sinapsis.egg-info/dependency_links.txt +0 -0
  27. {sinapsis-0.2.18 → sinapsis-0.2.19}/src/sinapsis.egg-info/entry_points.txt +0 -0
  28. {sinapsis-0.2.18 → sinapsis-0.2.19}/src/sinapsis.egg-info/requires.txt +0 -0
  29. {sinapsis-0.2.18 → sinapsis-0.2.19}/src/sinapsis.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sinapsis
3
- Version: 0.2.18
3
+ Version: 0.2.19
4
4
  Summary: Modular and Universal AI platform
5
5
  Author-email: SinapsisAI <dev@sinapsis.tech>
6
6
  Project-URL: Homepage, https://sinapsis.tech
@@ -218,7 +218,7 @@ you need to make sure the sinapsis base images are built in your system. To buil
218
218
  ```bash
219
219
  git clone git@github.com:Sinapsis-ai/sinapsis.git
220
220
  cd sinapsis
221
- ```
221
+ ```
222
222
 
223
223
  2. **Build the image**
224
224
  ```bash
@@ -347,3 +347,11 @@ This project is licensed under the AGPLv3 license, which encourages open collabo
347
347
 
348
348
  For commercial use, please refer to our [official Sinapsis website](https://sinapsis.tech) for information on obtaining a commercial license.
349
349
 
350
+ <h2 id="license">🔍 License</h2>
351
+
352
+ This project is licensed under the AGPLv3 license, which encourages open collaboration and sharing. For more details, please refer to the [LICENSE](LICENSE) file.
353
+
354
+ For commercial use, please refer to our [official Sinapsis website](https://sinapsis.tech) for information on obtaining a commercial license.
355
+
356
+
357
+
@@ -199,7 +199,7 @@ you need to make sure the sinapsis base images are built in your system. To buil
199
199
  ```bash
200
200
  git clone git@github.com:Sinapsis-ai/sinapsis.git
201
201
  cd sinapsis
202
- ```
202
+ ```
203
203
 
204
204
  2. **Build the image**
205
205
  ```bash
@@ -328,3 +328,11 @@ This project is licensed under the AGPLv3 license, which encourages open collabo
328
328
 
329
329
  For commercial use, please refer to our [official Sinapsis website](https://sinapsis.tech) for information on obtaining a commercial license.
330
330
 
331
+ <h2 id="license">🔍 License</h2>
332
+
333
+ This project is licensed under the AGPLv3 license, which encourages open collaboration and sharing. For more details, please refer to the [LICENSE](LICENSE) file.
334
+
335
+ For commercial use, please refer to our [official Sinapsis website](https://sinapsis.tech) for information on obtaining a commercial license.
336
+
337
+
338
+
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sinapsis"
3
- version = "0.2.18"
3
+ version = "0.2.19"
4
4
  description = "Modular and Universal AI platform"
5
5
  authors = [
6
6
  {name = "SinapsisAI", email = "dev@sinapsis.tech"},
@@ -64,6 +64,7 @@ class ChatKeys:
64
64
  content: str = "content"
65
65
  user: str = "user"
66
66
  assistant: str = "assistant"
67
+ video_path: str = "VideoWriter"
67
68
 
68
69
 
69
70
  @dataclass(config=ConfigDict(arbitrary_types_allowed=True))
@@ -168,8 +169,10 @@ class BaseChatbot:
168
169
  Returns:
169
170
  DataContainer: Structured container with text, images, or audio ready for agent execution.
170
171
  """
172
+
171
173
  container = DataContainer()
172
- container.texts.append(TextPacket(content=message.get(ChatKeys.text), id=user_id, source=session_id))
174
+ if message.get(ChatKeys.text, False):
175
+ container.texts.append(TextPacket(content=message.get(ChatKeys.text), id=user_id, source=session_id))
173
176
  for file_path in message.get(ChatKeys.files, []):
174
177
  if file_path.endswith(".wav"):
175
178
  container.generic_data[ChatKeys.audio_path] = file_path
@@ -203,7 +206,14 @@ class BaseChatbot:
203
206
  image_path = os.path.join(self.gradio_temp_dir, image_packet.source)
204
207
  cv2.imwrite(image_path, img_array)
205
208
  response[ChatKeys.files] = [image_path]
206
-
209
+ if container.generic_data.get(ChatKeys.audio_path, False):
210
+ container.generic_data[ChatKeys.audio_path] = False
211
+ if result_container.audios:
212
+ response[ChatKeys.files] = result_container.audios[-1].content
213
+ if container.generic_data.get(ChatKeys.video_path, False):
214
+ response[ChatKeys.files] = [str(result_container.generic_data.get(ChatKeys.video_path))]
215
+ if not response.get(ChatKeys.text, False):
216
+ response[ChatKeys.text] = ""
207
217
  return response if response else default_response
208
218
 
209
219
  def generate_user_response(
@@ -237,6 +247,7 @@ class BaseChatbot:
237
247
  dict[str, Any]: Chatbot response formatted for the UI.
238
248
  """
239
249
  _ = history
250
+
240
251
  return self.generate_user_response(message, user_id, session_state)
241
252
 
242
253
  def _build_chat_interface(self) -> ChatInterfaceComponents:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sinapsis
3
- Version: 0.2.18
3
+ Version: 0.2.19
4
4
  Summary: Modular and Universal AI platform
5
5
  Author-email: SinapsisAI <dev@sinapsis.tech>
6
6
  Project-URL: Homepage, https://sinapsis.tech
@@ -218,7 +218,7 @@ you need to make sure the sinapsis base images are built in your system. To buil
218
218
  ```bash
219
219
  git clone git@github.com:Sinapsis-ai/sinapsis.git
220
220
  cd sinapsis
221
- ```
221
+ ```
222
222
 
223
223
  2. **Build the image**
224
224
  ```bash
@@ -347,3 +347,11 @@ This project is licensed under the AGPLv3 license, which encourages open collabo
347
347
 
348
348
  For commercial use, please refer to our [official Sinapsis website](https://sinapsis.tech) for information on obtaining a commercial license.
349
349
 
350
+ <h2 id="license">🔍 License</h2>
351
+
352
+ This project is licensed under the AGPLv3 license, which encourages open collaboration and sharing. For more details, please refer to the [LICENSE](LICENSE) file.
353
+
354
+ For commercial use, please refer to our [official Sinapsis website](https://sinapsis.tech) for information on obtaining a commercial license.
355
+
356
+
357
+
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes