prompture 0.0.37__py3-none-any.whl → 0.0.37.dev2__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.
prompture/_version.py CHANGED
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '0.0.37'
32
- __version_tuple__ = version_tuple = (0, 0, 37)
31
+ __version__ = version = '0.0.37.dev2'
32
+ __version_tuple__ = version_tuple = (0, 0, 37, 'dev2')
33
33
 
34
34
  __commit_id__ = commit_id = None
prompture/agent.py CHANGED
@@ -80,7 +80,6 @@ def _tool_wants_context(fn: Callable[..., Any]) -> bool:
80
80
  hints = typing.get_type_hints(fn, include_extras=True)
81
81
  annotation = hints.get(first_param)
82
82
  except Exception:
83
- # get_type_hints can fail with local/forward references; fall back to raw annotation
84
83
  pass
85
84
 
86
85
  # Fallback: inspect raw annotation (may be a string)
@@ -795,7 +794,9 @@ class Agent(Generic[DepsType]):
795
794
 
796
795
  if has_tools:
797
796
  # Tools registered: fall back to non-streaming conv.ask()
797
+ t0 = time.perf_counter()
798
798
  response_text = conv.ask(effective_prompt)
799
+ _elapsed_ms = (time.perf_counter() - t0) * 1000
799
800
 
800
801
  # Yield the full text as a single delta
801
802
  yield StreamEvent(
prompture/async_agent.py CHANGED
@@ -81,7 +81,6 @@ def _tool_wants_context(fn: Callable[..., Any]) -> bool:
81
81
  hints = typing.get_type_hints(fn, include_extras=True)
82
82
  annotation = hints.get(first_param)
83
83
  except Exception:
84
- # get_type_hints can fail with local/forward references; fall back to raw annotation
85
84
  pass
86
85
 
87
86
  if annotation is None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prompture
3
- Version: 0.0.37
3
+ Version: 0.0.37.dev2
4
4
  Summary: Ask LLMs to return structured JSON and run cross-model tests. API-first.
5
5
  Author-email: Juan Denis <juan@vene.co>
6
6
  License-Expression: MIT
@@ -1,8 +1,8 @@
1
1
  prompture/__init__.py,sha256=RrpHZlLPpzntUOp2tL2II2DdVxQRoCxY6JBF_b4k3s0,7213
2
- prompture/_version.py,sha256=BV1Ma7idHU0hCvzfaqU-vGA4N-4x9mQtKafasKpzadA,706
3
- prompture/agent.py,sha256=xe_yFHGDzTxaU4tmaLt5AQnzrN0I72hBGwGVrCxg2D0,34704
2
+ prompture/_version.py,sha256=rWjztFBWt3crU-Bks4Dwc3qBaSaaO00Ts1ULh6347SY,719
3
+ prompture/agent.py,sha256=ZsxoSCWYTv04_IABqsbOQ5LD6W9Gc9V1e5-JVksMoG0,34716
4
4
  prompture/agent_types.py,sha256=Icl16PQI-ThGLMFCU43adtQA6cqETbsPn4KssKBI4xc,4664
5
- prompture/async_agent.py,sha256=nOLOQCNkg0sKKTpryIiidmIcAAlA3FR2NfnZwrNBuCg,33066
5
+ prompture/async_agent.py,sha256=QY8oYB7U-BVPABiuzCNfF3SCMDSFH3aqTfWAWXTdltw,32973
6
6
  prompture/async_conversation.py,sha256=7NOkXdT5LnUNPVzTammtHeiOV2vB6IfZGuysbtNfcHQ,30861
7
7
  prompture/async_core.py,sha256=s8G0nGUGR1Bf_BQG9_FcQRpveSnJKkEwcWNfbAJaSkg,29208
8
8
  prompture/async_driver.py,sha256=99WZNlfEpPH9kVykRH6Qa2ZooeVw6pXa23_UUQj0Tag,7179
@@ -69,9 +69,9 @@ prompture/scaffold/templates/env.example.j2,sha256=eESKr1KWgyrczO6d-nwAhQwSpf_G-
69
69
  prompture/scaffold/templates/main.py.j2,sha256=TEgc5OvsZOEX0JthkSW1NI_yLwgoeVN_x97Ibg-vyWY,2632
70
70
  prompture/scaffold/templates/models.py.j2,sha256=JrZ99GCVK6TKWapskVRSwCssGrTu5cGZ_r46fOhY2GE,858
71
71
  prompture/scaffold/templates/requirements.txt.j2,sha256=m3S5fi1hq9KG9l_9j317rjwWww0a43WMKd8VnUWv2A4,102
72
- prompture-0.0.37.dist-info/licenses/LICENSE,sha256=0HgDepH7aaHNFhHF-iXuW6_GqDfYPnVkjtiCAZ4yS8I,1060
73
- prompture-0.0.37.dist-info/METADATA,sha256=9zTeM1s5pmj6hUe7HDtkYbi6_sMm6djoEPtWB9b9q7I,10837
74
- prompture-0.0.37.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
75
- prompture-0.0.37.dist-info/entry_points.txt,sha256=AFPG3lJR86g4IJMoWQUW5Ph7G6MLNWG3A2u2Tp9zkp8,48
76
- prompture-0.0.37.dist-info/top_level.txt,sha256=to86zq_kjfdoLeAxQNr420UWqT0WzkKoZ509J7Qr2t4,10
77
- prompture-0.0.37.dist-info/RECORD,,
72
+ prompture-0.0.37.dev2.dist-info/licenses/LICENSE,sha256=0HgDepH7aaHNFhHF-iXuW6_GqDfYPnVkjtiCAZ4yS8I,1060
73
+ prompture-0.0.37.dev2.dist-info/METADATA,sha256=GFXXoPucPa4DMNSPm3bcfmhOmnP3ccF03Jd_hWxKcAM,10842
74
+ prompture-0.0.37.dev2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
75
+ prompture-0.0.37.dev2.dist-info/entry_points.txt,sha256=AFPG3lJR86g4IJMoWQUW5Ph7G6MLNWG3A2u2Tp9zkp8,48
76
+ prompture-0.0.37.dev2.dist-info/top_level.txt,sha256=to86zq_kjfdoLeAxQNr420UWqT0WzkKoZ509J7Qr2t4,10
77
+ prompture-0.0.37.dev2.dist-info/RECORD,,