sciverse 0.6.2__tar.gz → 0.6.3__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.
- {sciverse-0.6.2 → sciverse-0.6.3}/PKG-INFO +1 -1
- {sciverse-0.6.2 → sciverse-0.6.3}/pyproject.toml +1 -1
- {sciverse-0.6.2 → sciverse-0.6.3}/src/sciverse/client.py +3 -2
- {sciverse-0.6.2 → sciverse-0.6.3}/src/sciverse/tools.py +1 -1
- {sciverse-0.6.2 → sciverse-0.6.3}/uv.lock +1 -1
- {sciverse-0.6.2 → sciverse-0.6.3}/.gitignore +0 -0
- {sciverse-0.6.2 → sciverse-0.6.3}/README.md +0 -0
- {sciverse-0.6.2 → sciverse-0.6.3}/src/sciverse/__init__.py +0 -0
- {sciverse-0.6.2 → sciverse-0.6.3}/src/sciverse/cli.py +0 -0
- {sciverse-0.6.2 → sciverse-0.6.3}/src/sciverse/credentials.py +0 -0
- {sciverse-0.6.2 → sciverse-0.6.3}/src/sciverse/py.typed +0 -0
- {sciverse-0.6.2 → sciverse-0.6.3}/src/sciverse/types.py +0 -0
- {sciverse-0.6.2 → sciverse-0.6.3}/tests/__init__.py +0 -0
- {sciverse-0.6.2 → sciverse-0.6.3}/tests/test_cli.py +0 -0
- {sciverse-0.6.2 → sciverse-0.6.3}/tests/test_client.py +0 -0
- {sciverse-0.6.2 → sciverse-0.6.3}/tests/test_contract.py +0 -0
- {sciverse-0.6.2 → sciverse-0.6.3}/tests/test_credentials.py +0 -0
- {sciverse-0.6.2 → sciverse-0.6.3}/tests/test_tools.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sciverse
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.3
|
|
4
4
|
Summary: Sciverse Agent Tools — OpenAI/Anthropic/LangChain compatible tool schema and async client for Sciverse retrieval APIs
|
|
5
5
|
Project-URL: Homepage, https://github.com/opendatalab/Sciverse-Agent-Tools
|
|
6
6
|
Project-URL: Repository, https://github.com/opendatalab/Sciverse-Agent-Tools.git
|
|
@@ -8,9 +8,9 @@ from typing import Any
|
|
|
8
8
|
|
|
9
9
|
import httpx
|
|
10
10
|
|
|
11
|
-
_SKILL_NAME = "sciverse"
|
|
12
11
|
_CHANNEL = "python-sdk"
|
|
13
12
|
_PLATFORM = platform.system().lower() # "linux" | "darwin" | "windows"
|
|
13
|
+
_SOURCE = f"{_PLATFORM}-{_CHANNEL}"
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
_PASSTHROUGH = ("query", "page", "page_size", "fields")
|
|
@@ -103,7 +103,8 @@ class AgentToolsClient:
|
|
|
103
103
|
|
|
104
104
|
@staticmethod
|
|
105
105
|
async def _inject_request_id(request: httpx.Request) -> None:
|
|
106
|
-
request.headers["X-Request-Id"] =
|
|
106
|
+
request.headers["X-Request-Id"] = str(uuid.uuid4())
|
|
107
|
+
request.headers["X-Sciverse-Source"] = _SOURCE
|
|
107
108
|
|
|
108
109
|
async def __aenter__(self) -> "AgentToolsClient":
|
|
109
110
|
return self
|
|
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
|