ws-bom-robot-app 0.0.12__tar.gz → 0.0.13__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 (52) hide show
  1. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/PKG-INFO +6 -4
  2. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/README.md +5 -3
  3. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/setup.py +1 -1
  4. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/task_manager.py +3 -2
  5. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app.egg-info/PKG-INFO +6 -4
  6. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/pyproject.toml +0 -0
  7. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/setup.cfg +0 -0
  8. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/__init__.py +0 -0
  9. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/auth.py +0 -0
  10. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/config.py +0 -0
  11. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/cron_manager.py +0 -0
  12. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/__init__.py +0 -0
  13. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/agent_description.py +0 -0
  14. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/agent_handler.py +0 -0
  15. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/agent_lcel.py +0 -0
  16. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/api.py +0 -0
  17. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/defaut_prompt.py +0 -0
  18. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/main.py +0 -0
  19. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/models/__init__.py +0 -0
  20. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/models/api.py +0 -0
  21. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/models/base.py +0 -0
  22. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/models/kb.py +0 -0
  23. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/settings.py +0 -0
  24. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/tools/__init__.py +0 -0
  25. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/tools/models/__init__.py +0 -0
  26. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/tools/models/main.py +0 -0
  27. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/tools/tool_builder.py +0 -0
  28. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/tools/tool_manager.py +0 -0
  29. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/tools/utils.py +0 -0
  30. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/utils/__init__.py +0 -0
  31. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/utils/agent_utils.py +0 -0
  32. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/utils/download.py +0 -0
  33. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/utils/faiss_helper.py +0 -0
  34. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/utils/kb.py +0 -0
  35. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/utils/print.py +0 -0
  36. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/utils/webhooks.py +0 -0
  37. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/vector_store/__init__.py +0 -0
  38. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/vector_store/generator.py +0 -0
  39. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/vector_store/integration/__init__.py +0 -0
  40. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/vector_store/integration/base.py +0 -0
  41. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/vector_store/integration/manager.py +0 -0
  42. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/vector_store/integration/sitemap.py +0 -0
  43. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/vector_store/loader/__init__.py +0 -0
  44. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/vector_store/loader/base.py +0 -0
  45. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/llm/vector_store/loader/json_loader.py +0 -0
  46. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/main.py +0 -0
  47. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/requirements.txt +0 -0
  48. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app/util.py +0 -0
  49. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app.egg-info/SOURCES.txt +0 -0
  50. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app.egg-info/dependency_links.txt +0 -0
  51. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app.egg-info/requires.txt +0 -0
  52. {ws_bom_robot_app-0.0.12 → ws_bom_robot_app-0.0.13}/ws_bom_robot_app.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ws_bom_robot_app
3
- Version: 0.0.12
3
+ Version: 0.0.13
4
4
  Summary: A FastAPI application serving ws bom/robot/llm platform ai.
5
5
  Home-page: https://github.com/websolutespa/bom
6
6
  Author: Websolute Spa
@@ -69,19 +69,21 @@ robot_cms_files_folder=llmKbFile
69
69
 
70
70
  ```bash
71
71
  fastapi dev --port 6001
72
- #uvicorn --reload --host 0.0.0.0 --port 6001 main:app
72
+ #uvicorn main:app --app-dir ./ws_bom_robot_app --reload --host 0.0.0.0 --port 6001
73
73
  ```
74
74
 
75
75
  - production
76
76
 
77
- ```bash
78
- fastapi run --port 6001
77
+ ```bash
78
+ uvicorn main:app --host 0.0.0.0 --port 6001
79
79
  ```
80
80
 
81
81
  - production with [multipler workers](https://fastapi.tiangolo.com/deployment/server-workers/#multiple-workers)
82
82
 
83
83
  ```bash
84
84
  fastapi run --port 6001 --workers 4
85
+ #uvicorn main:app --host 0.0.0.0 --port 6001 --workers 4
86
+ #gunicorn -w 4 -k uvicorn.workers.UvicornWorker main:app --bind
85
87
  ```
86
88
 
87
89
  ### 🔖 Windows requirements
@@ -37,19 +37,21 @@ robot_cms_files_folder=llmKbFile
37
37
 
38
38
  ```bash
