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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sciverse
3
- Version: 0.6.2
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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sciverse"
3
- version = "0.6.2"
3
+ version = "0.6.3"
4
4
  description = "Sciverse Agent Tools — OpenAI/Anthropic/LangChain compatible tool schema and async client for Sciverse retrieval APIs"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -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"] = f"{_SKILL_NAME}-{_PLATFORM}-{_CHANNEL}-{uuid.uuid4()}"
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
@@ -1,7 +1,7 @@
1
1
  """Auto-generated. Do not edit. Run scripts/build.sh."""
2
2
  import json
3
3
 
4
- TOOLS_VERSION = "0.6.2"
4
+ TOOLS_VERSION = "0.6.3"
5
5
 
6
6
  OPENAI_TOOLS = json.loads(r"""
7
7
  [
@@ -323,7 +323,7 @@ wheels = [
323
323
 
324
324
  [[package]]
325
325
  name = "sciverse"
326
- version = "0.6.1"
326
+ version = "0.6.2"
327
327
  source = { editable = "." }
328
328
  dependencies = [
329
329
  { name = "httpx" },
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