docent-python 0.1.14a0__tar.gz → 0.1.16a0__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.

Potentially problematic release.


This version of docent-python might be problematic. Click here for more details.

Files changed (35) hide show
  1. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/PKG-INFO +3 -1
  2. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/sdk/agent_run_writer.py +10 -2
  3. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/pyproject.toml +3 -1
  4. docent_python-0.1.16a0/uv.lock +2239 -0
  5. docent_python-0.1.14a0/uv.lock +0 -954
  6. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/.gitignore +0 -0
  7. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/LICENSE.md +0 -0
  8. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/README.md +0 -0
  9. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/__init__.py +0 -0
  10. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/_log_util/__init__.py +0 -0
  11. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/_log_util/logger.py +0 -0
  12. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/data_models/__init__.py +0 -0
  13. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/data_models/_tiktoken_util.py +0 -0
  14. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/data_models/agent_run.py +0 -0
  15. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/data_models/chat/__init__.py +0 -0
  16. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/data_models/chat/content.py +0 -0
  17. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/data_models/chat/message.py +0 -0
  18. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/data_models/chat/tool.py +0 -0
  19. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/data_models/citation.py +0 -0
  20. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/data_models/metadata.py +0 -0
  21. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/data_models/regex.py +0 -0
  22. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/data_models/remove_invalid_citation_ranges.py +0 -0
  23. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/data_models/shared_types.py +0 -0
  24. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/data_models/transcript.py +0 -0
  25. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/data_models/yaml_util.py +0 -0
  26. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/loaders/load_inspect.py +0 -0
  27. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/py.typed +0 -0
  28. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/samples/__init__.py +0 -0
  29. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/samples/load.py +0 -0
  30. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/samples/log.eval +0 -0
  31. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/samples/tb_airline.json +0 -0
  32. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/sdk/__init__.py +0 -0
  33. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/sdk/client.py +0 -0
  34. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/trace.py +0 -0
  35. {docent_python-0.1.14a0 → docent_python-0.1.16a0}/docent/trace_temp.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: docent-python
3
- Version: 0.1.14a0
3
+ Version: 0.1.16a0
4
4
  Summary: Docent SDK
5
5
  Project-URL: Homepage, https://github.com/TransluceAI/docent
6
6
  Project-URL: Issues, https://github.com/TransluceAI/docent/issues
@@ -9,6 +9,8 @@ Author-email: Transluce <info@transluce.org>
9
9
  License-Expression: Apache-2.0
10
10
  License-File: LICENSE.md
11
11
  Requires-Python: >=3.11
12
+ Requires-Dist: backoff>=2.2.1
13
+ Requires-Dist: inspect-ai>=0.3.132
12
14
  Requires-Dist: opentelemetry-api>=1.34.1
13
15
  Requires-Dist: opentelemetry-exporter-otlp-proto-grpc>=1.34.1
14
16
  Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.34.1
@@ -105,9 +105,17 @@ class AgentRunWriter:
105
105
  # Register shutdown hooks
106
106
  atexit.register(self.finish)
107
107
 
108
+ def _handle_sigint(s: int, f: object) -> None:
109
+ self._shutdown()
110
+ raise KeyboardInterrupt
111
+
112
+ def _handle_sigterm(s: int, f: object) -> None:
113
+ self._shutdown()
114
+ raise SystemExit(0)
115
+
108
116
  # Register signal handlers for graceful shutdown
109
- signal.signal(signal.SIGINT, lambda s, f: self._shutdown()) # Ctrl+C
110
- signal.signal(signal.SIGTERM, lambda s, f: self._shutdown()) # Kill signal
117
+ signal.signal(signal.SIGINT, _handle_sigint) # Ctrl+C
118
+ signal.signal(signal.SIGTERM, _handle_sigterm) # Kill signal
111
119
 
112
120
  def log_agent_runs(self, agent_runs: list[AgentRun]) -> None:
113
121
  """Put a list of AgentRun objects into the queue.
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "docent-python"
3
3
  description = "Docent SDK"
4
- version = "0.1.14-alpha"
4
+ version = "0.1.16-alpha"
5
5
  authors = [
6
6
  { name="Transluce", email="info@transluce.org" },
7
7
  ]
@@ -14,6 +14,8 @@ dependencies = [
14
14
  "pyyaml>=6.0.2",
15
15
  "tiktoken>=0.7.0",
16
16
  "tqdm>=4.67.1",
17
+ "backoff>=2.2.1",
18
+ "inspect-ai>=0.3.132",
17
19
  # tracing
18
20
  "opentelemetry-api>=1.34.1",
19
21
  "opentelemetry-sdk>=1.34.1",