struct-sdk 0.4.21__tar.gz → 0.4.22__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.
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/PKG-INFO +1 -1
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/pyproject.toml +1 -1
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/pydantic_ai.py +19 -14
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/.gitignore +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/LICENSE +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/README.md +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/__init__.py +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/_auto.py +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/_container.py +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/_distro.py +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/_event_loop.py +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/_genai_content.py +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/_metrics.py +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/_operation_details.py +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/_pool.py +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/ag2.py +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/anthropic.py +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/autogen.py +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/claude_agent.py +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/core.py +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/crewai.py +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/gcp.py +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/google_genai.py +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/langchain.py +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/litellm.py +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/llamaindex.py +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/mcp.py +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/openai.py +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/openai_agents.py +0 -0
- {struct_sdk-0.4.21 → struct_sdk-0.4.22}/src/struct_sdk/temporal.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: struct-sdk
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.22
|
|
4
4
|
Summary: Struct agent observability SDK — auto-instruments AI agent frameworks with OpenTelemetry
|
|
5
5
|
Project-URL: Homepage, https://struct.ai
|
|
6
6
|
Project-URL: Documentation, https://struct.ai/docs
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "struct-sdk"
|
|
7
|
-
version = "0.4.
|
|
7
|
+
version = "0.4.22"
|
|
8
8
|
description = "Struct agent observability SDK — auto-instruments AI agent frameworks with OpenTelemetry"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -365,20 +365,25 @@ def _outcome_preserving(original: Any, handler_arg: Optional[str], *, owns_run:
|
|
|
365
365
|
return value
|
|
366
366
|
|
|
367
367
|
try:
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
368
|
+
try:
|
|
369
|
+
return await original(self, *args, handler=tracked, **kwargs)
|
|
370
|
+
except BaseException as error:
|
|
371
|
+
if isinstance(error, _INTERRUPTS) or (outcome and not outcome[0][0] and outcome[0][1] is error):
|
|
372
|
+
raise
|
|
373
|
+
_contain(functools.partial(_raise, error), f"pydantic_ai.{original.__name__}")
|
|
374
|
+
# Outside the handler of the telemetry fault, so re-raising the customer's
|
|
375
|
+
# exception keeps its own __cause__ and __context__.
|
|
376
|
+
if outcome:
|
|
377
|
+
if outcome[0][0]:
|
|
378
|
+
return outcome[0][1]
|
|
379
|
+
raise outcome[0][1]
|
|
380
|
+
# The hook failed before the customer's work ran: run it once, untraced.
|
|
381
|
+
return await (handler() if handler_arg is None else handler(kwargs[handler_arg]))
|
|
382
|
+
finally:
|
|
383
|
+
# A retry's traceback can reach this closure. Native validation errors
|
|
384
|
+
# can hide part of that cycle from GC; release our temporary reference,
|
|
385
|
+
# without keeping an exception alias in this frame or changing its chain.
|
|
386
|
+
outcome.clear()
|
|
382
387
|
|
|
383
388
|
@functools.wraps(original)
|
|
384
389
|
async def hook(self: Any, *args: Any, handler: Any, **kwargs: Any) -> Any:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|