abstractcore 2.6.7__py3-none-any.whl → 2.6.9__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.
@@ -1490,10 +1490,28 @@ Please provide a structured response."""
1490
1490
  Returns:
1491
1491
  GenerateResponse, AsyncIterator[GenerateResponse] for streaming, or BaseModel for structured output
1492
1492
  """
1493
- return await self._agenerate_internal(
1493
+ response = await self._agenerate_internal(
1494
1494
  prompt, messages, system_prompt, tools, media, stream, **kwargs
1495
1495
  )
1496
1496
 
1497
+ # Capture interaction trace if enabled (match sync generate_with_telemetry behavior)
1498
+ # Only for non-streaming responses that are GenerateResponse objects
1499
+ if not stream and self.enable_tracing and response and isinstance(response, GenerateResponse):
1500
+ trace_id = self._capture_trace(
1501
+ prompt=prompt,
1502
+ messages=messages,
1503
+ system_prompt=system_prompt,
1504
+ tools=tools,
1505
+ response=response,
1506
+ kwargs=kwargs
1507
+ )
1508
+ # Attach trace_id to response metadata
1509
+ if not response.metadata:
1510
+ response.metadata = {}
1511
+ response.metadata['trace_id'] = trace_id
1512
+
1513
+ return response
1514
+
1497
1515
  async def _agenerate_internal(self,
1498
1516
  prompt: str,
1499
1517
  messages: Optional[List[Dict]],
@@ -11,4 +11,4 @@ including when the package is installed from PyPI where pyproject.toml is not av
11
11
 
12
12
  # Package version - update this when releasing new versions
13
13
  # This must be manually synchronized with the version in pyproject.toml
14
- __version__ = "2.6.7"
14
+ __version__ = "2.6.9"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: abstractcore
3
- Version: 2.6.7
3
+ Version: 2.6.9
4
4
  Summary: Unified interface to all LLM providers with essential infrastructure for tool calling, streaming, and model management
5
5
  Author-email: Laurent-Philippe Albou <contact@abstractcore.ai>
6
6
  Maintainer-email: Laurent-Philippe Albou <contact@abstractcore.ai>
@@ -69,7 +69,7 @@ abstractcore/processing/basic_judge.py,sha256=L1fc9H0-_88B1TULL-mlaNL7OydMgp-ru_
69
69
  abstractcore/processing/basic_summarizer.py,sha256=XHNxMQ_8aLStTeUo6_2JaThlct12Htpz7ORmm0iuJsg,25495
70
70
  abstractcore/providers/__init__.py,sha256=dNz-KrUwpBZhEv6DkAe3t_V8w40_HjeME5j9VL0lDyo,1886
71
71
  abstractcore/providers/anthropic_provider.py,sha256=0-qZb0Es6-VLuVVl2j7IUjOuyRlgjQdJFulWfpi4qb4,31740
72
- abstractcore/providers/base.py,sha256=nWF1pxeUlT4ozlUqKG0rWOmLkfo-zQgfU7fv3AUSI08,68452
72
+ abstractcore/providers/base.py,sha256=spDiRQw-lWHDaqW_4bejxBVDyKO4f4S9JvE97A_gIq8,69199
73
73
  abstractcore/providers/huggingface_provider.py,sha256=v4UUmODrnWKtTygzPh-lm4jSCAPms5VYJE5v7PWB4Lo,79458
74
74
  abstractcore/providers/lmstudio_provider.py,sha256=92_vx7AVVt_oufJdHo3R0D_V2qyTKO2DKzi9-l4KzWs,34114
75
75
  abstractcore/providers/mlx_provider.py,sha256=afLCEwuw7r8OK4fD3OriyKMcWpxVIob_37ItmgAclfc,23123
@@ -100,11 +100,11 @@ abstractcore/utils/self_fixes.py,sha256=1VYxPq-q7_DtNl39NbrzUmyHpkhb9Q2SdnXUj4c0
100
100
  abstractcore/utils/structured_logging.py,sha256=Vm-HviSa42G9DJCWmaEv4a0QG3NMsADD3ictLOs4En0,19952
101
101
  abstractcore/utils/token_utils.py,sha256=eLwFmJ68p9WMFD_MHLMmeJRW6Oqx_4hKELB8FNQ2Mnk,21097
102
102
  abstractcore/utils/trace_export.py,sha256=MD1DHDWltpewy62cYzz_OSPAA6edZbZq7_pZbvxz_H8,9279
103
- abstractcore/utils/version.py,sha256=fGitJreyjR3YcLSzG8HVouegf1WXPAbePDRHq4L6vdc,605
103
+ abstractcore/utils/version.py,sha256=LXxKtHI5sV3Fa03LU800IJIuxwTAT0LPpqyGF-nUNao,605
104
104
  abstractcore/utils/vlm_token_calculator.py,sha256=KMhV97gYpiWHYNnPR5yFLw6eA1CPKQ1c-ihPdns72Wg,27979
105
- abstractcore-2.6.7.dist-info/licenses/LICENSE,sha256=PI2v_4HMvd6050uDD_4AY_8PzBnu2asa3RKbdDjowTA,1078
106
- abstractcore-2.6.7.dist-info/METADATA,sha256=nEJQ7m4SW_YPgt1S6aa1E0uzR5bn-uYeiVhsZv9I9-M,45837
107
- abstractcore-2.6.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
108
- abstractcore-2.6.7.dist-info/entry_points.txt,sha256=jXNdzeltVs23A2JM2e2HOiAHldHrsnud3EvPI5VffOs,658
109
- abstractcore-2.6.7.dist-info/top_level.txt,sha256=DiNHBI35SIawW3N9Z-z0y6cQYNbXd32pvBkW0RLfScs,13
110
- abstractcore-2.6.7.dist-info/RECORD,,
105
+ abstractcore-2.6.9.dist-info/licenses/LICENSE,sha256=PI2v_4HMvd6050uDD_4AY_8PzBnu2asa3RKbdDjowTA,1078
106
+ abstractcore-2.6.9.dist-info/METADATA,sha256=3Ki5l3Fxn3OLZyYSj2RxxFrODunMH-G283lQC2C6iIs,45837
107
+ abstractcore-2.6.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
108
+ abstractcore-2.6.9.dist-info/entry_points.txt,sha256=jXNdzeltVs23A2JM2e2HOiAHldHrsnud3EvPI5VffOs,658
109
+ abstractcore-2.6.9.dist-info/top_level.txt,sha256=DiNHBI35SIawW3N9Z-z0y6cQYNbXd32pvBkW0RLfScs,13
110
+ abstractcore-2.6.9.dist-info/RECORD,,