39
39
  fastapi dev --port 6001
40
- #uvicorn --reload --host 0.0.0.0 --port 6001 main:app
40
+ #uvicorn main:app --app-dir ./ws_bom_robot_app --reload --host 0.0.0.0 --port 6001
41
41
  ```
42
42
 
43
43
  - production
44
44
 
45
- ```bash
46
- fastapi run --port 6001
45
+ ```bash
46
+ uvicorn main:app --host 0.0.0.0 --port 6001
47
47
  ```
48
48
 
49
49
  - production with [multipler workers](https://fastapi.tiangolo.com/deployment/server-workers/#multiple-workers)
50
50
 
51
51
  ```bash
52
52
  fastapi run --port 6001 --workers 4
53
+ #uvicorn main:app --host 0.0.0.0 --port 6001 --workers 4
54
+ #gunicorn -w 4 -k uvicorn.workers.UvicornWorker main:app --bind
53
55
  ```
54
56
 
55
57
  ### 🔖 Windows requirements
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="ws_bom_robot_app",
5
- version="0.0.12",
5
+ version="0.0.13",
6
6
  description="A FastAPI application serving ws bom/robot/llm platform ai.",
7
7
  long_description=open("README.md", encoding='utf-8').read(),
8
8
  long_description_content_type="text/markdown",
@@ -184,6 +184,8 @@ class TaskManagerStrategy(ABC):
184
184
  task_entry.status.metadata.end_at = str(datetime.now().isoformat())
185
185
  #strategy-specific behavior
186
186
  self.update_task_status(task_entry)
187
+ #remove from running tasks
188
+ del self.running_tasks[task_entry.id]
187
189
  #notify webhooks
188
190
  if headers and headers.x_ws_bom_webhooks:
189
191
  asyncio.create_task(
@@ -203,12 +205,11 @@ class TaskManagerStrategy(ABC):
203
205
  async def _run_task_with_semaphore(self, task_entry: TaskEntry):
204
206
  """Run a task with semaphore control to limit concurrency."""
205
207
  async with self.semaphore:
206
- self.running_tasks[task_entry.id]=task_entry
207
208
  await self._execute_task(task_entry)
208
- del self.running_tasks[task_entry.id]
209
209
 
210
210
  async def _execute_task(self, task_entry: TaskEntry):
211
211
  """Execute a task and handle its lifecycle."""
212
+ self.running_tasks[task_entry.id]=task_entry
212
213
  task_entry.status.metadata.start_at = str(datetime.now().isoformat())
213
214
  task_entry.task = asyncio.create_task(task_entry.coroutine)
214
215
  task_entry.task.add_done_callback(self.task_done_callback(task_entry, task_entry.headers))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ws_bom_robot_app
3
- Version: 0.0.12
3
+ Version: 0.0.13
4
4
  Summary: A FastAPI application serving ws bom/robot/llm platform ai.
5
5
  Home-page: https://github.com/websolutespa/bom
6
6
  Author: Websolute Spa
@@ -69,19 +69,21 @@ robot_cms_files_folder=llmKbFile
69
69
 
70
70
  ```bash
71
71
  fastapi dev --port 6001
72
- #uvicorn --reload --host 0.0.0.0 --port 6001 main:app
72
+ #uvicorn main:app --app-dir ./ws_bom_robot_app --reload --host 0.0.0.0 --port 6001
73
73
  ```
74
74
 
75
75
  - production
76
76
 
77
- ```bash
78
- fastapi run --port 6001
77
+ ```bash
78
+ uvicorn main:app --host 0.0.0.0 --port 6001
79
79
  ```
80
80
 
81
81
  - production with [multipler workers](https://fastapi.tiangolo.com/deployment/server-workers/#multiple-workers)
82
82
 
83
83
  ```bash
84
84
  fastapi run --port 6001 --workers 4
85
+ #uvicorn main:app --host 0.0.0.0 --port 6001 --workers 4
86
+ #gunicorn -w 4 -k uvicorn.workers.UvicornWorker main:app --bind
85
87
  ```
86
88
 
87
89
  ### 🔖 Windows requirements