unique_toolkit 0.8.34__py3-none-any.whl → 0.8.35__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.
@@ -158,10 +158,19 @@ class EnvFileNotFoundError(FileNotFoundError):
158
158
 
159
159
 
160
160
  class UniqueSettings:
161
- def __init__(self, auth: UniqueAuth, app: UniqueApp, api: UniqueApi):
161
+ def __init__(
162
+ self,
163
+ auth: UniqueAuth,
164
+ app: UniqueApp,
165
+ api: UniqueApi,
166
+ env_file: Path | None = None,
167
+ ):
162
168
  self.app = app
163
169
  self.auth = auth
164
170
  self.api = api
171
+ self._env_file: Path | None = (
172
+ env_file if (env_file and env_file.exists()) else None
173
+ )
165
174
 
166
175
  @classmethod
167
176
  def _find_env_file(cls, filename: str = "unique.env") -> Path:
@@ -226,7 +235,7 @@ class UniqueSettings:
226
235
  auth = UniqueAuth(_env_file=env_file_str) # type: ignore[call-arg]
227
236
  app = UniqueApp(_env_file=env_file_str) # type: ignore[call-arg]
228
237
  api = UniqueApi(_env_file=env_file_str) # type: ignore[call-arg]
229
- return cls(auth=auth, app=app, api=api)
238
+ return cls(auth=auth, app=app, api=api, env_file=env_file)
230
239
 
231
240
  @classmethod
232
241
  def from_env_auto(cls, filename: str = "unique.env") -> "UniqueSettings":
