prompture 0.0.37.dev1__py3-none-any.whl → 0.0.37.dev3__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.dev1'
32
- __version_tuple__ = version_tuple = (0, 0, 37, 'dev1')
31
+ __version__ = version = '0.0.37.dev3'
32
+ __version_tuple__ = version_tuple = (0, 0, 37, 'dev3')
33
33
 
34
34
  __commit_id__ = commit_id = None
prompture/agent.py CHANGED
@@ -80,6 +80,7 @@ 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
83
84
  pass
84
85
 
85
86
  # Fallback: inspect raw annotation (may be a string)
@@ -794,9 +795,7 @@ class Agent(Generic[DepsType]):
794
795
 
795
796
  if has_tools:
796
797
  # 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
800
799
 
801
800
  # Yield the full text as a single delta
802
801
  yield StreamEvent(
prompture/async_agent.py CHANGED
@@ -81,6 +81,7 @@ 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
84
85
  pass
85
86
 
86
87
  if annotation is None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prompture
3
- Version: 0.0.37.dev1
3
+ Version: 0.0.37.dev3
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=E6wmyF_u9MR2NQqC8PHHfE07eLhN9bJx6shpgcG-AEY,719
3
- prompture/agent.py,sha256=ZsxoSCWYTv04_IABqsbOQ5LD6W9Gc9V1e5-JVksMoG0,34716
2
+ prompture/_version.py,sha256=w1KehsBN9MUFUyJxNumZkyVVYXICk9Ki679trU95NeQ,719
3
+ prompture/agent.py,sha256=xe_yFHGDzTxaU4tmaLt5AQnzrN0I72hBGwGVrCxg2D0,34704
4
4
  prompture/agent_types.py,sha256=Icl16PQI-ThGLMFCU43adtQA6cqETbsPn4KssKBI4xc,4664
5
- prompture/async_agent.py,sha256=QY8oYB7U-BVPABiuzCNfF3SCMDSFH3aqTfWAWXTdltw,32973
5
+ prompture/async_agent.py,sha256=nOLOQCNkg0sKKTpryIiidmIcAAlA3FR2NfnZwrNBuCg,33066
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.dev1.dist-info/licenses/LICENSE,sha256=0HgDepH7aaHNFhHF-iXuW6_GqDfYPnVkjtiCAZ4yS8I,1060
73
- prompture-0.0.37.dev1.dist-info/METADATA,sha256=6-v8LLPY_jeb9LO9Rck3r8gy5LiDsm6P65EF9z65ckY,10842
74
- prompture-0.0.37.dev1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
75
- prompture-0.0.37.dev1.dist-info/entry_points.txt,sha256=AFPG3lJR86g4IJMoWQUW5Ph7G6MLNWG3A2u2Tp9zkp8,48
76
- prompture-0.0.37.dev1.dist-info/top_level.txt,sha256=to86zq_kjfdoLeAxQNr420UWqT0WzkKoZ509J7Qr2t4,10
77
- prompture-0.0.37.dev1.dist-info/RECORD,,
72
+ prompture-0.0.37.dev3.dist-info/licenses/LICENSE,sha256=0HgDepH7aaHNFhHF-iXuW6_GqDfYPnVkjtiCAZ4yS8I,1060
73
+ prompture-0.0.37.dev3.dist-info/METADATA,sha256=WzyxeL1KkdJGCpOm0CFZhmPot1NmmRGbHdCxS6_rGB8,10842
74
+ prompture-0.0.37.dev3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
75
+ prompture-0.0.37.dev3.dist-info/entry_points.txt,sha256=AFPG3lJR86g4IJMoWQUW5Ph7G6MLNWG3A2u2Tp9zkp8,48
76
+ prompture-0.0.37.dev3.dist-info/top_level.txt,sha256=to86zq_kjfdoLeAxQNr420UWqT0WzkKoZ509J7Qr2t4,10
77
+ prompture-0.0.37.dev3.dist-info/RECORD,,