agently 4.0.7.3__tar.gz → 4.0.7.4__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 (86) hide show
  1. {agently-4.0.7.3 → agently-4.0.7.4}/PKG-INFO +1 -1
  2. {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/agent_extensions/SessionExtension.py +1 -1
  3. {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/Session.py +5 -0
  4. agently-4.0.7.4/agently/integrations/fastapi.py +18 -0
  5. {agently-4.0.7.3 → agently-4.0.7.4}/pyproject.toml +1 -1
  6. {agently-4.0.7.3 → agently-4.0.7.4}/LICENSE +0 -0
  7. {agently-4.0.7.3 → agently-4.0.7.4}/README.md +0 -0
  8. {agently-4.0.7.3 → agently-4.0.7.4}/agently/__init__.py +0 -0
  9. {agently-4.0.7.3 → agently-4.0.7.4}/agently/_default_init.py +0 -0
  10. {agently-4.0.7.3 → agently-4.0.7.4}/agently/_default_settings.yaml +0 -0
  11. {agently-4.0.7.3 → agently-4.0.7.4}/agently/base.py +0 -0
  12. {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/agent_extensions/AutoFuncExtension.py +0 -0
  13. {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/agent_extensions/ChatSessionExtension.py +0 -0
  14. {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/agent_extensions/ConfigurePromptExtension.py +0 -0
  15. {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/agent_extensions/KeyWaiterExtension.py +0 -0
  16. {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/agent_extensions/ToolExtension.py +0 -0
  17. {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/agent_extensions/__init__.py +0 -0
  18. {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/hookers/ConsoleHooker.py +0 -0
  19. {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/hookers/PureLoggerHooker.py +0 -0
  20. {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/hookers/SystemMessageHooker.py +0 -0
  21. {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/plugins/ModelRequester/OpenAICompatible.py +0 -0
  22. {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/plugins/PromptGenerator/AgentlyPromptGenerator.py +0 -0
  23. {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/plugins/ResponseParser/AgentlyResponseParser.py +0 -0
  24. {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/plugins/Session/AgentlyMemoSession.py +0 -0
  25. {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/plugins/ToolManager/AgentlyToolManager.py +0 -0
  26. {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/plugins/__init__.py +0 -0
  27. {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/tools/Browse.py +0 -0
  28. {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/tools/Cmd.py +0 -0
  29. {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/tools/Search.py +0 -0
  30. {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/tools/__init__.py +0 -0
  31. {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/Agent.py +0 -0
  32. {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/EventCenter.py +0 -0
  33. {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/ExtensionHandlers.py +0 -0
  34. {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/ModelRequest.py +0 -0
  35. {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/PluginManager.py +0 -0
  36. {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/Prompt.py +0 -0
  37. {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/Tool.py +0 -0
  38. {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/TriggerFlow/BluePrint.py +0 -0
  39. {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/TriggerFlow/Chunk.py +0 -0
  40. {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/TriggerFlow/Execution.py +0 -0
  41. {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/TriggerFlow/Process.py +0 -0
  42. {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/TriggerFlow/TriggerFlow.py +0 -0
  43. {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/TriggerFlow/__init__.py +0 -0
  44. {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/TriggerFlow/process/BaseProcess.py +0 -0
  45. {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/TriggerFlow/process/ForEachProcess.py +0 -0
  46. {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/TriggerFlow/process/MatchCaseProcess.py +0 -0
  47. {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/TriggerFlow/process/__init__.py +0 -0
  48. {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/__init__.py +0 -0
  49. {agently-4.0.7.3 → agently-4.0.7.4}/agently/integrations/chromadb.py +0 -0
  50. {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/__init__.py +0 -0
  51. {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/data/__init__.py +0 -0
  52. {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/data/event.py +0 -0
  53. {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/data/prompt.py +0 -0
  54. {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/data/request.py +0 -0
  55. {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/data/response.py +0 -0
  56. {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/data/serializable.py +0 -0
  57. {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/data/tool.py +0 -0
  58. {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/plugins/BuiltInTool.py +0 -0
  59. {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/plugins/EventHooker.py +0 -0
  60. {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/plugins/ModelRequester.py +0 -0
  61. {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/plugins/PromptGenerator.py +0 -0
  62. {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/plugins/ResponseParser.py +0 -0
  63. {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/plugins/Session.py +0 -0
  64. {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/plugins/ToolManager.py +0 -0
  65. {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/plugins/__init__.py +0 -0
  66. {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/plugins/base.py +0 -0
  67. {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/trigger_flow/__init__.py +0 -0
  68. {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/trigger_flow/trigger_flow.py +0 -0
  69. {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/AGENT_UTILS_GUIDE.md +0 -0
  70. {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/DataFormatter.py +0 -0
  71. {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/DataLocator.py +0 -0
  72. {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/DataPathBuilder.py +0 -0
  73. {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/FunctionShifter.py +0 -0
  74. {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/GeneratorConsumer.py +0 -0
  75. {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/LazyImport.py +0 -0
  76. {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/Logger.py +0 -0
  77. {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/Messenger.py +0 -0
  78. {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/PythonSandbox.py +0 -0
  79. {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/RuntimeData.py +0 -0
  80. {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/SerializableRuntimeData.py +0 -0
  81. {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/Settings.py +0 -0
  82. {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/Storage.py +0 -0
  83. {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/StreamingJSONCompleter.py +0 -0
  84. {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/StreamingJSONParser.py +0 -0
  85. {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/TimeInfo.py +0 -0
  86. {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agently
3
- Version: 4.0.7.3
3
+ Version: 4.0.7.4
4
4
  Summary:
5
5
  License: Apache-2.0
6
6
  License-File: LICENSE
@@ -23,9 +23,9 @@ from typing import Any, Sequence, TYPE_CHECKING
23
23
  from agently.core import BaseAgent
24
24
  from agently.core.Session import Session
25
25
  from agently.utils import DataPathBuilder, FunctionShifter
26
+ from agently.types.data import ChatMessage
26
27
 
27
28
  if TYPE_CHECKING:
28
- from agently.types.data import ChatMessage
29
29
  from agently.core import Prompt
30
30
  from agently.core.ModelRequest import ModelResponseResult
31
31
  from agently.utils import Settings
@@ -54,6 +54,11 @@ class Session:
54
54
  agent: "BaseAgent | None" = None,
55
55
  plugin_manager: "PluginManager | None" = None,
56
56
  ):
57
+ if agent is not None:
58
+ if plugin_manager is None and hasattr(agent, "plugin_manager"):
59
+ plugin_manager = agent.plugin_manager
60
+ if parent_settings is None and hasattr(agent, "settings"):
61
+ parent_settings = agent.settings
57
62
  if plugin_manager is None:
58
63
  from agently.base import plugin_manager as global_plugin_manager, settings as global_settings
59
64
 
@@ -0,0 +1,18 @@
1
+ # Copyright 2023-2025 AgentEra(Agently.Tech)
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+
16
+ from agently.utils import LazyImport
17
+
18
+ LazyImport.import_package("fastapi")
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "agently"
3
- version = "4.0.7.3"
3
+ version = "4.0.7.4"
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