@@ -243,6 +252,7 @@ class UniqueSettings:
243
252
  """
244
253
  try:
245
254
  env_file = cls._find_env_file(filename)
255
+ logger.info(f"Environment file found at {env_file}")
246
256
  return cls.from_env(env_file=env_file)
247
257
  except EnvFileNotFoundError:
248
258
  logger.warning(
@@ -2,7 +2,7 @@ from pydantic import Field, create_model
2
2
  from unique_sdk.utils.chat_in_space import send_message_and_wait_for_completion
3
3
 
4
4
  from unique_toolkit.app import ChatEvent
5
- from unique_toolkit.evaluators.schemas import EvaluationMetricName
5
+ from unique_toolkit.evals.schemas import EvaluationMetricName
6
6
  from unique_toolkit.language_model import (
7
7
  LanguageModelFunction,
8
8
  LanguageModelMessage,
@@ -146,7 +146,7 @@ class SubAgentTool(Tool[SubAgentToolConfig]):
146
146
  tool_response: ToolCallResponse,
147
147
  ) -> LanguageModelMessage:
148
148
  return ToolCallResponse(
149
- id=tool_response.id,
149
+ id=tool_response.id, # type: ignore
150
150
  name=tool_response.name,
151
- content=tool_response["content"],
151
+ content=tool_response.content,
152
152
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_toolkit
3
- Version: 0.8.34
3
+ Version: 0.8.35
4
4
  Summary:
5
5
  License: Proprietary
6
6
  Author: Martin Fadler
@@ -115,6 +115,8 @@ All notable changes to this project will be documented in this file.
115
115
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
116
116
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
117
117
 
118
+ ## [0.8.35] - 2025-09-01
119
+ - Initial toolkit documentation (WIP)
118
120
 
119
121
  ## [0.8.34] - 2025-09-01
120
122
  - Automatic initializations of services and event generator
@@ -22,7 +22,7 @@ unique_toolkit/app/init_sdk.py,sha256=5_oDoETr6akwYyBCb0ivTdMNu3SVgPSkrXcDS6ELyY
22
22
  unique_toolkit/app/performance/async_tasks.py,sha256=H0l3OAcosLwNHZ8d2pd-Di4wHIXfclEvagi5kfqLFPA,1941
23
23
  unique_toolkit/app/performance/async_wrapper.py,sha256=yVVcRDkcdyfjsxro-N29SBvi-7773wnfDplef6-y8xw,1077
24
24
  unique_toolkit/app/schemas.py,sha256=xHdzMyZ_cgCzxCqzCJYwOCAYWkaQ9zIyZsRhDgSQnEA,8088
25
- unique_toolkit/app/unique_settings.py,sha256=f9Ip1yBhIJqHpuHIo3ihCW2MGyQynBggEKDzlIOIlyg,9976
25
+ unique_toolkit/app/unique_settings.py,sha256=_Ll_GuWYiOIK2w4HQPA_uopTdDDFcjVqDFO3m2F2b-Q,10254
26
26
  unique_toolkit/app/verification.py,sha256=GxFFwcJMy25fCA_Xe89wKW7bgqOu8PAs5y8QpHF0GSc,3861
27
27
  unique_toolkit/chat/__init__.py,sha256=LRs2G-JTVuci4lbtHTkVUiNcZcSR6uqqfnAyo7af6nY,619
28
28
  unique_toolkit/chat/constants.py,sha256=05kq6zjqUVB2d6_P7s-90nbljpB3ryxwCI-CAz0r2O4,83
@@ -111,7 +111,7 @@ unique_toolkit/tools/a2a/config.py,sha256=DKerB7gJ0oUFfqdvVN4I174EZYfYzt7ET2NYGk
111
111
  unique_toolkit/tools/a2a/manager.py,sha256=-Vt0pL886zMaaG4sGQhXmbwOhOL928WbZzm4FRZuZMM,1666
112
112
  unique_toolkit/tools/a2a/memory.py,sha256=F18kUA3m3NqoKdKAJSwDv8JQneHvZTGOkcZTLNMXAYs,1004
113
113
  unique_toolkit/tools/a2a/schema.py,sha256=1R7qIu2l2qnUJDGRuUnZLqPPkHnT3x4d3d4PALoBzcY,296
114
- unique_toolkit/tools/a2a/service.py,sha256=8yiG2zYqHva4fQJX4dfnE9Bm4vDnbK0k6YRyCSQy9RQ,5147
114
+ unique_toolkit/tools/a2a/service.py,sha256=-I-0S35cWl7IFiqEk-0Ph31enJvQS9cuA9sUTrOFAVI,5155
115
115
  unique_toolkit/tools/agent_chunks_hanlder.py,sha256=x32Dp1Z8cVW5i-XzXbaMwX2KHPcNGmqEU-FB4AV9ZGo,1909
116
116
  unique_toolkit/tools/config.py,sha256=nYwglwUSb3fxhqYxI83k-qoecuF5Zcol5FMOxHvTNeE,3827
117
117
  unique_toolkit/tools/factory.py,sha256=w3uNHuYBIJ330Xi8PTdAkr8G3OMbQH2cBgvk5UT16oE,1253
@@ -129,7 +129,7 @@ unique_toolkit/tools/utils/execution/execution.py,sha256=vjG2Y6awsGNtlvyQAGCTthQ
129
129
  unique_toolkit/tools/utils/source_handling/schema.py,sha256=vzAyf6ZWNexjMO0OrnB8y2glGkvAilmGGQXd6zcDaKw,870
130
130
  unique_toolkit/tools/utils/source_handling/source_formatting.py,sha256=C7uayNbdkNVJdEARA5CENnHtNY1SU6etlaqbgHNyxaQ,9152
131
131
  unique_toolkit/tools/utils/source_handling/tests/test_source_formatting.py,sha256=oM5ZxEgzROrnX1229KViCAFjRxl9wCTzWZoinYSHleM,6979
132
- unique_toolkit-0.8.34.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
133
- unique_toolkit-0.8.34.dist-info/METADATA,sha256=7QgmsTH7dImdgUvj3KVXNmSn0Nt5zyHM7gycQXERJj8,29752
134
- unique_toolkit-0.8.34.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
135
- unique_toolkit-0.8.34.dist-info/RECORD,,
132
+ unique_toolkit-0.8.35.dist-info/LICENSE,sha256=GlN8wHNdh53xwOPg44URnwag6TEolCjoq3YD_KrWgss,193
133
+ unique_toolkit-0.8.35.dist-info/METADATA,sha256=cVG_CzA5eEzYlQqD31iEZZkwN-O1_xcg9P0gRltLTcs,29815
134
+ unique_toolkit-0.8.35.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
135
+ unique_toolkit-0.8.35.dist-info/RECORD,,