xpander-sdk 2.0.217__py3-none-any.whl → 2.0.218__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.
@@ -223,19 +223,25 @@ class OrchestrationClassifierNode(XPanderSharedModel):
223
223
  class OrchestrationGuardrailNode(XPanderSharedModel):
224
224
  """Node that uses LLM to evaluate input and enforce guardrails.
225
225
 
226
- This node can stop execution if the guardrail check fails.
226
+ This node uses group-based classification similar to the Classifier node.
227
+ It requires exactly 2 groups with IDs "pass" and "fail":
228
+ - "pass" group: Criteria for when input should pass the guardrail
229
+ - "fail" group: Criteria for when input should fail the guardrail
230
+
231
+ Routing behavior:
232
+ - If "pass" matches: Routes to downstream nodes connected via "pass" condition
233
+ - If "fail" matches: Routes to downstream nodes connected via "fail" condition,
234
+ or falls back to end nodes (end-summarizer/end-classifier) if no fail route exists
227
235
 
228
236
  Attributes:
229
- instructions: Evaluation instructions for the LLM to assess the input.
237
+ groups: List of 2 ClassificationGroup objects with IDs "pass" and "fail".
230
238
  examples: Example inputs/outputs to guide the LLM behavior.
231
239
  settings: LLM configuration settings.
232
- stop_on_false: Whether to stop execution if the guardrail check fails. Defaults to True.
233
240
  """
234
241
 
235
- instructions: str
242
+ groups: List[ClassificationGroup]
236
243
  examples: Optional[List[str]] = []
237
244
  settings: OrchestrationClassifierNodeLLMSettings
238
- stop_on_false: Optional[bool] = True
239
245
 
240
246
  class OrchestrationSummarizerNode(XPanderSharedModel):
241
247
  """Node that processes large payloads and answers specific questions.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xpander-sdk
3
- Version: 2.0.217
3
+ Version: 2.0.218
4
4
  Summary: xpander.ai Backend-as-a-service for AI Agents - SDK
5
5
  Home-page: https://www.xpander.ai
6
6
  Author: xpanderAI
@@ -16,7 +16,7 @@ xpander_sdk/models/events.py,sha256=HnootQSUIIRM4BIdaTbuPUEJ55hLVtA7KDCSsnHeBKw,
16
16
  xpander_sdk/models/frameworks.py,sha256=-7W_m5cvgS1qLp0gGAFP4noNWT82IT1ZqtQv5WuOC2k,2939
17
17
  xpander_sdk/models/generic.py,sha256=yw5rBRdZ-6ucTI4AwtskenddepOooiFRM--9xx5jrL8,681
18
18
  xpander_sdk/models/notifications.py,sha256=ryc0VDXoiuZDEh791LYzW73GC0qH1y2hYl8Fj5Xv0FU,4141
19
- xpander_sdk/models/orchestrations.py,sha256=uqKXATnBYCah6KJD20IV6_6-Etlke9RSrbRUfEm2M0U,13087
19
+ xpander_sdk/models/orchestrations.py,sha256=hoL2YBMcMXZ6kXMLiJtpC-g4Ibv9RLovtdFHpVvm-gA,13463
20
20
  xpander_sdk/models/shared.py,sha256=gW88kA_UslNinUjtQKpLVF0sHDZnckwLWexRapxPivU,3125
21
21
  xpander_sdk/models/user.py,sha256=_FTG0JO6iTrbcvJp-BBJ6nuj281zhyQB5ldQkBCyYDU,749
22
22
  xpander_sdk/modules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -90,8 +90,8 @@ xpander_sdk/utils/generic.py,sha256=XrRj2-L8c0YWpfPdDyXE-pVL-6lKF9VpyZzKHQ4wuCc,
90
90
  xpander_sdk/utils/tools.py,sha256=lyFkq2yP7DxBkyXYVlnFRwDhQCvf0fZZMDm5fBycze4,1244
91
91
  xpander_sdk/utils/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
92
92
  xpander_sdk/utils/agents/compactization_agent.py,sha256=S_U1dSmDC7I0JUsp_THUYjfutEI5QMBaMPJEXGp0_Sw,14389
93
- xpander_sdk-2.0.217.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
94
- xpander_sdk-2.0.217.dist-info/METADATA,sha256=kseDOPzpZzUIgqe-KAc9rCHT72L8wrb0QdXC-K9DuD8,17952
95
- xpander_sdk-2.0.217.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
96
- xpander_sdk-2.0.217.dist-info/top_level.txt,sha256=UCjnxQpsMy5Zoe7lmRuVDO6DI2V_6PgRFfm4oizRbVs,12
97
- xpander_sdk-2.0.217.dist-info/RECORD,,
93
+ xpander_sdk-2.0.218.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
94
+ xpander_sdk-2.0.218.dist-info/METADATA,sha256=6cp3OHkDp-1UnHS-korSXv2M3ZZyuM4HewIzj7aOunU,17952
95
+ xpander_sdk-2.0.218.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
96
+ xpander_sdk-2.0.218.dist-info/top_level.txt,sha256=UCjnxQpsMy5Zoe7lmRuVDO6DI2V_6PgRFfm4oizRbVs,12
97
+ xpander_sdk-2.0.218.dist-info/RECORD,,