agently 4.0.5.7__tar.gz → 4.0.5.8__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 (76) hide show
  1. {agently-4.0.5.7 → agently-4.0.5.8}/PKG-INFO +1 -1
  2. {agently-4.0.5.7 → agently-4.0.5.8}/agently/builtins/plugins/ModelRequester/OpenAICompatible.py +11 -0
  3. {agently-4.0.5.7 → agently-4.0.5.8}/pyproject.toml +1 -1
  4. {agently-4.0.5.7 → agently-4.0.5.8}/LICENSE +0 -0
  5. {agently-4.0.5.7 → agently-4.0.5.8}/README.md +0 -0
  6. {agently-4.0.5.7 → agently-4.0.5.8}/agently/__init__.py +0 -0
  7. {agently-4.0.5.7 → agently-4.0.5.8}/agently/_default_init.py +0 -0
  8. {agently-4.0.5.7 → agently-4.0.5.8}/agently/_default_settings.yaml +0 -0
  9. {agently-4.0.5.7 → agently-4.0.5.8}/agently/base.py +0 -0
  10. {agently-4.0.5.7 → agently-4.0.5.8}/agently/builtins/agent_extensions/AutoFuncExtension.py +0 -0
  11. {agently-4.0.5.7 → agently-4.0.5.8}/agently/builtins/agent_extensions/ChatSessionExtension.py +0 -0
  12. {agently-4.0.5.7 → agently-4.0.5.8}/agently/builtins/agent_extensions/ConfigurePromptExtension.py +0 -0
  13. {agently-4.0.5.7 → agently-4.0.5.8}/agently/builtins/agent_extensions/KeyWaiterExtension.py +0 -0
  14. {agently-4.0.5.7 → agently-4.0.5.8}/agently/builtins/agent_extensions/ToolExtension.py +0 -0
  15. {agently-4.0.5.7 → agently-4.0.5.8}/agently/builtins/agent_extensions/__init__.py +0 -0
  16. {agently-4.0.5.7 → agently-4.0.5.8}/agently/builtins/hookers/ConsoleHooker.py +0 -0
  17. {agently-4.0.5.7 → agently-4.0.5.8}/agently/builtins/hookers/PureLoggerHooker.py +0 -0
  18. {agently-4.0.5.7 → agently-4.0.5.8}/agently/builtins/hookers/SystemMessageHooker.py +0 -0
  19. {agently-4.0.5.7 → agently-4.0.5.8}/agently/builtins/plugins/PromptGenerator/AgentlyPromptGenerator.py +0 -0
  20. {agently-4.0.5.7 → agently-4.0.5.8}/agently/builtins/plugins/ResponseParser/AgentlyResponseParser.py +0 -0
  21. {agently-4.0.5.7 → agently-4.0.5.8}/agently/builtins/plugins/ToolManager/AgentlyToolManager.py +0 -0
  22. {agently-4.0.5.7 → agently-4.0.5.8}/agently/builtins/plugins/__init__.py +0 -0
  23. {agently-4.0.5.7 → agently-4.0.5.8}/agently/builtins/tools/Browse.py +0 -0
  24. {agently-4.0.5.7 → agently-4.0.5.8}/agently/builtins/tools/Search.py +0 -0
  25. {agently-4.0.5.7 → agently-4.0.5.8}/agently/builtins/tools/__init__.py +0 -0
  26. {agently-4.0.5.7 → agently-4.0.5.8}/agently/core/Agent.py +0 -0
  27. {agently-4.0.5.7 → agently-4.0.5.8}/agently/core/EventCenter.py +0 -0
  28. {agently-4.0.5.7 → agently-4.0.5.8}/agently/core/ExtensionHandlers.py +0 -0
  29. {agently-4.0.5.7 → agently-4.0.5.8}/agently/core/ModelRequest.py +0 -0
  30. {agently-4.0.5.7 → agently-4.0.5.8}/agently/core/PluginManager.py +0 -0
  31. {agently-4.0.5.7 → agently-4.0.5.8}/agently/core/Prompt.py +0 -0
  32. {agently-4.0.5.7 → agently-4.0.5.8}/agently/core/Tool.py +0 -0
  33. {agently-4.0.5.7 → agently-4.0.5.8}/agently/core/TriggerFlow/BluePrint.py +0 -0
  34. {agently-4.0.5.7 → agently-4.0.5.8}/agently/core/TriggerFlow/Chunk.py +0 -0
  35. {agently-4.0.5.7 → agently-4.0.5.8}/agently/core/TriggerFlow/Execution.py +0 -0
  36. {agently-4.0.5.7 → agently-4.0.5.8}/agently/core/TriggerFlow/Process.py +0 -0
  37. {agently-4.0.5.7 → agently-4.0.5.8}/agently/core/TriggerFlow/TriggerFlow.py +0 -0
  38. {agently-4.0.5.7 → agently-4.0.5.8}/agently/core/TriggerFlow/__init__.py +0 -0
  39. {agently-4.0.5.7 → agently-4.0.5.8}/agently/core/TriggerFlow/process/BaseProcess.py +0 -0
  40. {agently-4.0.5.7 → agently-4.0.5.8}/agently/core/TriggerFlow/process/ForEachProcess.py +0 -0
  41. {agently-4.0.5.7 → agently-4.0.5.8}/agently/core/TriggerFlow/process/MatchCaseProcess.py +0 -0
  42. {agently-4.0.5.7 → agently-4.0.5.8}/agently/core/TriggerFlow/process/__init__.py +0 -0
  43. {agently-4.0.5.7 → agently-4.0.5.8}/agently/core/__init__.py +0 -0
  44. {agently-4.0.5.7 → agently-4.0.5.8}/agently/integrations/chromadb.py +0 -0
  45. {agently-4.0.5.7 → agently-4.0.5.8}/agently/types/__init__.py +0 -0
  46. {agently-4.0.5.7 → agently-4.0.5.8}/agently/types/data/__init__.py +0 -0
  47. {agently-4.0.5.7 → agently-4.0.5.8}/agently/types/data/event.py +0 -0
  48. {agently-4.0.5.7 → agently-4.0.5.8}/agently/types/data/prompt.py +0 -0
  49. {agently-4.0.5.7 → agently-4.0.5.8}/agently/types/data/request.py +0 -0
  50. {agently-4.0.5.7 → agently-4.0.5.8}/agently/types/data/response.py +0 -0
  51. {agently-4.0.5.7 → agently-4.0.5.8}/agently/types/data/serializable.py +0 -0
  52. {agently-4.0.5.7 → agently-4.0.5.8}/agently/types/data/tool.py +0 -0
  53. {agently-4.0.5.7 → agently-4.0.5.8}/agently/types/plugins/EventHooker.py +0 -0
  54. {agently-4.0.5.7 → agently-4.0.5.8}/agently/types/plugins/ModelRequester.py +0 -0
  55. {agently-4.0.5.7 → agently-4.0.5.8}/agently/types/plugins/PromptGenerator.py +0 -0
  56. {agently-4.0.5.7 → agently-4.0.5.8}/agently/types/plugins/ResponseParser.py +0 -0
  57. {agently-4.0.5.7 → agently-4.0.5.8}/agently/types/plugins/ToolManager.py +0 -0
  58. {agently-4.0.5.7 → agently-4.0.5.8}/agently/types/plugins/__init__.py +0 -0
  59. {agently-4.0.5.7 → agently-4.0.5.8}/agently/types/plugins/base.py +0 -0
  60. {agently-4.0.5.7 → agently-4.0.5.8}/agently/types/trigger_flow/__init__.py +0 -0
  61. {agently-4.0.5.7 → agently-4.0.5.8}/agently/types/trigger_flow/trigger_flow.py +0 -0
  62. {agently-4.0.5.7 → agently-4.0.5.8}/agently/utils/DataFormatter.py +0 -0
  63. {agently-4.0.5.7 → agently-4.0.5.8}/agently/utils/DataLocator.py +0 -0
  64. {agently-4.0.5.7 → agently-4.0.5.8}/agently/utils/DataPathBuilder.py +0 -0
  65. {agently-4.0.5.7 → agently-4.0.5.8}/agently/utils/FunctionShifter.py +0 -0
  66. {agently-4.0.5.7 → agently-4.0.5.8}/agently/utils/GeneratorConsumer.py +0 -0
  67. {agently-4.0.5.7 → agently-4.0.5.8}/agently/utils/LazyImport.py +0 -0
  68. {agently-4.0.5.7 → agently-4.0.5.8}/agently/utils/Logger.py +0 -0
  69. {agently-4.0.5.7 → agently-4.0.5.8}/agently/utils/Messenger.py +0 -0
  70. {agently-4.0.5.7 → agently-4.0.5.8}/agently/utils/RuntimeData.py +0 -0
  71. {agently-4.0.5.7 → agently-4.0.5.8}/agently/utils/SerializableRuntimeData.py +0 -0
  72. {agently-4.0.5.7 → agently-4.0.5.8}/agently/utils/Settings.py +0 -0
  73. {agently-4.0.5.7 → agently-4.0.5.8}/agently/utils/Storage.py +0 -0
  74. {agently-4.0.5.7 → agently-4.0.5.8}/agently/utils/StreamingJSONCompleter.py +0 -0
  75. {agently-4.0.5.7 → agently-4.0.5.8}/agently/utils/StreamingJSONParser.py +0 -0
  76. {agently-4.0.5.7 → agently-4.0.5.8}/agently/utils/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agently
