prompture 0.0.37.dev2__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 +2 -2
- prompture/agent.py +1 -2
- prompture/async_agent.py +1 -0
- {prompture-0.0.37.dev2.dist-info → prompture-0.0.37.dev3.dist-info}/METADATA +1 -1
- {prompture-0.0.37.dev2.dist-info → prompture-0.0.37.dev3.dist-info}/RECORD +9 -9
- {prompture-0.0.37.dev2.dist-info → prompture-0.0.37.dev3.dist-info}/WHEEL +0 -0
- {prompture-0.0.37.dev2.dist-info → prompture-0.0.37.dev3.dist-info}/entry_points.txt +0 -0
- {prompture-0.0.37.dev2.dist-info → prompture-0.0.37.dev3.dist-info}/licenses/LICENSE +0 -0
- {prompture-0.0.37.dev2.dist-info → prompture-0.0.37.dev3.dist-info}/top_level.txt +0 -0
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.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,8 +1,8 @@
|
|
|
1
1
|
prompture/__init__.py,sha256=RrpHZlLPpzntUOp2tL2II2DdVxQRoCxY6JBF_b4k3s0,7213
|
|
2
|
-
prompture/_version.py,sha256=
|
|
3
|
-
prompture/agent.py,sha256=
|
|
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=
|
|
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.
|
|
73
|
-
prompture-0.0.37.
|
|
74
|
-
prompture-0.0.37.
|
|
75
|
-
prompture-0.0.37.
|
|
76
|
-
prompture-0.0.37.
|
|
77
|
-
prompture-0.0.37.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|