docent-python 0.1.0a5__py3-none-any.whl → 0.1.0a6__py3-none-any.whl

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
  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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: docent-python
3
- Version: 0.1.0a5
3
+ Version: 0.1.0a6
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
@@ -2,11 +2,11 @@ docent/__init__.py,sha256=J2BbO6rzilfw9WXRUeolr439EGFezqbMU_kCpCCryRA,59
2
2
  docent/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  docent/_log_util/__init__.py,sha256=3HXXrxrSm8PxwG4llotrCnSnp7GuroK1FNHsdg6f7aE,73
4
4
  docent/_log_util/logger.py,sha256=kwM0yRW1IJd6-XTorjWn48B4l8qvD2ZM6VDjY5eskQI,4422
5
- docent/data_models/__init__.py,sha256=SbXBXpI2HLI2qeGoKD-6Qp0gY3igQAw6qOsolc_rj7Q,448
5
+ docent/data_models/__init__.py,sha256=4NghEq_T9JqGTSo-hu_aZm35TDfahTzsbkrt8WB4GoQ,410
6
6
  docent/data_models/_tiktoken_util.py,sha256=hC0EDDWItv5-0cONBnHWgZtQOflDU7ZNEhXPFo4DvPc,3057
7
7
  docent/data_models/agent_run.py,sha256=sdvoUUpOhQAHqJHNR5KoHthCXrpJajdIREMacoR1ODk,9516
8
8
  docent/data_models/citation.py,sha256=WsVQZcBT2EJD24ysyeVOC5Xfo165RI7P5_cOnJBgHj0,10015
9
- docent/data_models/metadata.py,sha256=yBEm5M_gSNuoG---Fezsjm0YDGUQoJeM_BL9rwbBt-U,8035
9
+ docent/data_models/metadata.py,sha256=pb7fYQnqvjcmx7b7V6rRltJmuSRGJ58lmnPmNgab8rA,7112
10
10
  docent/data_models/regex.py,sha256=0ciIerkrNwb91bY5mTcyO5nDWH67xx2tZYObV52fmBo,1684
11
11
  docent/data_models/shared_types.py,sha256=jjm-Dh5S6v7UKInW7SEqoziOsx6Z7Uu4e3VzgCbTWvc,225
12
12
  docent/data_models/transcript.py,sha256=HK1NvtD06XqVto6O5qzQ_wCmxlx0O88wSBB2NRTPs44,13667
@@ -20,7 +20,7 @@ docent/samples/log.eval,sha256=orrW__9WBfANq7NwKsPSq9oTsQRcG6KohG5tMr_X_XY,39770
20
20
  docent/samples/tb_airline.json,sha256=eR2jFFRtOw06xqbEglh6-dPewjifOk-cuxJq67Dtu5I,47028
21
21
  docent/sdk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  docent/sdk/client.py,sha256=L97C9uo1Qv2UkwIW9_yXnYD5wiC7kUyg6HnobGO9q_U,8830
23
- docent_python-0.1.0a5.dist-info/METADATA,sha256=UBxJtxLMJncgrEZZLL6nvr5ppmFvdiZwXnzRDdOsjoQ,493
24
- docent_python-0.1.0a5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
25
- docent_python-0.1.0a5.dist-info/licenses/LICENSE.md,sha256=vOHzq3K4Ndu0UV9hPrtXvlD7pHOjyDQmGjHuLSIkRQY,1087
26
- docent_python-0.1.0a5.dist-info/RECORD,,
23
+ docent_python-0.1.0a6.dist-info/METADATA,sha256=e49PFc4uk3ykac9KlNy3WHufBrsq9rHGcLpgKFrmdj0,493
24
+ docent_python-0.1.0a6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
25
+ docent_python-0.1.0a6.dist-info/licenses/LICENSE.md,sha256=vOHzq3K4Ndu0UV9hPrtXvlD7pHOjyDQmGjHuLSIkRQY,1087
26
+ docent_python-0.1.0a6.dist-info/RECORD,,