docent-python 0.1.1a0__tar.gz → 0.1.2a0__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.
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/.gitignore +1 -0
- docent_python-0.1.2a0/PKG-INFO +24 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/docent/data_models/transcript.py +3 -1
- docent_python-0.1.2a0/docent/trace.py +1072 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/pyproject.toml +12 -1
- docent_python-0.1.2a0/uv.lock +955 -0
- docent_python-0.1.1a0/PKG-INFO +0 -15
- docent_python-0.1.1a0/uv.lock +0 -361
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/LICENSE.md +0 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/README.md +0 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/docent/__init__.py +0 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/docent/_log_util/__init__.py +0 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/docent/_log_util/logger.py +0 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/docent/data_models/__init__.py +0 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/docent/data_models/_tiktoken_util.py +0 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/docent/data_models/agent_run.py +0 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/docent/data_models/chat/__init__.py +0 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/docent/data_models/chat/content.py +0 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/docent/data_models/chat/message.py +0 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/docent/data_models/chat/tool.py +0 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/docent/data_models/citation.py +0 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/docent/data_models/metadata.py +0 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/docent/data_models/regex.py +0 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/docent/data_models/shared_types.py +0 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/docent/loaders/load_inspect.py +0 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/docent/py.typed +0 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/docent/samples/__init__.py +0 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/docent/samples/load.py +0 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/docent/samples/log.eval +0 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/docent/samples/tb_airline.json +0 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/docent/sdk/__init__.py +0 -0
- {docent_python-0.1.1a0 → docent_python-0.1.2a0}/docent/sdk/client.py +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: docent-python
|
|
3
|
+
Version: 0.1.2a0
|
|
4
|
+
Summary: Docent SDK
|
|
5
|
+
Project-URL: Homepage, https://github.com/TransluceAI/docent
|
|
6
|
+
Project-URL: Issues, https://github.com/TransluceAI/docent/issues
|
|
7
|
+
Project-URL: Docs, https://transluce-docent.readthedocs-hosted.com/en/latest
|
|
8
|
+
Author-email: Transluce <info@transluce.org>
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
License-File: LICENSE.md
|
|
11
|
+
Requires-Python: >=3.11
|
|
12
|
+
Requires-Dist: opentelemetry-api>=1.35.0
|
|
13
|
+
Requires-Dist: opentelemetry-exporter-otlp-proto-grpc>=1.35.0
|
|
14
|
+
Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.35.0
|
|
15
|
+
Requires-Dist: opentelemetry-instrumentation-anthropic>=0.42.0
|
|
16
|
+
Requires-Dist: opentelemetry-instrumentation-bedrock>=0.42.0
|
|
17
|
+
Requires-Dist: opentelemetry-instrumentation-langchain>=0.43.1
|
|
18
|
+
Requires-Dist: opentelemetry-instrumentation-openai>=0.42.0
|
|
19
|
+
Requires-Dist: opentelemetry-instrumentation-threading>=0.56b0
|
|
20
|
+
Requires-Dist: opentelemetry-sdk>=1.35.0
|
|
21
|
+
Requires-Dist: pydantic>=2.11.7
|
|
22
|
+
Requires-Dist: pyyaml>=6.0.2
|
|
23
|
+
Requires-Dist: tiktoken>=0.7.0
|
|
24
|
+
Requires-Dist: tqdm>=4.67.1
|
|
@@ -151,7 +151,9 @@ class Transcript(BaseModel):
|
|
|
151
151
|
|
|
152
152
|
# System messages are their own unit
|
|
153
153
|
if role == "system":
|
|
154
|
-
|
|
154
|
+
# Start a new unit if there's a current unit in progress
|
|
155
|
+
if current_unit:
|
|
156
|
+
_start_new_unit()
|
|
155
157
|
units.append([i])
|
|
156
158
|
|
|
157
159
|
# User message always starts a new unit UNLESS the previous message was a user message
|