bohr-agent-sdk 0.1.23__tar.gz → 0.1.100__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.23 → bohr_agent_sdk-0.1.100}/PKG-INFO +1 -1
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/setup.py +1 -1
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/bohr_agent_sdk.egg-info/PKG-INFO +1 -1
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/server/calculation_mcp_server.py +14 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/server/executor/local_executor.py +6 -1
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/README.md +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/pyproject.toml +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/setup.cfg +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/bohr_agent_sdk.egg-info/SOURCES.txt +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/bohr_agent_sdk.egg-info/dependency_links.txt +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/bohr_agent_sdk.egg-info/entry_points.txt +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/bohr_agent_sdk.egg-info/requires.txt +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/bohr_agent_sdk.egg-info/top_level.txt +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/__init__.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/__init__.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/adapter/adk/__init__.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/adapter/adk/client/__init__.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/adapter/adk/client/calculation_mcp_tool.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/adapter/adk/storage_artifact_service.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/adapter/adk/utils.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/adapter/camel/__init__.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/adapter/camel/client/__init__.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/adapter/camel/client/calculation_mcp_client.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/cli/__init__.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/cli/cli.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/cloud/__init__.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/cloud/main.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/cloud/mcp.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/cloud/mqtt.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/device/__init__.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/device/device/__init__.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/device/device/device.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/device/device/types.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/device/mqtt_device_twin.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/server/__init__.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/server/executor/__init__.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/server/executor/base_executor.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/server/executor/dispatcher_executor.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/server/preprocessor.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/server/storage/__init__.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/server/storage/base_storage.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/server/storage/bohrium_storage.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/server/storage/http_storage.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/server/storage/local_storage.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/server/storage/oss_storage.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/server/utils.py +0 -0
- {bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/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.100",
|
|
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.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/server/calculation_mcp_server.py
RENAMED
|
@@ -11,6 +11,8 @@ from typing import Literal, Optional, get_origin
|
|
|
11
11
|
from mcp.server.fastmcp import FastMCP
|
|
12
12
|
from mcp.server.fastmcp.server import Context
|
|
13
13
|
from mcp.server.fastmcp.utilities.func_metadata import _get_typed_signature
|
|
14
|
+
from starlette.responses import JSONResponse
|
|
15
|
+
from starlette.routing import Route
|
|
14
16
|
|
|
15
17
|
from .executor import executor_dict
|
|
16
18
|
from .storage import storage_dict
|
|
@@ -282,4 +284,16 @@ class CalculationMCPServer:
|
|
|
282
284
|
def run(self, **kwargs):
|
|
283
285
|
if os.environ.get("DP_AGENT_RUNNING_MODE") in ["1", "true"]:
|
|
284
286
|
return
|
|
287
|
+
async def health_check(request) :
|
|
288
|
+
return JSONResponse({"status": "ok"})
|
|
289
|
+
|
|
290
|
+
self.mcp._custom_starlette_routes.append(
|
|
291
|
+
Route(
|
|
292
|
+
"/health",
|
|
293
|
+
endpoint=health_check,
|
|
294
|
+
methods=["GET"],
|
|
295
|
+
name="health_check",
|
|
296
|
+
include_in_schema=True,
|
|
297
|
+
)
|
|
298
|
+
)
|
|
285
299
|
self.mcp.run(**kwargs)
|
{bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/server/executor/local_executor.py
RENAMED
|
@@ -130,7 +130,12 @@ class LocalExecutor(BaseExecutor):
|
|
|
130
130
|
extra_info["workflow_link"] = wf_link
|
|
131
131
|
break
|
|
132
132
|
if not alive:
|
|
133
|
-
|
|
133
|
+
if os.path.isfile("err"):
|
|
134
|
+
with open("err", "r") as f:
|
|
135
|
+
err_msg = f.read()
|
|
136
|
+
else:
|
|
137
|
+
err_msg = "No workflow submitted"
|
|
138
|
+
raise RuntimeError(err_msg)
|
|
134
139
|
logger.info("Waiting workflow to be submitted")
|
|
135
140
|
time.sleep(1)
|
|
136
141
|
self.recover_env(old_env)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/bohr_agent_sdk.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/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
|
{bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/adapter/adk/client/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/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
|
|
File without changes
|
{bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/server/executor/base_executor.py
RENAMED
|
File without changes
|
{bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/server/executor/dispatcher_executor.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/server/storage/base_storage.py
RENAMED
|
File without changes
|
{bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/server/storage/bohrium_storage.py
RENAMED
|
File without changes
|
{bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/server/storage/http_storage.py
RENAMED
|
File without changes
|
{bohr_agent_sdk-0.1.23 → bohr_agent_sdk-0.1.100}/src/dp/agent/server/storage/local_storage.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|