trodo-python 2.12.0__py3-none-any.whl → 2.13.0__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.
- trodo/__init__.py +1 -1
- trodo/managers/prompt_manager.py +2 -2
- trodo/prompts/compile.py +1 -1
- trodo/prompts/types.py +1 -1
- {trodo_python-2.12.0.dist-info → trodo_python-2.13.0.dist-info}/METADATA +1 -1
- {trodo_python-2.12.0.dist-info → trodo_python-2.13.0.dist-info}/RECORD +8 -8
- {trodo_python-2.12.0.dist-info → trodo_python-2.13.0.dist-info}/WHEEL +0 -0
- {trodo_python-2.12.0.dist-info → trodo_python-2.13.0.dist-info}/top_level.txt +0 -0
trodo/__init__.py
CHANGED
trodo/managers/prompt_manager.py
CHANGED
|
@@ -75,7 +75,7 @@ def _to_prompt(raw: Dict[str, Any], is_fallback: bool = False) -> ManagedPrompt:
|
|
|
75
75
|
version=int(raw.get("version") or 0),
|
|
76
76
|
labels=list(raw.get("labels") or []),
|
|
77
77
|
messages=list(raw.get("messages") or []),
|
|
78
|
-
|
|
78
|
+
model=dict(raw.get("model") or {}),
|
|
79
79
|
tools=list(raw.get("tools") or []),
|
|
80
80
|
response_format=raw.get("response_format"),
|
|
81
81
|
variables=_to_variables(raw.get("variables")),
|
|
@@ -245,7 +245,7 @@ class PromptManager:
|
|
|
245
245
|
"labels": [],
|
|
246
246
|
"tags": [],
|
|
247
247
|
"messages": fallback.get("messages") or [],
|
|
248
|
-
"
|
|
248
|
+
"model": fallback.get("model") or {},
|
|
249
249
|
"tools": [],
|
|
250
250
|
"response_format": None,
|
|
251
251
|
"variables": fallback.get("variables") or [],
|
trodo/prompts/compile.py
CHANGED
|
@@ -175,7 +175,7 @@ def compile_prompt(prompt: Any, values: Optional[Dict[str, Any]] = None) -> Comp
|
|
|
175
175
|
|
|
176
176
|
return CompiledPrompt(
|
|
177
177
|
messages=out,
|
|
178
|
-
model=get("
|
|
178
|
+
model=get("model") or {},
|
|
179
179
|
tools=get("tools") or [],
|
|
180
180
|
response_format=get("response_format"),
|
|
181
181
|
)
|
trodo/prompts/types.py
CHANGED
|
@@ -54,7 +54,7 @@ class ManagedPrompt:
|
|
|
54
54
|
|
|
55
55
|
name: str
|
|
56
56
|
messages: List[PromptNode] = field(default_factory=list)
|
|
57
|
-
|
|
57
|
+
model: ModelConfig = field(default_factory=dict)
|
|
58
58
|
tools: List[PromptTool] = field(default_factory=list)
|
|
59
59
|
response_format: Optional[ResponseFormat] = None
|
|
60
60
|
variables: List[PromptVariable] = field(default_factory=list)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
trodo/__init__.py,sha256=
|
|
1
|
+
trodo/__init__.py,sha256=9VvBIbahXhuKln5593dCq29dan1IN7xFHU0voW4SDqs,21167
|
|
2
2
|
trodo/client.py,sha256=z2q1HZKQNENycv9CRD0kOfwEhmz3Ti9_B-uPsqpvY3U,19454
|
|
3
3
|
trodo/types.py,sha256=eySgUvCXROG2TxtxgiU0MNr5iH0DEcduK8bmYtTKG44,3138
|
|
4
4
|
trodo/user_context.py,sha256=9la6azzwEanVmdP4ps_xMoufbeWVeIGU-M8ychmgajg,7859
|
|
@@ -11,7 +11,7 @@ trodo/auto/auto_event_manager.py,sha256=cztuRsRkNoJE5R4NfSfTrTJTGl4jx2Yb-Ncy0aVA
|
|
|
11
11
|
trodo/managers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
12
|
trodo/managers/group_manager.py,sha256=ki3Se3qEoSZfREX63oeDeBmEfZF-ISHLE8azEtLg0tM,3542
|
|
13
13
|
trodo/managers/people_manager.py,sha256=mMVnx40Mlifx6NGgChvohC9ViK6dQu2mkXNHbV8pK1E,2882
|
|
14
|
-
trodo/managers/prompt_manager.py,sha256=
|
|
14
|
+
trodo/managers/prompt_manager.py,sha256=vdii9mgsa5_M7Ewii3mcx6M9xJu_eJBRx_FoGQBII9E,10420
|
|
15
15
|
trodo/otel/__init__.py,sha256=yiRFXWUU45bAM2CV37XeO7zf1hmnmjufdP4XO50yEyE,624
|
|
16
16
|
trodo/otel/auto_instrument.py,sha256=hJesQMOOp86U66PampcGNINmBVvwVuU_WHVrbUMauug,20895
|
|
17
17
|
trodo/otel/context.py,sha256=iJ1rE42-SbO8VZHAxhIl2ZJXgNwLIVps5xLg8GKgfFc,1165
|
|
@@ -21,16 +21,16 @@ trodo/otel/register.py,sha256=bV_ePTfUvPugig2GZnylhzxi2QfoPWs96A9mGLPMrSQ,9387
|
|
|
21
21
|
trodo/otel/transport.py,sha256=hzZz8gwSMGJ8CxdijmLn1Ljt18owr9XTWy13DLbwYbw,2441
|
|
22
22
|
trodo/otel/wrap_agent.py,sha256=_nFDhxPyl0RlNKj29cBNeRc_zAY5FUiHvTiNUWxTt0M,39049
|
|
23
23
|
trodo/prompts/__init__.py,sha256=yunNc8WkTSfEEkRR-NZWXAt_ZB3Ee2INRh-4RE7uHj4,806
|
|
24
|
-
trodo/prompts/compile.py,sha256=
|
|
24
|
+
trodo/prompts/compile.py,sha256=sEMl8EWdK0G9uOKGcgc39ujnA5RLCUtbk26TYVqK68Q,6345
|
|
25
25
|
trodo/prompts/template.py,sha256=obQiivPCR6LEdz7q1cby7uL25tYHYui4aoEaiUNqWfs,9357
|
|
26
|
-
trodo/prompts/types.py,sha256=
|
|
26
|
+
trodo/prompts/types.py,sha256=jAlxy4-Wj7FUH3hoX-XG2dymwdZv6HZWtWAU8ZF1StY,2917
|
|
27
27
|
trodo/queue/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
28
28
|
trodo/queue/batch_flusher.py,sha256=4Lg6T3Urwi9U0Q4FpFGPmjDYKg4ZliCTR-ND8BJvWaY,1298
|
|
29
29
|
trodo/queue/event_queue.py,sha256=EVFZrhlq_kwC3jJ2GK0wMhHISf9UzLCZNDnT_aZ2I2A,872
|
|
30
30
|
trodo/session/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
31
31
|
trodo/session/server_session.py,sha256=McsudEiq33XDq3nqxgzBcUvIjQxCMscwEuAPnYXrTjs,2136
|
|
32
32
|
trodo/session/session_manager.py,sha256=JrgH1VeicmtlxPR4dXEuJbxhi23OelkgwW3-9Slv80o,2525
|
|
33
|
-
trodo_python-2.
|
|
34
|
-
trodo_python-2.
|
|
35
|
-
trodo_python-2.
|
|
36
|
-
trodo_python-2.
|
|
33
|
+
trodo_python-2.13.0.dist-info/METADATA,sha256=HxXOZvtOQo-X2QNd0HQVo2jEAQUnCrkkRpwMM9tdHUw,23115
|
|
34
|
+
trodo_python-2.13.0.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
|
|
35
|
+
trodo_python-2.13.0.dist-info/top_level.txt,sha256=VCQu1CJWFmNsqTs1YxMcw4Mq35Tc3z3uI9RwHEXAayQ,6
|
|
36
|
+
trodo_python-2.13.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|