agenta 0.49.2__py3-none-any.whl → 0.49.4__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.

Potentially problematic release.


This version of agenta might be problematic. Click here for more details.

@@ -113,13 +113,13 @@ class OTLPExporter(OTLPSpanExporter):
113
113
  else:
114
114
  return SpanExportResult.FAILURE
115
115
 
116
- def _export(self, serialized_data: bytes):
116
+ def _export(self, serialized_data: bytes, timeout_sec: float):
117
117
  credentials = exporting_context.get().credentials
118
118
 
119
119
  if credentials:
120
120
  self._session.headers.update({"Authorization": credentials})
121
121
 
122
- return super()._export(serialized_data)
122
+ return super()._export(serialized_data, timeout_sec)
123
123
 
124
124
 
125
125
  ConsoleExporter = ConsoleSpanExporter
agenta/sdk/types.py CHANGED
@@ -275,9 +275,27 @@ class ToolCall(BaseModel):
275
275
  function: Dict[str, str]
276
276
 
277
277
 
278
+ class ImageURL(BaseModel):
279
+ url: str
280
+ detail: Optional[Literal["auto", "low", "high"]] = None
281
+
282
+
283
+ class ContentPartText(BaseModel):
284
+ type: Literal["text"] = "text"
285
+ text: str
286
+
287
+
288
+ class ContentPartImage(BaseModel):
289
+ type: Literal["image_url"] = "image_url"
290
+ image_url: ImageURL
291
+
292
+
293
+ ContentPart = Union[ContentPartText, ContentPartImage]
294
+
295
+
278
296
  class Message(BaseModel):
279
297
  role: Literal["system", "user", "assistant", "tool", "function"]
280
- content: Optional[str] = None
298
+ content: Optional[Union[str, List[ContentPart]]] = None
281
299
  name: Optional[str] = None
282
300
  tool_calls: Optional[List[ToolCall]] = None
283
301
  tool_call_id: Optional[str] = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: agenta
3
- Version: 0.49.2
3
+ Version: 0.49.4
4
4
  Summary: The SDK for agenta is an open-source LLMOps platform.
5
5
  Keywords: LLMOps,LLM,evaluation,prompt engineering
6
6
  Author: Mahmoud Mabrouk
@@ -24,6 +24,7 @@ Requires-Dist: jinja2 (>=3.1.6,<4.0.0)
24
24
  Requires-Dist: litellm (>=1.68.0)
25
25
  Requires-Dist: opentelemetry-api (>=1.27.0,<2.0.0)
26
26
  Requires-Dist: opentelemetry-exporter-otlp-proto-http (>=1.27.0,<2.0.0)
27
+ Requires-Dist: opentelemetry-instrumentation (>=0.55b1)
27
28
  Requires-Dist: opentelemetry-sdk (>=1.27.0,<2.0.0)
28
29
  Requires-Dist: pydantic (>=2)
29
30
  Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
@@ -339,13 +339,13 @@ agenta/sdk/router.py,sha256=mOguvtOwl2wmyAgOuWTsf98pQwpNiUILKIo67W_hR3A,119
339
339
  agenta/sdk/tracing/__init__.py,sha256=rQNe5-zT5Kt7_CDhq-lnUIi1EYTBVzVf_MbfcIxVD98,41
340
340
  agenta/sdk/tracing/attributes.py,sha256=DwjjOk3mGOvz0jYu8EYr3hhItvawK5GX80_MfciqPrc,5559
341
341
  agenta/sdk/tracing/conventions.py,sha256=JBtznBXZ3aRkGKkLl7cPwdMNh3w1G-H2Ta2YrAxbr38,950
342
- agenta/sdk/tracing/exporters.py,sha256=Vs1aQLRrWvYgWxjPmlfBWTN4wmUzBREqjTdIV1XcV9o,3251
342
+ agenta/sdk/tracing/exporters.py,sha256=Vr4OMIuvOzrk3_NMvgD7CGY2ApevAOxQQUIF6RAb7XM,3284
343
343
  agenta/sdk/tracing/inline.py,sha256=ShPAAjk_26I4hgrmC6y0n-I9gxB3Q4VeEYhhsLHInPU,31454
344
344
  agenta/sdk/tracing/processors.py,sha256=wZWF8vTEouhbGxbfPGXVQJI53CcXFByqxHiCSIzJV-4,5407
345
345
  agenta/sdk/tracing/propagation.py,sha256=EeOqDMqnh_MoEhGd1do_vy_tQBYUcoC8kpLqVoZeqg0,2561
346
346
  agenta/sdk/tracing/spans.py,sha256=nqUOjjirBxB8Eacv8Qj4Ra_6rknGi3lbJdNyKmk5ODQ,3707
347
347
  agenta/sdk/tracing/tracing.py,sha256=Yv42drWc2tVu4YugHKWYsgTSf1y7Y9boYL8akxKT4eA,9503
348
- agenta/sdk/types.py,sha256=4sGvCfxnWxOiDzgMhHXz7jIoe4aZON7CvqrWFcMLc1w,20377
348
+ agenta/sdk/types.py,sha256=Cq0U3gI8ll65KhsnVWkuLJvwZGEsuTe3WdsHX1UX6zQ,20753
349
349
  agenta/sdk/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
350
350
  agenta/sdk/utils/cache.py,sha256=9EsJGfcLlSm11wvfN2RDo17Aq8usEHC4_2dC6ljUizg,1367
351
351
  agenta/sdk/utils/constants.py,sha256=zW3R4rjXOo2L5lz6q84l_zYuOM9u4mpPRHw_B1Dr_hI,67
@@ -357,6 +357,6 @@ agenta/sdk/utils/logging.py,sha256=j4NzpFk2ilOM10sRBOxCjmansDHSx6HwMV8IAEreRb8,8
357
357
  agenta/sdk/utils/preinit.py,sha256=1TAAHhYyYnLLwvzwnf33Qwkou7tI3iITlVt-1kcyGaM,1186
358
358
  agenta/sdk/utils/singleton.py,sha256=17Ph7LGnnV8HkPjImruKita2ni03Ari5jr0jqm__4sc,312
359
359
  agenta/sdk/utils/timing.py,sha256=nZR-kudVUtKFlHuBhztgSGxj7FVnCB4Uv6sfg-1dkrQ,1556
360
- agenta-0.49.2.dist-info/METADATA,sha256=EGwmcdlwf5Ub6NP7nWrgNsaX_VPe2rInAfRqrI1Y5Hw,31456
361
- agenta-0.49.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
362
- agenta-0.49.2.dist-info/RECORD,,
360
+ agenta-0.49.4.dist-info/METADATA,sha256=z2e43_gUnYnk8DBIRKhxGlM0xJHDHMMZVX5BGXYIbKY,31512
361
+ agenta-0.49.4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
362
+ agenta-0.49.4.dist-info/RECORD,,