3
- Version: 4.0.5.7
3
+ Version: 4.0.5.8
4
4
  Summary:
5
5
  License: Apache-2.0
6
6
  License-File: LICENSE
@@ -372,10 +372,15 @@ class OpenAICompatible(ModelRequester):
372
372
  )
373
373
  full_request_data.update(request_data.request_options)
374
374
  try:
375
+ has_done = False
375
376
  async for sse in await self._aiter_sse_with_retry(
376
377
  client, "POST", request_data.request_url, json=full_request_data, headers=headers_with_auth
377
378
  ):
378
379
  yield sse.event, sse.data
380
+ if sse.data.strip() == "[DONE]":
381
+ has_done = False
382
+ if not has_done:
383
+ yield "message", "[DONE]"
379
384
  except SSEError as e:
380
385
  response = await client.post(
381
386
  request_data.request_url,
@@ -403,6 +408,12 @@ class OpenAICompatible(ModelRequester):
403
408
  error = error_json["error"]
404
409
  error_title = f"{ error['code'] if 'code' in error else 'unknown_code' } - { error['type'] if 'type' in error else 'unknown_type' }"
405
410
  error_detail = error["message"] if "message" in error else ""
411
+ self._messenger.error(
412
+ f"Error: { error_title }\n"
413
+ f"Detail: {error_detail }\n"
414
+ f"Request Data: {full_request_data}",
415
+ status="FAILED",
416
+ )
406
417
  yield "error", error_detail
407
418
  else:
408
419
  self._messenger.error(
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "agently"
3
- version = "4.0.5.7"
3
+ version = "4.0.5.8"
4
4
  description = ""
5
5
  authors = [
6
6
  {name = "Agently Team",email = "developer@agently.tech"},
File without changes
File without changes
File without changes
File without changes