crewplus 0.2.41__tar.gz → 0.2.42__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.

Potentially problematic release.


This version of crewplus might be problematic. Click here for more details.

Files changed (24) hide show
  1. {crewplus-0.2.41 → crewplus-0.2.42}/PKG-INFO +1 -1
  2. {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/callbacks/async_langfuse_handler.py +5 -1
  3. {crewplus-0.2.41 → crewplus-0.2.42}/pyproject.toml +1 -1
  4. {crewplus-0.2.41 → crewplus-0.2.42}/LICENSE +0 -0
  5. {crewplus-0.2.41 → crewplus-0.2.42}/README.md +0 -0
  6. {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/__init__.py +0 -0
  7. {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/callbacks/__init__.py +0 -0
  8. {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/services/__init__.py +0 -0
  9. {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/services/azure_chat_model.py +0 -0
  10. {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/services/gemini_chat_model.py +0 -0
  11. {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/services/init_services.py +0 -0
  12. {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/services/model_load_balancer.py +0 -0
  13. {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/services/tracing_manager.py +0 -0
  14. {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/utils/__init__.py +0 -0
  15. {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/utils/schema_action.py +0 -0
  16. {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/utils/schema_document_updater.py +0 -0
  17. {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/vectorstores/milvus/__init__.py +0 -0
  18. {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/vectorstores/milvus/milvus_schema_manager.py +0 -0
  19. {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/vectorstores/milvus/schema_milvus.py +0 -0
  20. {crewplus-0.2.41 → crewplus-0.2.42}/crewplus/vectorstores/milvus/vdb_service.py +0 -0
  21. {crewplus-0.2.41 → crewplus-0.2.42}/docs/GeminiChatModel.md +0 -0
  22. {crewplus-0.2.41 → crewplus-0.2.42}/docs/ModelLoadBalancer.md +0 -0
  23. {crewplus-0.2.41 → crewplus-0.2.42}/docs/VDBService.md +0 -0
  24. {crewplus-0.2.41 → crewplus-0.2.42}/docs/index.md +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: crewplus
3
- Version: 0.2.41
3
+ Version: 0.2.42
4
4
  Summary: Base services for CrewPlus AI applications
5
5
  Author-Email: Tim Liu <tim@opsmateai.com>
6
6
  License: MIT
@@ -50,8 +50,12 @@ class AsyncLangfuseCallbackHandler(AsyncCallbackHandler):
50
50
  async def on_llm_start(
51
51
  self, serialized: Dict[str, Any], prompts: List[str], **kwargs: Any
52
52
  ) -> None:
53
+ # WORKAROUND: LangChain's async implementation can sometimes pass a raw
54
+ # string for prompts instead of a list. We wrap it in a list to ensure
55
+ # compatibility with the synchronous handler.
56
+ corrected_prompts = prompts if isinstance(prompts, list) else [prompts]
53
57
  await asyncio.to_thread(
54
- self.sync_handler.on_llm_start, serialized, prompts, **kwargs
58
+ self.sync_handler.on_llm_start, serialized, corrected_prompts, **kwargs
55
59
  )
56
60
 
57
61
  async def on_llm_end(self, response: LLMResult, **kwargs: Any) -> None:
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
6
6
 
7
7
  [project]
8
8
  name = "crewplus"
9
- version = "0.2.41"
9
+ version = "0.2.42"
10
10
  description = "Base services for CrewPlus AI applications"
11
11
  authors = [
12
12
  { name = "Tim Liu", email = "tim@opsmateai.com" },
File without changes
File without changes
File without changes
File without changes