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.
- {agently-4.0.7.3 → agently-4.0.7.4}/PKG-INFO +1 -1
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/agent_extensions/SessionExtension.py +1 -1
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/Session.py +5 -0
- agently-4.0.7.4/agently/integrations/fastapi.py +18 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/pyproject.toml +1 -1
- {agently-4.0.7.3 → agently-4.0.7.4}/LICENSE +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/README.md +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/__init__.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/_default_init.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/_default_settings.yaml +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/base.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/agent_extensions/AutoFuncExtension.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/agent_extensions/ChatSessionExtension.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/agent_extensions/ConfigurePromptExtension.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/agent_extensions/KeyWaiterExtension.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/agent_extensions/ToolExtension.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/agent_extensions/__init__.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/hookers/ConsoleHooker.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/hookers/PureLoggerHooker.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/hookers/SystemMessageHooker.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/plugins/ModelRequester/OpenAICompatible.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/plugins/PromptGenerator/AgentlyPromptGenerator.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/plugins/ResponseParser/AgentlyResponseParser.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/plugins/Session/AgentlyMemoSession.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/plugins/ToolManager/AgentlyToolManager.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/plugins/__init__.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/tools/Browse.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/tools/Cmd.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/tools/Search.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/tools/__init__.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/Agent.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/EventCenter.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/ExtensionHandlers.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/ModelRequest.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/PluginManager.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/Prompt.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/Tool.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/TriggerFlow/BluePrint.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/TriggerFlow/Chunk.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/TriggerFlow/Execution.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/TriggerFlow/Process.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/TriggerFlow/TriggerFlow.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/TriggerFlow/__init__.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/TriggerFlow/process/BaseProcess.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/TriggerFlow/process/ForEachProcess.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/TriggerFlow/process/MatchCaseProcess.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/TriggerFlow/process/__init__.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/core/__init__.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/integrations/chromadb.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/__init__.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/data/__init__.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/data/event.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/data/prompt.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/data/request.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/data/response.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/data/serializable.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/data/tool.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/plugins/BuiltInTool.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/plugins/EventHooker.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/plugins/ModelRequester.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/plugins/PromptGenerator.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/plugins/ResponseParser.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/plugins/Session.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/plugins/ToolManager.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/plugins/__init__.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/plugins/base.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/trigger_flow/__init__.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/types/trigger_flow/trigger_flow.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/AGENT_UTILS_GUIDE.md +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/DataFormatter.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/DataLocator.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/DataPathBuilder.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/FunctionShifter.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/GeneratorConsumer.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/LazyImport.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/Logger.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/Messenger.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/PythonSandbox.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/RuntimeData.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/SerializableRuntimeData.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/Settings.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/Storage.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/StreamingJSONCompleter.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/StreamingJSONParser.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/TimeInfo.py +0 -0
- {agently-4.0.7.3 → agently-4.0.7.4}/agently/utils/__init__.py +0 -0
|
@@ -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")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/agent_extensions/ChatSessionExtension.py
RENAMED
|
File without changes
|
{agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/agent_extensions/ConfigurePromptExtension.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/plugins/ModelRequester/OpenAICompatible.py
RENAMED
|
File without changes
|
|
File without changes
|
{agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/plugins/ResponseParser/AgentlyResponseParser.py
RENAMED
|
File without changes
|
|
File without changes
|
{agently-4.0.7.3 → agently-4.0.7.4}/agently/builtins/plugins/ToolManager/AgentlyToolManager.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|