docent-python 0.1.0a5__tar.gz → 0.1.0a7__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.
Files changed (28) hide show
  1. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/PKG-INFO +1 -1
  2. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/docent/data_models/__init__.py +1 -2
  3. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/docent/data_models/metadata.py +0 -28
  4. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/docent/sdk/client.py +1 -1
  5. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/pyproject.toml +1 -1
  6. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/.gitignore +0 -0
  7. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/LICENSE.md +0 -0
  8. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/README.md +0 -0
  9. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/docent/__init__.py +0 -0
  10. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/docent/_log_util/__init__.py +0 -0
  11. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/docent/_log_util/logger.py +0 -0
  12. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/docent/data_models/_tiktoken_util.py +0 -0
  13. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/docent/data_models/agent_run.py +0 -0
  14. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/docent/data_models/chat/__init__.py +0 -0
  15. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/docent/data_models/chat/content.py +0 -0
  16. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/docent/data_models/chat/message.py +0 -0
  17. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/docent/data_models/chat/tool.py +0 -0
  18. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/docent/data_models/citation.py +0 -0
  19. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/docent/data_models/regex.py +0 -0
  20. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/docent/data_models/shared_types.py +0 -0
  21. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/docent/data_models/transcript.py +0 -0
  22. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/docent/py.typed +0 -0
  23. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/docent/samples/__init__.py +0 -0
  24. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/docent/samples/load.py +0 -0
  25. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/docent/samples/log.eval +0 -0
  26. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/docent/samples/tb_airline.json +0 -0
  27. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/docent/sdk/__init__.py +0 -0
  28. {docent_python-0.1.0a5 → docent_python-0.1.0a7}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: docent-python
3
- Version: 0.1.0a5
3
+ Version: 0.1.0a7
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
@@ -1,6 +1,6 @@
1
1
  from docent.data_models.agent_run import AgentRun
2
2
  from docent.data_models.citation import Citation
3
- from docent.data_models.metadata import BaseAgentRunMetadata, BaseMetadata, FrameDimension
3
+ from docent.data_models.metadata import BaseAgentRunMetadata, BaseMetadata
4
4
  from docent.data_models.regex import RegexSnippet
5
5
  from docent.data_models.transcript import Transcript
6
6
 
@@ -8,7 +8,6 @@ __all__ = [
8
8
  "AgentRun",
9
9
  "Citation",
10
10
  "RegexSnippet",
11
- "FrameDimension",
12
11
  "BaseAgentRunMetadata",
13
12
  "BaseMetadata",
14
13
  "Transcript",
@@ -184,36 +184,8 @@ class BaseAgentRunMetadata(BaseMetadata):
184
184
 
185
185
  Attributes:
186
186
  scores: Dictionary of evaluation metrics.
187
- default_score_key: The primary evaluation metric key.
188
187
  """
189
188
 
190
189
  scores: dict[str, int | float | bool | None] = Field(
191
190
  description="A dict of score_key -> score_value. Use one key for each metric you're tracking."
192
191
  )
193
- default_score_key: str | None = Field(
194
- description="The default score key for the transcript; one top-line metric"
195
- )
196
-
197
- def get_default_score(self) -> int | float | bool | None:
198
- """Gets the default evaluation score.
199
-
200
- Returns:
201
- int, float, bool, or None: The value of the default score if a default score key is set,
202
- otherwise None.
203
- """
204
- if self.default_score_key is None:
205
- return None
206
- return self.scores.get(self.default_score_key)
207
-
208
-
209
- class FrameDimension(BaseModel):
210
- """A dimension for organizing agent runs."""
211
-
212
- id: str
213
- name: str
214
- search_query: str | None = None
215
- metadata_key: str | None = None
216
- maintain_mece: bool | None = None
217
- loading_clusters: bool = False
218
- loading_bins: bool = False
219
- binIds: list[dict[str, Any]] | None = None
@@ -25,7 +25,7 @@ class Docent:
25
25
  def __init__(
26
26
  self,
27
27
  server_url: str = "https://aws-docent-backend.transluce.org",
28
- web_url: str = "https://aws-docent.transluce.org",
28
+ web_url: str = "https://docent-alpha.transluce.org",
29
29
  email: str | None = None,
30
30
  password: str | None = None,
31
31
  ):
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "docent-python"
3
3
  description = "Docent SDK"
4
- version = "0.1.0-alpha.5"
4
+ version = "0.1.0-alpha.7"
5
5
  authors = [
6
6
  { name="Transluce", email="info@transluce.org" },
7
7
  ]
File without changes