xpander-sdk 2.0.216__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.
@@ -143,6 +143,19 @@ class OrchestrationClassifierNodeLLMSettings(XPanderSharedModel):
143
143
  llm_api_base: Optional[str] = None
144
144
  llm_extra_headers: Optional[Dict[str,str]] = {}
145
145
 
146
+ class SchemaOverride(XPanderSharedModel):
147
+ """Schema override for workflow action nodes.
148
+
149
+ Allows setting permanent (fixed) values for tool input properties.
150
+ Fields with permanentValue will be removed from the schema sent to the LLM
151
+ and the permanent values will be applied to the payload before execution.
152
+
153
+ Attributes:
154
+ input: Input schema with permanentValue fields to override LLM-generated values.
155
+ """
156
+ input: Optional[Dict] = None
157
+
158
+
146
159
  class OrchestrationPointerNode(XPanderSharedModel):
147
160
  """Node that references an external asset (agent, function, or orchestration).
148
161
 
@@ -153,6 +166,7 @@ class OrchestrationPointerNode(XPanderSharedModel):
153
166
  output_schema: JSON schema for structured output validation.
154
167
  instructions: Optional instructions for the pointer node (Action only).
155
168
  ignore_response: Should ignore the node result and proceed with previous result?.
169
+ schema_override: Optional schema override with permanentValue fields for fixed values.
156
170
  """
157
171
 
158
172
  asset_id: str
@@ -167,6 +181,7 @@ class OrchestrationPointerNode(XPanderSharedModel):
167
181
  output_schema: Optional[Dict] = None
168
182
  instructions: Optional[str] = None
169
183
  ignore_response: Optional[bool] = False
184
+ schema_override: Optional[SchemaOverride] = None
170
185
 
171
186
  class ClassificationGroup(XPanderSharedModel):
172
187
  """A classification group with evaluation criteria and data extraction settings.
@@ -208,19 +223,25 @@ class OrchestrationClassifierNode(XPanderSharedModel):
208
223
  class OrchestrationGuardrailNode(XPanderSharedModel):
209
224
  """Node that uses LLM to evaluate input and enforce guardrails.
210
225
 
211
- 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
212
235
 
213
236
  Attributes:
214
- instructions: Evaluation instructions for the LLM to assess the input.
237
+ groups: List of 2 ClassificationGroup objects with IDs "pass" and "fail".
215
238
  examples: Example inputs/outputs to guide the LLM behavior.
216
239
  settings: LLM configuration settings.
217
- stop_on_false: Whether to stop execution if the guardrail check fails. Defaults to True.
218
240
  """
219
241
 
220
- instructions: str
242
+ groups: List[ClassificationGroup]
221
243
  examples: Optional[List[str]] = []
222
244
  settings: OrchestrationClassifierNodeLLMSettings
223
- stop_on_false: Optional[bool] = True
224
245
 
225
246
  class OrchestrationSummarizerNode(XPanderSharedModel):
226
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.216
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=WkYKtrnbXJjGR0bLx9rWG4T2tYE5lJgjEAYmCrI5vmc,12461
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.216.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
94
- xpander_sdk-2.0.216.dist-info/METADATA,sha256=Aj9pWgRY79mINYpJGgi-7o3EktBdo7uyWeNq6vswf-Q,17952
95
- xpander_sdk-2.0.216.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
96
- xpander_sdk-2.0.216.dist-info/top_level.txt,sha256=UCjnxQpsMy5Zoe7lmRuVDO6DI2V_6PgRFfm4oizRbVs,12
97
- xpander_sdk-2.0.216.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,,