bohr-agent-sdk 0.1.22__tar.gz → 0.1.23__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.
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/PKG-INFO +1 -1
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/setup.py +1 -1
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/bohr_agent_sdk.egg-info/PKG-INFO +1 -1
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/server/executor/local_executor.py +6 -3
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/README.md +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/pyproject.toml +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/setup.cfg +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/bohr_agent_sdk.egg-info/SOURCES.txt +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/bohr_agent_sdk.egg-info/dependency_links.txt +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/bohr_agent_sdk.egg-info/entry_points.txt +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/bohr_agent_sdk.egg-info/requires.txt +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/bohr_agent_sdk.egg-info/top_level.txt +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/__init__.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/__init__.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/adapter/adk/__init__.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/adapter/adk/client/__init__.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/adapter/adk/client/calculation_mcp_tool.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/adapter/adk/storage_artifact_service.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/adapter/adk/utils.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/adapter/camel/__init__.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/adapter/camel/client/__init__.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/adapter/camel/client/calculation_mcp_client.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/cli/__init__.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/cli/cli.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/cloud/__init__.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/cloud/main.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/cloud/mcp.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/cloud/mqtt.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/device/__init__.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/device/device/__init__.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/device/device/device.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/device/device/types.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/device/mqtt_device_twin.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/server/__init__.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/server/calculation_mcp_server.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/server/executor/__init__.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/server/executor/base_executor.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/server/executor/dispatcher_executor.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/server/preprocessor.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/server/storage/__init__.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/server/storage/base_storage.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/server/storage/bohrium_storage.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/server/storage/http_storage.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/server/storage/local_storage.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/server/storage/oss_storage.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/server/utils.py +0 -0
- {bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/tests/test_cli.py +0 -0
|
@@ -9,7 +9,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|
|
9
9
|
|
|
10
10
|
setup(
|
|
11
11
|
name="bohr-agent-sdk",
|
|
12
|
-
version="0.1.
|
|
12
|
+
version="0.1.23",
|
|
13
13
|
description="SDK for science agent and mcp tools",
|
|
14
14
|
long_description=long_description,
|
|
15
15
|
long_description_content_type="text/markdown",
|
{bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/server/executor/local_executor.py
RENAMED
|
@@ -34,6 +34,8 @@ class Tee(io.TextIOBase):
|
|
|
34
34
|
|
|
35
35
|
def wrapped_fn(fn, kwargs, redirect_file=None):
|
|
36
36
|
pid = os.getpid()
|
|
37
|
+
# explicitly reload dflow config
|
|
38
|
+
reload_dflow_config()
|
|
37
39
|
if redirect_file:
|
|
38
40
|
stdout = sys.stdout
|
|
39
41
|
flog = open(redirect_file, "w")
|
|
@@ -61,7 +63,8 @@ def reload_dflow_config():
|
|
|
61
63
|
s3_config = sys.modules["dflow"].s3_config
|
|
62
64
|
s3_config["storage_client"] = None
|
|
63
65
|
importlib.reload(sys.modules["dflow.config"])
|
|
64
|
-
|
|
66
|
+
reload_bohrium = "dflow.plugins.bohrium" in sys.modules
|
|
67
|
+
if reload_bohrium:
|
|
65
68
|
bohrium_config = sys.modules["dflow.plugins.bohrium"].config
|
|
66
69
|
importlib.reload(sys.modules["dflow.plugins.bohrium"])
|
|
67
70
|
importlib.reload(sys.modules["dflow"])
|
|
@@ -69,7 +72,7 @@ def reload_dflow_config():
|
|
|
69
72
|
sys.modules["dflow"].config = config
|
|
70
73
|
s3_config.update(sys.modules["dflow"].s3_config)
|
|
71
74
|
sys.modules["dflow"].s3_config = s3_config
|
|
72
|
-
if
|
|
75
|
+
if reload_bohrium:
|
|
73
76
|
bohrium_config.update(sys.modules["dflow.plugins.bohrium"].config)
|
|
74
77
|
sys.modules["dflow.plugins.bohrium"].config = bohrium_config
|
|
75
78
|
|
|
@@ -167,7 +170,7 @@ class LocalExecutor(BaseExecutor):
|
|
|
167
170
|
os.environ["DP_AGENT_RUNNING_MODE"] = "1"
|
|
168
171
|
old_env = self.set_env()
|
|
169
172
|
try:
|
|
170
|
-
# explicitly reload dflow config
|
|
173
|
+
# explicitly reload dflow config
|
|
171
174
|
reload_dflow_config()
|
|
172
175
|
if inspect.iscoroutinefunction(fn):
|
|
173
176
|
result = await fn(**kwargs)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/bohr_agent_sdk.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/bohr_agent_sdk.egg-info/entry_points.txt
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
|
{bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/adapter/adk/storage_artifact_service.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/adapter/camel/client/__init__.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
|
{bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/server/calculation_mcp_server.py
RENAMED
|
File without changes
|
|
File without changes
|
{bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/server/executor/base_executor.py
RENAMED
|
File without changes
|
{bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/server/executor/dispatcher_executor.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/server/storage/bohrium_storage.py
RENAMED
|
File without changes
|
|
File without changes
|
{bohr_agent_sdk-0.1.22 → bohr_agent_sdk-0.1.23}/src/dp/agent/server/storage/local_storage.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|