openinference-instrumentation-google-adk 0.1.1__py3-none-any.whl → 0.1.3__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.
- openinference/instrumentation/google_adk/_wrappers.py +12 -9
- openinference/instrumentation/google_adk/version.py +1 -1
- {openinference_instrumentation_google_adk-0.1.1.dist-info → openinference_instrumentation_google_adk-0.1.3.dist-info}/METADATA +1 -1
- openinference_instrumentation_google_adk-0.1.3.dist-info/RECORD +9 -0
- openinference_instrumentation_google_adk-0.1.1.dist-info/RECORD +0 -9
- {openinference_instrumentation_google_adk-0.1.1.dist-info → openinference_instrumentation_google_adk-0.1.3.dist-info}/WHEEL +0 -0
- {openinference_instrumentation_google_adk-0.1.1.dist-info → openinference_instrumentation_google_adk-0.1.3.dist-info}/entry_points.txt +0 -0
- {openinference_instrumentation_google_adk-0.1.1.dist-info → openinference_instrumentation_google_adk-0.1.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import base64
|
|
1
2
|
import inspect
|
|
2
3
|
import json
|
|
3
4
|
import logging
|
|
@@ -356,7 +357,10 @@ def stop_on_exception(
|
|
|
356
357
|
def _get_attributes_from_generate_content_config(
|
|
357
358
|
obj: types.GenerateContentConfig,
|
|
358
359
|
) -> Iterator[tuple[str, AttributeValue]]:
|
|
359
|
-
yield
|
|
360
|
+
yield (
|
|
361
|
+
SpanAttributes.LLM_INVOCATION_PARAMETERS,
|
|
362
|
+
obj.model_dump_json(exclude_none=True, fallback=_default),
|
|
363
|
+
)
|
|
360
364
|
|
|
361
365
|
|
|
362
366
|
@stop_on_exception
|
|
@@ -530,14 +534,13 @@ def bind_args_kwargs(func: Any, *args: Any, **kwargs: Any) -> OrderedDict[str, A
|
|
|
530
534
|
return bound.arguments
|
|
531
535
|
|
|
532
536
|
|
|
533
|
-
def _default(obj: Any) ->
|
|
537
|
+
def _default(obj: Any) -> Any:
|
|
534
538
|
from pydantic import BaseModel
|
|
535
539
|
|
|
536
540
|
if isinstance(obj, BaseModel):
|
|
537
|
-
return
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
)
|
|
542
|
-
|
|
543
|
-
return str(obj)
|
|
541
|
+
return obj.model_dump(exclude_none=True)
|
|
542
|
+
if inspect.isclass(obj) and issubclass(obj, BaseModel):
|
|
543
|
+
return obj.model_json_schema()
|
|
544
|
+
if isinstance(obj, bytes):
|
|
545
|
+
return base64.b64encode(obj).decode()
|
|
546
|
+
return str(obj)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.1.
|
|
1
|
+
__version__ = "0.1.3"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: openinference-instrumentation-google-adk
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: OpenInference Google ADK Instrumentation
|
|
5
5
|
Project-URL: Homepage, https://github.com/Arize-ai/openinference/tree/main/python/instrumentation/openinference-instrumentation-google-adk
|
|
6
6
|
Author-email: OpenInference Authors <oss@arize.com>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
openinference/instrumentation/google_adk/__init__.py,sha256=HxZ58OnPWAfiCeyEnZom7TmxNKc1kHhuGWkrwFYba2c,6922
|
|
2
|
+
openinference/instrumentation/google_adk/_wrappers.py,sha256=Glf7qYKkVFlwcRFYlfaXne8aroZUrlqF5MEDJvTwR14,20295
|
|
3
|
+
openinference/instrumentation/google_adk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
openinference/instrumentation/google_adk/version.py,sha256=XEqb2aiIn8fzGE68Mph4ck1FtQqsR_am0wRWvrYPffQ,22
|
|
5
|
+
openinference_instrumentation_google_adk-0.1.3.dist-info/METADATA,sha256=jctLEKRSXcT6SJsxSRoq_xOg0xyii55znXejhGHnNF8,5194
|
|
6
|
+
openinference_instrumentation_google_adk-0.1.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
+
openinference_instrumentation_google_adk-0.1.3.dist-info/entry_points.txt,sha256=SW0GBmqra9efyXhsKjeP6OX4vS7BFpzGeHZgrg_LUzw,211
|
|
8
|
+
openinference_instrumentation_google_adk-0.1.3.dist-info/licenses/LICENSE,sha256=x_Y7OX-lWxSUhmKoivlrD6WN3jWlIHxdug8BJv2SI34,10870
|
|
9
|
+
openinference_instrumentation_google_adk-0.1.3.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
openinference/instrumentation/google_adk/__init__.py,sha256=HxZ58OnPWAfiCeyEnZom7TmxNKc1kHhuGWkrwFYba2c,6922
|
|
2
|
-
openinference/instrumentation/google_adk/_wrappers.py,sha256=B-ORzJ7pkc-4IafoI7xzCZ8Mw_CtFQ6DXMbeZ3GTqzo,20162
|
|
3
|
-
openinference/instrumentation/google_adk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
openinference/instrumentation/google_adk/version.py,sha256=rnObPjuBcEStqSO0S6gsdS_ot8ITOQjVj_-P1LUUYpg,22
|
|
5
|
-
openinference_instrumentation_google_adk-0.1.1.dist-info/METADATA,sha256=sceuxu5UhQLSdL3M6g7F76vKpfZQVaoIFkhgyB0NXzs,5194
|
|
6
|
-
openinference_instrumentation_google_adk-0.1.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
-
openinference_instrumentation_google_adk-0.1.1.dist-info/entry_points.txt,sha256=SW0GBmqra9efyXhsKjeP6OX4vS7BFpzGeHZgrg_LUzw,211
|
|
8
|
-
openinference_instrumentation_google_adk-0.1.1.dist-info/licenses/LICENSE,sha256=x_Y7OX-lWxSUhmKoivlrD6WN3jWlIHxdug8BJv2SI34,10870
|
|
9
|
-
openinference_instrumentation_google_adk-0.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|