agently 4.0.7.3__py3-none-any.whl → 4.0.7.4__py3-none-any.whl

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.
@@ -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
agently/core/Session.py CHANGED
@@ -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
  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
@@ -6,7 +6,7 @@ agently/builtins/agent_extensions/AutoFuncExtension.py,sha256=TmwMazwPzb5WXfDqfe
6
6
  agently/builtins/agent_extensions/ChatSessionExtension.py,sha256=Bbrc9cn3m-uOY0i8EGq1Cvp71nNpEORrrXTiy_JuCCQ,12048
7
7
  agently/builtins/agent_extensions/ConfigurePromptExtension.py,sha256=9wy2zHIDVHbUlj5sI0A03SscUWSzZNc9hNJSEdXFXd0,11390
8
8
  agently/builtins/agent_extensions/KeyWaiterExtension.py,sha256=Rf8dB8Yt3_9IJifpiE-Rn6lLIXqZjaNp94lnX6Betgw,5555
9
- agently/builtins/agent_extensions/SessionExtension.py,sha256=WpPyVoM2iwvyjerJuoikilgdI-iH7BBecnzP8UALRDg,12166
9
+ agently/builtins/agent_extensions/SessionExtension.py,sha256=s_pzyLg34D-3rew60gdTxBEiLm1wi0AcoHM7J62-A3U,12162
10
10
  agently/builtins/agent_extensions/ToolExtension.py,sha256=S3jjumHiauEQ-m46Zkh-1I9ih02kKoj8sBEU82woz1E,6886
11
11
  agently/builtins/agent_extensions/__init__.py,sha256=rWD8hzJ0ymxxpjxJCdB0x1L5AnhYQnAJUeIAD_MTQ5I,899
12
12
  agently/builtins/hookers/ConsoleHooker.py,sha256=aJdDj_nG8CiwyelA505zvtpzBSwD52nFIkBRDJGgq3Y,8099
@@ -28,7 +28,7 @@ agently/core/ExtensionHandlers.py,sha256=88iSAW50bgMshB56cTgKg30eOjZQyXiJY1en4w7
28
28
  agently/core/ModelRequest.py,sha256=hroVb-U-knygXMZ1CCy84pJlP1GHSBNZPI809jEgQak,24350
29
29
  agently/core/PluginManager.py,sha256=fwRxvqPMgXYIrclhRHtkaPsyvn6SaeBFqvL7tTzYwck,4410
30
30
  agently/core/Prompt.py,sha256=vCi_64A-ITiJ-6ZL2PduRdTXoHp8xpKJa2z0ejCJ4uQ,6899
31
- agently/core/Session.py,sha256=uVofUOVLnDGgMr6Bj6K3dZgap7mLILNcN1fxYTsBx6Y,7063
31
+ agently/core/Session.py,sha256=YhhwMRfrs6pXKcwQWPcpFCElD2BrSk9JhnZjdP_tUQU,7343
32
32
  agently/core/Tool.py,sha256=PNYf_BwVefr8IOqf5asLaVq2fU7hQaFJwJVj3S4fq84,1871
33
33
  agently/core/TriggerFlow/BluePrint.py,sha256=H_TYymWOci-ZvQzqyRxpkHjO77zlzXLukLUUctX4ftM,4887
34
34
  agently/core/TriggerFlow/Chunk.py,sha256=xPWr_ofpl-iG4jHIJfB5mPanmn70pq7x8GCcz3G8NPc,1583
@@ -42,6 +42,7 @@ agently/core/TriggerFlow/process/MatchCaseProcess.py,sha256=MKY5Yh66JiMABhCzamRl
42
42
  agently/core/TriggerFlow/process/__init__.py,sha256=BP5bAr9LRVVD83KFqXeprgTmXA1iCSOSsD509BtoX_E,753
43
43
  agently/core/__init__.py,sha256=7QJdqGWgmiGvyXVxvRang9eQkbyNAzJu7RissUtzvcw,1243
44
44
  agently/integrations/chromadb.py,sha256=oGc-eZRK4pXo5QPbjpC1_RoRzhv2Hqadp80TPEEvw8c,10374
45
+ agently/integrations/fastapi.py,sha256=lxOOAcdY36UxuuVsPhvl0MAUjaJT3drv5CubVdqEHyk,668
45
46
  agently/types/__init__.py,sha256=xb8GMY-ULncO_PY9rfRUsyi12wAQQJx8gAAnoM30uZA,592
46
47
  agently/types/data/__init__.py,sha256=ulo2p9SBV-v75zPZWcTczDnAcYO_IlDe3JMGNOZa4vM,1662
47
48
  agently/types/data/event.py,sha256=LFQW7MN_QGOis3XV-8K6jNXWsLvT7tYxo4BZbUBCpfI,1790
@@ -79,7 +80,7 @@ agently/utils/StreamingJSONCompleter.py,sha256=aZ9zuGUTQlP-QKbXHUZCf6EtVuG49MKn8
79
80
  agently/utils/StreamingJSONParser.py,sha256=sPPJOtj5OYvsrukRErcoxRl4yuV1zDuf7pQ_pvw_Zow,21116
80
81
  agently/utils/TimeInfo.py,sha256=lgdeXpTJQOqw0czvrsMcxNeY84wuvCF7kWpY4W8nhDY,750
81
82
  agently/utils/__init__.py,sha256=A2EXx-TVU3Ca1s3fMlWM0se0BgI-ZRCXZgl4Hue-lco,1352
82
- agently-4.0.7.3.dist-info/METADATA,sha256=z3ncC9OPCMAcF9kccQ6pK8rzgVCk4vlJMd-KL4J6AMM,14447
83
- agently-4.0.7.3.dist-info/WHEEL,sha256=kJCRJT_g0adfAJzTx2GUMmS80rTJIVHRCfG0DQgLq3o,88
84
- agently-4.0.7.3.dist-info/licenses/LICENSE,sha256=Y5ZgAdYgMFigPT8dhN18dTLRtBshOSfWhTDRO1t0Cq4,11360
85
- agently-4.0.7.3.dist-info/RECORD,,
83
+ agently-4.0.7.4.dist-info/METADATA,sha256=gAx8gcMTXLExJBjBRnaILcIezn44bDn9QTn5E_NXJ38,14447
84
+ agently-4.0.7.4.dist-info/WHEEL,sha256=kJCRJT_g0adfAJzTx2GUMmS80rTJIVHRCfG0DQgLq3o,88
85
+ agently-4.0.7.4.dist-info/licenses/LICENSE,sha256=Y5ZgAdYgMFigPT8dhN18dTLRtBshOSfWhTDRO1t0Cq4,11360
86
+ agently-4.0.7.4.dist-info/RECORD,,