ibm-watsonx-orchestrate 1.6.2__py3-none-any.whl → 1.6.4__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.
Files changed (60) hide show
  1. ibm_watsonx_orchestrate/__init__.py +2 -1
  2. ibm_watsonx_orchestrate/agent_builder/agents/agent.py +3 -3
  3. ibm_watsonx_orchestrate/agent_builder/agents/assistant_agent.py +3 -2
  4. ibm_watsonx_orchestrate/agent_builder/agents/external_agent.py +3 -2
  5. ibm_watsonx_orchestrate/agent_builder/agents/types.py +38 -9
  6. ibm_watsonx_orchestrate/agent_builder/connections/connections.py +4 -3
  7. ibm_watsonx_orchestrate/agent_builder/connections/types.py +14 -2
  8. ibm_watsonx_orchestrate/agent_builder/knowledge_bases/knowledge_base_requests.py +1 -22
  9. ibm_watsonx_orchestrate/agent_builder/knowledge_bases/types.py +1 -17
  10. ibm_watsonx_orchestrate/agent_builder/tools/base_tool.py +2 -1
  11. ibm_watsonx_orchestrate/agent_builder/tools/openapi_tool.py +75 -24
  12. ibm_watsonx_orchestrate/agent_builder/tools/python_tool.py +136 -92
  13. ibm_watsonx_orchestrate/agent_builder/tools/types.py +17 -11
  14. ibm_watsonx_orchestrate/cli/commands/agents/agents_command.py +7 -7
  15. ibm_watsonx_orchestrate/cli/commands/agents/agents_controller.py +7 -6
  16. ibm_watsonx_orchestrate/cli/commands/channels/types.py +15 -2
  17. ibm_watsonx_orchestrate/cli/commands/channels/webchat/channels_webchat_controller.py +35 -25
  18. ibm_watsonx_orchestrate/cli/commands/connections/connections_command.py +14 -6
  19. ibm_watsonx_orchestrate/cli/commands/connections/connections_controller.py +6 -8
  20. ibm_watsonx_orchestrate/cli/commands/copilot/copilot_command.py +65 -0
  21. ibm_watsonx_orchestrate/cli/commands/copilot/copilot_controller.py +368 -0
  22. ibm_watsonx_orchestrate/cli/commands/copilot/copilot_server_controller.py +170 -0
  23. ibm_watsonx_orchestrate/cli/commands/environment/environment_controller.py +5 -5
  24. ibm_watsonx_orchestrate/cli/commands/environment/types.py +3 -1
  25. ibm_watsonx_orchestrate/cli/commands/evaluations/evaluations_command.py +102 -37
  26. ibm_watsonx_orchestrate/cli/commands/evaluations/evaluations_controller.py +20 -2
  27. ibm_watsonx_orchestrate/cli/commands/knowledge_bases/knowledge_bases_command.py +0 -18
  28. ibm_watsonx_orchestrate/cli/commands/knowledge_bases/knowledge_bases_controller.py +36 -20
  29. ibm_watsonx_orchestrate/cli/commands/models/models_command.py +1 -1
  30. ibm_watsonx_orchestrate/cli/commands/models/models_controller.py +5 -8
  31. ibm_watsonx_orchestrate/cli/commands/server/server_command.py +94 -36
  32. ibm_watsonx_orchestrate/cli/commands/toolkit/toolkit_command.py +1 -1
  33. ibm_watsonx_orchestrate/cli/commands/tools/tools_controller.py +11 -4
  34. ibm_watsonx_orchestrate/cli/config.py +3 -3
  35. ibm_watsonx_orchestrate/cli/init_helper.py +10 -1
  36. ibm_watsonx_orchestrate/cli/main.py +5 -0
  37. ibm_watsonx_orchestrate/client/base_api_client.py +12 -0
  38. ibm_watsonx_orchestrate/client/connections/connections_client.py +5 -30
  39. ibm_watsonx_orchestrate/client/copilot/cpe/copilot_cpe_client.py +67 -0
  40. ibm_watsonx_orchestrate/client/knowledge_bases/knowledge_base_client.py +1 -1
  41. ibm_watsonx_orchestrate/client/local_service_instance.py +3 -1
  42. ibm_watsonx_orchestrate/client/service_instance.py +33 -7
  43. ibm_watsonx_orchestrate/client/utils.py +49 -8
  44. ibm_watsonx_orchestrate/docker/compose-lite.yml +198 -6
  45. ibm_watsonx_orchestrate/docker/default.env +36 -12
  46. ibm_watsonx_orchestrate/flow_builder/flows/__init__.py +9 -4
  47. ibm_watsonx_orchestrate/flow_builder/flows/decorators.py +4 -2
  48. ibm_watsonx_orchestrate/flow_builder/flows/events.py +10 -9
  49. ibm_watsonx_orchestrate/flow_builder/flows/flow.py +131 -20
  50. ibm_watsonx_orchestrate/flow_builder/node.py +18 -1
  51. ibm_watsonx_orchestrate/flow_builder/types.py +271 -16
  52. ibm_watsonx_orchestrate/flow_builder/utils.py +120 -6
  53. ibm_watsonx_orchestrate/utils/exceptions.py +23 -0
  54. {ibm_watsonx_orchestrate-1.6.2.dist-info → ibm_watsonx_orchestrate-1.6.4.dist-info}/METADATA +3 -7
  55. {ibm_watsonx_orchestrate-1.6.2.dist-info → ibm_watsonx_orchestrate-1.6.4.dist-info}/RECORD +58 -55
  56. ibm_watsonx_orchestrate/agent_builder/utils/pydantic_utils.py +0 -149
  57. ibm_watsonx_orchestrate/flow_builder/resources/flow_status.openapi.yml +0 -66
  58. {ibm_watsonx_orchestrate-1.6.2.dist-info → ibm_watsonx_orchestrate-1.6.4.dist-info}/WHEEL +0 -0
  59. {ibm_watsonx_orchestrate-1.6.2.dist-info → ibm_watsonx_orchestrate-1.6.4.dist-info}/entry_points.txt +0 -0
  60. {ibm_watsonx_orchestrate-1.6.2.dist-info → ibm_watsonx_orchestrate-1.6.4.dist-info}/licenses/LICENSE +0 -0
@@ -6,7 +6,6 @@ import logging
6
6
  from pydantic import BaseModel, TypeAdapter
7
7
 
8
8
  from langchain_core.utils.json_schema import dereference_refs
9
- from rpds import List
10
9
  import typer
11
10
  import yaml
12
11
 
@@ -87,9 +86,15 @@ def _get_tool_request_body(schema_obj: JsonSchemaObject) -> ToolRequestBody:
87
86
  return None
88
87
 
89
88
  if isinstance(schema_obj, JsonSchemaObject):
90
- request_obj = ToolRequestBody(type='object', properties=schema_obj.properties, required=schema_obj.required)
91
- if schema_obj.model_extra:
92
- request_obj.__pydantic_extra__ = schema_obj.model_extra
89
+ if schema_obj.type == "object":
90
+ request_obj = ToolRequestBody(type='object', properties=schema_obj.properties, required=schema_obj.required)
91
+ if schema_obj.model_extra:
92
+ request_obj.__pydantic_extra__ = schema_obj.model_extra
93
+ else: # we need to wrap a simple type with an object
94
+ request_obj = ToolRequestBody(type='object', properties={}, required=[])
95
+ request_obj.properties["data"] = schema_obj
96
+ if schema_obj.model_extra:
97
+ request_obj.__pydantic_extra__ = schema_obj.model_extra
93
98
 
94
99
  return request_obj
95
100
 
@@ -162,17 +167,27 @@ async def import_flow_model(model):
162
167
 
163
168
  return tool_id
164
169
 
165
- def import_flow_support_tools():
170
+ def import_flow_support_tools(model):
166
171
 
167
172
  if not is_local_dev():
168
173
  # we can't import support tools into non-local environments yet
169
174
  return []
170
175
 
176
+
177
+ schedulable = False
178
+ if "schedulable" in model["spec"]:
179
+ schedulable = model["spec"]["schedulable"]
180
+
171
181
  client = instantiate_client(TempusClient)
172
182
 
173
183
  logger.info(f"Import 'get_flow_status' tool spec...")
174
184
  tools = [create_flow_status_tool("i__get_flow_status_intrinsic_tool__")]
175
185
 
186
+ if schedulable:
187
+ get_schedule_tool = create_get_schedule_tool("i__get_schedule_intrinsic_tool__")
188
+ delete_schedule_tool = create_delete_schedule_tool("i__delete_schedule_intrinsic_tool__")
189
+ tools.extend([get_schedule_tool, delete_schedule_tool])
190
+
176
191
  return tools
177
192
 
178
193
  # Assisted by watsonx Code Assistant
@@ -187,7 +202,7 @@ def create_flow_status_tool(flow_status_tool: str, TEMPUS_ENDPOINT: str="http://
187
202
  )
188
203
 
189
204
  openapi_binding = OpenApiToolBinding(
190
- http_path="/flows",
205
+ http_path="/v1/flows",
191
206
  http_method="GET",
192
207
  security=[],
193
208
  servers=[TEMPUS_ENDPOINT]
@@ -213,3 +228,102 @@ def create_flow_status_tool(flow_status_tool: str, TEMPUS_ENDPOINT: str="http://
213
228
 
214
229
  return OpenAPITool(spec=spec)
215
230
 
231
+
232
+ def create_get_schedule_tool(name: str, TEMPUS_ENDPOINT: str="http://wxo-tempus-runtime:9044") -> dict:
233
+
234
+ spec = ToolSpec(
235
+ name=name,
236
+ description="Use this tool to show the current schedules.",
237
+ permission='read_only',
238
+ display_name= "Get Schedules"
239
+ )
240
+
241
+ openapi_binding = OpenApiToolBinding(
242
+ http_path="/v1/schedules/simple",
243
+ http_method="GET",
244
+ security=[],
245
+ servers=[TEMPUS_ENDPOINT]
246
+ )
247
+
248
+ spec.binding = ToolBinding(openapi=openapi_binding)
249
+ # Input Schema
250
+ properties = {
251
+ "query_schedule_id": {
252
+ "type": "string",
253
+ "title": "schedule_id",
254
+ "description": "Identifies the schedule instance.",
255
+ "in": "query"
256
+ },
257
+ "query_schedule_name": {
258
+ "type": "string",
259
+ "title": "schedule_name",
260
+ "description": "Identifies the schedule name.",
261
+ "in": "query"
262
+ },
263
+ }
264
+
265
+ spec.input_schema = ToolRequestBody(
266
+ type='object',
267
+ properties=properties,
268
+ required=[]
269
+ )
270
+
271
+ response_properties = {
272
+ "schedule_id": {
273
+ "type": "string",
274
+ },
275
+ "schedule_name": {
276
+ "type": "string",
277
+ },
278
+ "schedule_data": {
279
+ "type": "string",
280
+ },
281
+ "schedule_time": {
282
+ "type": "string",
283
+ }
284
+ }
285
+
286
+ spec.output_schema = ToolResponseBody(type='object',
287
+ properties=response_properties,
288
+ description='Return the information about the schedule.')
289
+
290
+ return OpenAPITool(spec=spec)
291
+
292
+
293
+ def create_delete_schedule_tool(name: str, TEMPUS_ENDPOINT: str="http://wxo-tempus-runtime:9044") -> dict:
294
+
295
+ spec = ToolSpec(
296
+ name=name,
297
+ description="Use this tool to delete/remove a schedule based on the schedule_id.",
298
+ permission='read_only',
299
+ display_name= "Delete Schedule"
300
+ )
301
+
302
+ openapi_binding = OpenApiToolBinding(
303
+ http_path="/v1/schedules/{schedule_id}",
304
+ http_method="DELETE",
305
+ security=[],
306
+ servers=[TEMPUS_ENDPOINT]
307
+ )
308
+
309
+ spec.binding = ToolBinding(openapi=openapi_binding)
310
+ # Input Schema
311
+ properties = {
312
+ "path_schedule_id": {
313
+ "type": "string",
314
+ "title": "schedule_id",
315
+ "description": "Identifies the schedule instance.",
316
+ "in": "query"
317
+ }
318
+ }
319
+
320
+ spec.input_schema = ToolRequestBody(
321
+ type='object',
322
+ properties=properties,
323
+ required=[]
324
+ )
325
+
326
+ spec.output_schema = ToolResponseBody(type='object',
327
+ description='Schedule deleted.')
328
+
329
+ return OpenAPITool(spec=spec)
@@ -0,0 +1,23 @@
1
+ import logging
2
+ import sys
3
+ import os
4
+
5
+ logger = logging.getLogger(__name__)
6
+
7
+ class BadRequest(Exception):
8
+ def __init__(self, message: str):
9
+ super().__init__(message)
10
+ self.message = message
11
+ logger.error(message)
12
+
13
+ # We need to exit to avoid getting 2 error messages printed
14
+ # We don't want to exit while running tests
15
+ # Only exit if not running in a test and no --debug
16
+ if not self._in_test() and "--debug" not in sys.argv:
17
+ sys.exit(1)
18
+
19
+ def _in_test(self):
20
+ return "PYTEST_CURRENT_TEST" in os.environ
21
+
22
+ def __str__(self):
23
+ return self.message
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ibm-watsonx-orchestrate
3
- Version: 1.6.2
3
+ Version: 1.6.4
4
4
  Summary: IBM watsonx.orchestrate SDK
5
5
  Author-email: IBM <support@ibm.com>
6
6
  License: MIT License
@@ -10,15 +10,11 @@ Requires-Dist: certifi>=2024.8.30
10
10
  Requires-Dist: click<8.2.0,>=8.0.0
11
11
  Requires-Dist: docstring-parser<1.0,>=0.16
12
12
  Requires-Dist: httpx<1.0.0,>=0.28.1
13
- Requires-Dist: ibm-cloud-sdk-core>=3.22.0
14
- Requires-Dist: ibm-watsonx-orchestrate-evaluation-framework==1.0.6
13
+ Requires-Dist: ibm-cloud-sdk-core>=3.24.2
14
+ Requires-Dist: ibm-watsonx-orchestrate-evaluation-framework==1.0.8
15
15
  Requires-Dist: jsonref==1.1.0
16
- Requires-Dist: jsonschema<5.0.0,>=4.23.0
17
- Requires-Dist: langchain-community<=0.3.25,>=0.3.12
18
16
  Requires-Dist: langchain-core<=0.3.63
19
17
  Requires-Dist: langsmith<=0.3.45
20
- Requires-Dist: munch>=4.0.0
21
- Requires-Dist: numpy>=1.26.0
22
18
  Requires-Dist: packaging>=24.2
23
19
  Requires-Dist: pydantic<3.0.0,>=2.10.3
24
20
  Requires-Dist: pyjwt<3.0.0,>=2.10.1
@@ -1,19 +1,19 @@
1
- ibm_watsonx_orchestrate/__init__.py,sha256=OfVb1qB0WmlqIpIZShHMh2YTgizxQfQjlz2yaO6-tyE,425
1
+ ibm_watsonx_orchestrate/__init__.py,sha256=Tv41P2ZTNFM2lUmG__AsJAXcEe8c8riWQvpLyEHlqio,426
2
2
  ibm_watsonx_orchestrate/agent_builder/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  ibm_watsonx_orchestrate/agent_builder/agents/__init__.py,sha256=lmZwaiWXD4Ea19nrMwZXaqCxFMG29xNS8vUoZtK3yI4,392
4
- ibm_watsonx_orchestrate/agent_builder/agents/agent.py,sha256=I8ZpOKOGXAmhUIwusDmLqCUawSg74-WZFJ5IijruxAQ,932
5
- ibm_watsonx_orchestrate/agent_builder/agents/assistant_agent.py,sha256=U1cKr22umcWCMgI4G3r5JZXHPfWYbCbiTydH4YZy_Og,987
6
- ibm_watsonx_orchestrate/agent_builder/agents/external_agent.py,sha256=LQM-DfOg2ajzrEur_F-aSrqKqaX4TbeajRe9YWz6s7E,981
7
- ibm_watsonx_orchestrate/agent_builder/agents/types.py,sha256=E5frrJPL7URhH6lD3QsO2heyndsBrfFWDRxXiIdH_nI,12095
4
+ ibm_watsonx_orchestrate/agent_builder/agents/agent.py,sha256=W0uya81fQPrYZFaO_tlsxBL56Bfpw0xrqdxQJhAZ6XI,983
5
+ ibm_watsonx_orchestrate/agent_builder/agents/assistant_agent.py,sha256=NnWThJ2N8HUOD9IDL6ZhtTKyLMHSacJCpxDNityRmgY,1051
6
+ ibm_watsonx_orchestrate/agent_builder/agents/external_agent.py,sha256=7HzEFjd7JiiRTgvA1RVA3M0-Mr42FTQnOtGMII5ufk0,1045
7
+ ibm_watsonx_orchestrate/agent_builder/agents/types.py,sha256=kXbWWz4iHo-knQ5OZRZW7kc8rTwfOzPVn7iyndk5cDs,13013
8
8
  ibm_watsonx_orchestrate/agent_builder/agents/webchat_customizations/__init__.py,sha256=5TXa8UqKUAlDo4hTbE5S9OPEkQhxXhPJHJC4pEe8U00,92
9
9
  ibm_watsonx_orchestrate/agent_builder/agents/webchat_customizations/prompts.py,sha256=jNVF_jgz1Dmt7-RxAceAS0XWXk_fx9h3sS_fGrvZT28,941
10
10
  ibm_watsonx_orchestrate/agent_builder/agents/webchat_customizations/welcome_content.py,sha256=U76wZrblSXx4qv7phcPYs3l8SiFzwZ5cJ74u8Y2iYhU,608
11
11
  ibm_watsonx_orchestrate/agent_builder/connections/__init__.py,sha256=VG45ifpp6B00-ZAGW-dIEHFh18Fx3wbyfUiDDKS74u4,718
12
- ibm_watsonx_orchestrate/agent_builder/connections/connections.py,sha256=UiqTps0yRTSIFoQ0hS6GbpRMlk3PzZmzXEwHlZTTGO8,5359
13
- ibm_watsonx_orchestrate/agent_builder/connections/types.py,sha256=Lu_LPHKIo_vuptNixU8Uu_j8d_YT85Fjy9rMNYxnXGA,9253
12
+ ibm_watsonx_orchestrate/agent_builder/connections/connections.py,sha256=CD3QHI4d-j3rTugHOgvPZUdRu_zpWCwsSzkN63_Ke_c,5423
13
+ ibm_watsonx_orchestrate/agent_builder/connections/types.py,sha256=YOOlXXNKVxTZ6tK2ceeytWXUApZjwfi4mgdYwXoiqOk,9532
14
14
  ibm_watsonx_orchestrate/agent_builder/knowledge_bases/knowledge_base.py,sha256=_KuGF0RZpKpwdt31rzjlTjrhGRFz2RtLzleNkhMNX4k,1831
15
- ibm_watsonx_orchestrate/agent_builder/knowledge_bases/knowledge_base_requests.py,sha256=mRow0rf5EHeJCCsTrONeTq10jShs_yIBQjpgDY_mTrI,1641
16
- ibm_watsonx_orchestrate/agent_builder/knowledge_bases/types.py,sha256=ttre2pRs_I_KBWSht60zT3dJw8twQml3m92ZkiRAoxs,7994
15
+ ibm_watsonx_orchestrate/agent_builder/knowledge_bases/knowledge_base_requests.py,sha256=3xTfFMZR17EN8eYRhsVyBfOEzlTqyi0eYaMXyv0_ZtQ,862
16
+ ibm_watsonx_orchestrate/agent_builder/knowledge_bases/types.py,sha256=_jHu9ELQqj1qwDK6U7jqemzNFeM2O5APlykiZRsDOcY,7009
17
17
  ibm_watsonx_orchestrate/agent_builder/model_policies/__init__.py,sha256=alJEjlneWlGpadmvOVlDjq5wulytKOmpkq3849fhKNc,131
18
18
  ibm_watsonx_orchestrate/agent_builder/model_policies/types.py,sha256=a6f9HP2OlZIe36k_PDRmFtefz2Ms2KBpzJ_jz8ggYbk,882
19
19
  ibm_watsonx_orchestrate/agent_builder/models/__init__.py,sha256=R5nTbyMBzahONdp5-bJFp-rbtTDnp2184k6doZqt67w,31
@@ -21,40 +21,42 @@ ibm_watsonx_orchestrate/agent_builder/models/types.py,sha256=Zr0xHZpTVPZnaUSvlop
21
21
  ibm_watsonx_orchestrate/agent_builder/toolkits/base_toolkit.py,sha256=KXRPgBK-F9Qa6IYqEslkN3ANj3cmZoZQnlSiy_-iXCk,1054
22
22
  ibm_watsonx_orchestrate/agent_builder/toolkits/types.py,sha256=yY-V4Hqct91-Rs4rJ3rY9OhzKkSMdOT63o224o-U9eg,959
23
23
  ibm_watsonx_orchestrate/agent_builder/tools/__init__.py,sha256=adkYX0wgB-RKFCUBw6LPJhNVelUjUdsxipGPk2ghLns,479
24
- ibm_watsonx_orchestrate/agent_builder/tools/base_tool.py,sha256=unJBOJUY8DAq3T3YX5d1H5KehJUCjObAdpGLVoWIfzw,1156
24
+ ibm_watsonx_orchestrate/agent_builder/tools/base_tool.py,sha256=0vwMIAyKyB8v1QmNrubLy8Al58g3qT78EUgrmOjegoI,1220
25
25
  ibm_watsonx_orchestrate/agent_builder/tools/flow_tool.py,sha256=DJWYVmIjw1O_cbzPpwU0a_vIZGvo0mj8UsjW9zkKMlA,2589
26
- ibm_watsonx_orchestrate/agent_builder/tools/openapi_tool.py,sha256=Q2-TcUUjBAZWlhOqxfkB3yQpdxgdZAAJh0VWDh_dZPQ,16359
27
- ibm_watsonx_orchestrate/agent_builder/tools/python_tool.py,sha256=qVyAe7hKLZ1V4cvqDUCpYs6JBKl9MHSr0yrri-nSceA,10600
28
- ibm_watsonx_orchestrate/agent_builder/tools/types.py,sha256=TXxWCSddXqRL2GbjkxT4vYJcRMjWS7g22wMMrBz-Wj8,7934
26
+ ibm_watsonx_orchestrate/agent_builder/tools/openapi_tool.py,sha256=h9ma18GUQHt88UIakd6QZHic822bAXzYokh6sfqAMZk,19410
27
+ ibm_watsonx_orchestrate/agent_builder/tools/python_tool.py,sha256=FDY-y9jy4bNy88i7JG85Zj_YrxnPfJPD0DjwvL9ITxc,12012
28
+ ibm_watsonx_orchestrate/agent_builder/tools/types.py,sha256=SAyDEnWYuguTFk6WxgSDnMaONqDqcr6QhBAxD1u5FDU,8165
29
29
  ibm_watsonx_orchestrate/agent_builder/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
- ibm_watsonx_orchestrate/agent_builder/utils/pydantic_utils.py,sha256=QEanM6FpkmntvS02whdhWx1d4v6zT_1l9ipEbfTgHs8,7623
31
30
  ibm_watsonx_orchestrate/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
- ibm_watsonx_orchestrate/cli/config.py,sha256=BE2ze0o9vLoyrk7q9mcRek2rDL2cTsVtsSGWw4W0y6M,8212
33
- ibm_watsonx_orchestrate/cli/init_helper.py,sha256=Lb0bj6b8EaeBxkfGyrBBvc581ORg_S5-tHcXWQ-mBmE,1466
34
- ibm_watsonx_orchestrate/cli/main.py,sha256=TyVuNC12GDxo4InaPfQ6e6Xk5bGarfSoIRAslGifUQ0,2914
31
+ ibm_watsonx_orchestrate/cli/config.py,sha256=iXjDxymWhAmLSUu6eh7zJR20dYZDzbxcU5VoBdh3VIw,8318
32
+ ibm_watsonx_orchestrate/cli/init_helper.py,sha256=qxnKdFcPtGsV_6RqP_IuLshRxgB004SxzDAkBTExA-4,1675
33
+ ibm_watsonx_orchestrate/cli/main.py,sha256=eE71dfx-EdDYHymYDqXcTjyMXpX0b3cueXOxCI2YLLs,3119
35
34
  ibm_watsonx_orchestrate/cli/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
- ibm_watsonx_orchestrate/cli/commands/agents/agents_command.py,sha256=-UX6ypiF_XwmEwe0twVGsfnO29Xs8xPOPJ5vk8EIifo,8991
37
- ibm_watsonx_orchestrate/cli/commands/agents/agents_controller.py,sha256=zTk3AemWOldfgKYYR1MOcT7z2JbYdgZgSsi7KxugFGw,47934
35
+ ibm_watsonx_orchestrate/cli/commands/agents/agents_command.py,sha256=Zif3bH3X7j5qf7MWGcr53mJ2oEKXNRHeg3ZHeoHTIqQ,8984
36
+ ibm_watsonx_orchestrate/cli/commands/agents/agents_controller.py,sha256=AvDZ3HSRFzaCQ00Kgu9IsOtq0Dv6HPv2E0o9IrisA7Y,47981
38
37
  ibm_watsonx_orchestrate/cli/commands/channels/channels_command.py,sha256=fVIFhPUTPdxsxIE10nWL-W5wvBR-BS8V8D6r__J8R98,822
39
38
  ibm_watsonx_orchestrate/cli/commands/channels/channels_controller.py,sha256=WjQxwJujvo28SsWgfJSXIpkcgniKcskJ2arL4MOz0Ys,455
40
- ibm_watsonx_orchestrate/cli/commands/channels/types.py,sha256=h8gA3EM7k5X08sk8T9b5siL-XL9uUE-hl_jS-0PDBHA,254
39
+ ibm_watsonx_orchestrate/cli/commands/channels/types.py,sha256=hMFvWPr7tAmDrhBqtzfkCsrubX3lsU6lapTSOFsUbHM,475
41
40
  ibm_watsonx_orchestrate/cli/commands/channels/webchat/channels_webchat_command.py,sha256=vPCr6z1n1yzGDjTlM4f3_9MiuVRzNmXbvUifm6XyQi8,1103
42
- ibm_watsonx_orchestrate/cli/commands/channels/webchat/channels_webchat_controller.py,sha256=0S1ch8SwkGRtAyy7nAZEjKl92hFkIE9TU71JJ82zdjU,8128
41
+ ibm_watsonx_orchestrate/cli/commands/channels/webchat/channels_webchat_controller.py,sha256=CGfmKsCBX4E3HMZ8C0IXD-DHQNwe96V1Y_BxUZM2us0,8557
43
42
  ibm_watsonx_orchestrate/cli/commands/chat/chat_command.py,sha256=Q9vg2Z5Fsunu6GQFY_TIsNRhUCa0SSGSPnK4jxSGK34,1581
44
- ibm_watsonx_orchestrate/cli/commands/connections/connections_command.py,sha256=qgg2NbAB7g_PHPHd0ZLUm0EjyaCSPi1qpOhtyOlydcY,10151
45
- ibm_watsonx_orchestrate/cli/commands/connections/connections_controller.py,sha256=ka7uBpuRlICZ4ACGiT4WqmufZYEw566NlZX5FhB9pXM,22178
43
+ ibm_watsonx_orchestrate/cli/commands/connections/connections_command.py,sha256=bZBzaaVMFmGY4Guk-JCknZqd8HvXY5L-FirxpxddQfc,10497
44
+ ibm_watsonx_orchestrate/cli/commands/connections/connections_controller.py,sha256=odsqxthEDyPO3C-GEtSn31sxLjRYgUBf1Vdkg6ZEwms,22290
45
+ ibm_watsonx_orchestrate/cli/commands/copilot/copilot_command.py,sha256=IxasApIyQYWRMKPXKa38ZPVkUvOc4chggSmSGjgQGXc,2345
46
+ ibm_watsonx_orchestrate/cli/commands/copilot/copilot_controller.py,sha256=rr6p4_yqriq3ts1FwFC4aV0ub5UC5D6JqpuLoba4j_U,14808
47
+ ibm_watsonx_orchestrate/cli/commands/copilot/copilot_server_controller.py,sha256=AcBE97qNYsRN0ftY_E-AAjKFyVea4fHtU5eB2HsB42I,5619
46
48
  ibm_watsonx_orchestrate/cli/commands/environment/environment_command.py,sha256=xwq7gdyjMtl2RYAnLAahGk2wDetr9BStt8yu7JkeBhk,3768
47
- ibm_watsonx_orchestrate/cli/commands/environment/environment_controller.py,sha256=8f4yH-hmPJFo-wAHA61XjRh_gst7JIIiRBQDFj0dXHs,10183
48
- ibm_watsonx_orchestrate/cli/commands/environment/types.py,sha256=qKcgIUfTPJIomLor-utz4qi7YhBMpb1l2DiSvjVSgaA,175
49
- ibm_watsonx_orchestrate/cli/commands/evaluations/evaluations_command.py,sha256=YHaTxcQxLkuojFhNcTtYbzb_lTv_dYBuz2IHl9RXXwU,11689
50
- ibm_watsonx_orchestrate/cli/commands/evaluations/evaluations_controller.py,sha256=pTWyuPNHKOPCYTMlYWwoGojZBdvDrHme2EAel0l4ltk,6957
51
- ibm_watsonx_orchestrate/cli/commands/knowledge_bases/knowledge_bases_command.py,sha256=Hxj33rFEYo1Vr2bk-uRwRhNssAETtTQgWTREvC0Nxds,3348
52
- ibm_watsonx_orchestrate/cli/commands/knowledge_bases/knowledge_bases_controller.py,sha256=pbsjkBssLOTSMfh5ymgDAq9DxVdD01eAI33si0JZqS4,9631
49
+ ibm_watsonx_orchestrate/cli/commands/environment/environment_controller.py,sha256=oHZ7LONtPg3-SSnU_rRZryLi8N2mplz5h-LGg4XjzD4,10261
50
+ ibm_watsonx_orchestrate/cli/commands/environment/types.py,sha256=X6jEnyBdxakromA7FhQ5btZMj9kwGcwRSFz8vpD65jA,224
51
+ ibm_watsonx_orchestrate/cli/commands/evaluations/evaluations_command.py,sha256=nOVxeZSTp1bfV_l_06B6x6wfNeusNAr5KImJYkwGWx8,14298
52
+ ibm_watsonx_orchestrate/cli/commands/evaluations/evaluations_controller.py,sha256=dZEAD0rIS9DQjWD2-i6367RjNd2PWB3Fm_DDk25toBg,7855
53
+ ibm_watsonx_orchestrate/cli/commands/knowledge_bases/knowledge_bases_command.py,sha256=hOzRcGVoqq7dTc4bSregKxH-kYbrVqaFdhBLawqnRNo,2668
54
+ ibm_watsonx_orchestrate/cli/commands/knowledge_bases/knowledge_bases_controller.py,sha256=M19rRMFEEcAarPVw4fOr3S94Se1ZEo4hD7sCUr0xYTI,10115
53
55
  ibm_watsonx_orchestrate/cli/commands/login/login_command.py,sha256=xArMiojoozg7Exn6HTpbTcjDO2idZRA-y0WV-_Ic1Sk,651
54
56
  ibm_watsonx_orchestrate/cli/commands/models/model_provider_mapper.py,sha256=RVZfFCuPWiASkR9Mox61v5SZ1AoRxo4_g9stnbfjCkc,7994
55
- ibm_watsonx_orchestrate/cli/commands/models/models_command.py,sha256=xYbMHRM98TCBmnwgIOsqpfjWqD7HVirn6A4KyEgQEcE,6418
56
- ibm_watsonx_orchestrate/cli/commands/models/models_controller.py,sha256=BNfUoWST60x3k7yIvSbtBR3rmyTQmz9g0TDK2WOoOE4,18610
57
- ibm_watsonx_orchestrate/cli/commands/server/server_command.py,sha256=VstqSn3dzuzziwEc0VVkf1y9E3qN94mTJuCbeFO4KCY,37478
57
+ ibm_watsonx_orchestrate/cli/commands/models/models_command.py,sha256=PW-PIM5Nq0qdCopWjANGBWEuEoA3NLTFThYrN8ggGCI,6425
58
+ ibm_watsonx_orchestrate/cli/commands/models/models_controller.py,sha256=eZSYQUg9TL_-8lgcPVpKIx7MtOE7K_NCvZW9Y9YsFA0,18466
59
+ ibm_watsonx_orchestrate/cli/commands/server/server_command.py,sha256=ho1rSTN_fIJKeKzA5d4BdoQELl_4aF5Gzx90VySbaX8,39687
58
60
  ibm_watsonx_orchestrate/cli/commands/server/types.py,sha256=UCrgGErbSVBnOzesfjrIii4tTCuVfWemYz5AKGZX0oA,4213
59
61
  ibm_watsonx_orchestrate/cli/commands/settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
60
62
  ibm_watsonx_orchestrate/cli/commands/settings/settings_command.py,sha256=CzXRkd-97jXyS6LtaaNtMah-aZu0919dYl-mDwzGThc,344
@@ -62,20 +64,20 @@ ibm_watsonx_orchestrate/cli/commands/settings/observability/__init__.py,sha256=4
62
64
  ibm_watsonx_orchestrate/cli/commands/settings/observability/observability_command.py,sha256=TAkpKwoqocsShSgEeR6LzHCzJx16VDQ6cYsbpljxeqI,372
63
65
  ibm_watsonx_orchestrate/cli/commands/settings/observability/langfuse/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
64
66
  ibm_watsonx_orchestrate/cli/commands/settings/observability/langfuse/langfuse_command.py,sha256=Wa0L8E44EdxH9LdOvmnluLk_ApJVfTLauNOC1kV4W8k,6515
65
- ibm_watsonx_orchestrate/cli/commands/toolkit/toolkit_command.py,sha256=e8YKUr_8CodA5fgYjUKj-Dk856foQ5Iz3I9Jld5pU_o,4193
67
+ ibm_watsonx_orchestrate/cli/commands/toolkit/toolkit_command.py,sha256=e2VwpxbN7vwfFp6Gu8hDe2B5c3fdzXYfQBkN15tYR90,4195
66
68
  ibm_watsonx_orchestrate/cli/commands/toolkit/toolkit_controller.py,sha256=fq48tWNbuYFjrHXyVDmJBT96tww5iMdE2iOYUjr-fUc,11563
67
69
  ibm_watsonx_orchestrate/cli/commands/tools/tools_command.py,sha256=Cuo1ZvlfsymojqbadCqdwwS0HUjaWpe2XQrV70g61_s,3943
68
- ibm_watsonx_orchestrate/cli/commands/tools/tools_controller.py,sha256=z8Q_t6ABrzJ2nnB7YYK7MCzDCWL9Jt2wfkfdDDJ-Pe4,39480
70
+ ibm_watsonx_orchestrate/cli/commands/tools/tools_controller.py,sha256=uL0WHi0YD7NIYSLOui-CymVHj-h9Y0i3PxS7T2SXSvo,40408
69
71
  ibm_watsonx_orchestrate/cli/commands/tools/types.py,sha256=_md0GEa_cTH17NO_moWDY_LNdFvyEFQ1UVB9_FltYiA,173
70
72
  ibm_watsonx_orchestrate/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
71
- ibm_watsonx_orchestrate/client/base_api_client.py,sha256=NklphjtCpSFroBocOp4OiklC0iIF0JzXJjtJhUd8gZ8,4752
73
+ ibm_watsonx_orchestrate/client/base_api_client.py,sha256=cSbQb7-K9KoMeFLEIiYGho4cQqf8TcPyYklju9X4cC4,5214
72
74
  ibm_watsonx_orchestrate/client/base_service_instance.py,sha256=sM_r7bln9BpgEOhaJMdFI9-je3T7GLQxLduk-in0oRY,235
73
75
  ibm_watsonx_orchestrate/client/client.py,sha256=pgYeXHe4_Makrw0gTyM343DQdrZZB8cjitFHKcbdzuc,2432
74
76
  ibm_watsonx_orchestrate/client/client_errors.py,sha256=72MKCNZbKoo2QXyY0RicLhP3r0ALRjgOEbHOHNSyOYI,11712
75
77
  ibm_watsonx_orchestrate/client/credentials.py,sha256=gDVeeQZDdbbjJiO1EI61yx2oRgTQctxA2ZesSDHI4DA,3786
76
- ibm_watsonx_orchestrate/client/local_service_instance.py,sha256=gdeol7xNRVnxEMr5rui1ovqtwDfMRziHn9GIjo7-MVo,3447
77
- ibm_watsonx_orchestrate/client/service_instance.py,sha256=uZlsMW9LC_2GggqEjBQY09fm6uZJ-0audwzqgCyjbbQ,5277
78
- ibm_watsonx_orchestrate/client/utils.py,sha256=86UH5H54uTJA2kFb4dXrnGfs7hFQZ3h21ElwngZpT24,4745
78
+ ibm_watsonx_orchestrate/client/local_service_instance.py,sha256=dt7vfLnjgt7mT8wSq8SJZndNTwsPzhb0XDhcnPUPFpU,3524
79
+ ibm_watsonx_orchestrate/client/service_instance.py,sha256=fp3Lc4yQf4zTkxVS5WnIAkrHT0xG_a5i44qcLeQkaa4,6600
80
+ ibm_watsonx_orchestrate/client/utils.py,sha256=MUw11r0_wYv3RdF6-1BmSxcwYNF6q2_Urte7tMYTKVA,5836
79
81
  ibm_watsonx_orchestrate/client/agents/agent_client.py,sha256=v1ZqXKj3p5JeJyOLpV84UUI2LY8XPjW1ejo5yzkeiMQ,4708
80
82
  ibm_watsonx_orchestrate/client/agents/assistant_agent_client.py,sha256=1JQN0E4T_uz5V0LM-LD1ahNu2KCeFBjXAr8WCiP9mkE,1745
81
83
  ibm_watsonx_orchestrate/client/agents/external_agent_client.py,sha256=iQ44XBdC4rYfS-zFn4St1xC5y5gf5SNqKHzMNQcFDZc,1808
@@ -83,9 +85,10 @@ ibm_watsonx_orchestrate/client/analytics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5
83
85
  ibm_watsonx_orchestrate/client/analytics/llm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
84
86
  ibm_watsonx_orchestrate/client/analytics/llm/analytics_llm_client.py,sha256=0YS_BCpmf5oGFawpZkJ38cuz5ArhKsZIbSydWRd194s,1340
85
87
  ibm_watsonx_orchestrate/client/connections/__init__.py,sha256=J7TOyVg38h71AlaJjlFs5fOuAXTceHvELtOJ9oz4Mvg,207
86
- ibm_watsonx_orchestrate/client/connections/connections_client.py,sha256=B6LQPwoFHg_CIXHEJBjVu6fXnRj_xVsLGsC-DhmdfSQ,8478
88
+ ibm_watsonx_orchestrate/client/connections/connections_client.py,sha256=8f_olWVgQVLi6xKO_DvV68zu_AMLe1DMhoQAhC-BG3g,7583
87
89
  ibm_watsonx_orchestrate/client/connections/utils.py,sha256=f6HsiDI6cycOqfYN6P4uZ3SQds83xlh83zTUioZPeYk,2618
88
- ibm_watsonx_orchestrate/client/knowledge_bases/knowledge_base_client.py,sha256=U-pG_H0I8992f0V13Li_e1dksKp54MrYX3X9bvr-09w,2181
90
+ ibm_watsonx_orchestrate/client/copilot/cpe/copilot_cpe_client.py,sha256=eGE5VJb47XZxiMszBVQ7u0NKTVeHPuGVyfRJ6qPKlVs,1939
91
+ ibm_watsonx_orchestrate/client/knowledge_bases/knowledge_base_client.py,sha256=YjC16dcL_l0jd-6yZ6uH8anlL4yaIv9f-7Y_urPuXWM,2201
89
92
  ibm_watsonx_orchestrate/client/model_policies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
90
93
  ibm_watsonx_orchestrate/client/model_policies/model_policies_client.py,sha256=Ddjraesv1MRPhZebB0PdBL0zgdsoWmnYpWTUci_6XFI,2258
91
94
  ibm_watsonx_orchestrate/client/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -93,8 +96,8 @@ ibm_watsonx_orchestrate/client/models/models_client.py,sha256=ZvP3iPgUFw_SXp41kJ
93
96
  ibm_watsonx_orchestrate/client/toolkit/toolkit_client.py,sha256=TLFNS39EeBD_t4Y-rX9sGp4sWBDr--mE5qVtHq8Q2hk,3121
94
97
  ibm_watsonx_orchestrate/client/tools/tempus_client.py,sha256=24fKDZUOVHBW-Vj4mubnpnUmab5LgGn8u5hOVyJaozI,1804
95
98
  ibm_watsonx_orchestrate/client/tools/tool_client.py,sha256=d3i3alVwa0TCN72w9sWOrM20GCbNmnpTnqEOJVbBIFM,1994
96
- ibm_watsonx_orchestrate/docker/compose-lite.yml,sha256=TvddzCD2nFAGbu-1Hf2AAhdTORoTsll2ssa1lJVsoZE,32856
97
- ibm_watsonx_orchestrate/docker/default.env,sha256=5JnLinuQoN3HxaApodke2SO-rI_pDtC2WecpL0s7pek,5329
99
+ ibm_watsonx_orchestrate/docker/compose-lite.yml,sha256=igtukwqVFamdaRbuAbrlLPU8EfZ7hpveWSA0Ka34YHo,39437
100
+ ibm_watsonx_orchestrate/docker/default.env,sha256=84p3BEFeA0mVe_C_WKMi4JLiOhQkFLq8hwI_Hoe1eWE,5894
98
101
  ibm_watsonx_orchestrate/docker/proxy-config-single.yaml,sha256=WEbK4ENFuTCYhzRu_QblWp1_GMARgZnx5vReQafkIG8,308
99
102
  ibm_watsonx_orchestrate/docker/start-up.sh,sha256=LTtwHp0AidVgjohis2LXGvZnkFQStOiUAxgGABOyeUI,1811
100
103
  ibm_watsonx_orchestrate/docker/sdk/ibm_watsonx_orchestrate-0.6.0-py3-none-any.whl,sha256=Hi3-owh5OM0Jz2ihX9nLoojnr7Ky1TV-GelyqLcewLE,2047417
@@ -102,24 +105,24 @@ ibm_watsonx_orchestrate/docker/sdk/ibm_watsonx_orchestrate-0.6.0.tar.gz,sha256=e
102
105
  ibm_watsonx_orchestrate/docker/tempus/common-config.yaml,sha256=Zo3F36F5DV4VO_vUg1RG-r4WhcukVh79J2fXhGl6j0A,22
103
106
  ibm_watsonx_orchestrate/flow_builder/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
104
107
  ibm_watsonx_orchestrate/flow_builder/data_map.py,sha256=1brmWWFERDsNG2XGais-5-r58LKUUwBtqwdaLQIFRhE,503
105
- ibm_watsonx_orchestrate/flow_builder/node.py,sha256=tp_ssBOSDDi8q-ET2bP7xRPwNOLmLUgQ7v9zZZqn9SU,4090
106
- ibm_watsonx_orchestrate/flow_builder/types.py,sha256=KPASSlw55Dzp_8nhFdJUN0UI8_knMzLCK9epVcfP5NY,27689
107
- ibm_watsonx_orchestrate/flow_builder/utils.py,sha256=gKIKtb6hOfImt4cll4LOGgDoEUHubcz-AFq1byCpmaM,8203
108
- ibm_watsonx_orchestrate/flow_builder/flows/__init__.py,sha256=UTwpiAlT9Wytn1kK-kgUaY6UYjLKsiaQK0ZdSbKLtM0,897
108
+ ibm_watsonx_orchestrate/flow_builder/node.py,sha256=I90a-K_xnEgZrl2NHo_rDmfT2Dj0n0Om15aDnEzhe74,4755
109
+ ibm_watsonx_orchestrate/flow_builder/types.py,sha256=bpnodCo9PnacSCvKHEybx8F8rvcp55DXITrXUmt2q88,37142
110
+ ibm_watsonx_orchestrate/flow_builder/utils.py,sha256=1ZetA6GBCG5MGqhGWDM66R_VuyRZ1pYCtVeeIRQgNIg,11709
111
+ ibm_watsonx_orchestrate/flow_builder/flows/__init__.py,sha256=dHS2fB-xbVS5yt_yNyZqYeuiAGs78lbCF65AX_VQlD4,1025
109
112
  ibm_watsonx_orchestrate/flow_builder/flows/constants.py,sha256=XXYtL5Y1OTjj3jKo2zoJiwb7FCUNu_M43fgU8w591TY,322
110
- ibm_watsonx_orchestrate/flow_builder/flows/decorators.py,sha256=k9-r9ly5ih5oHBqjEgrc2vfeVC4LOMKg3YVLacBDubM,2702
111
- ibm_watsonx_orchestrate/flow_builder/flows/events.py,sha256=bhbN3ljl-WyiJ_LzMd99IlX0QrhB_bASyHWv8mtTjvo,2978
112
- ibm_watsonx_orchestrate/flow_builder/flows/flow.py,sha256=1Tc8L8rGbocPVdUNk-Zp_Fi9QxGLSg22LWPewlH7GKU,51020
113
- ibm_watsonx_orchestrate/flow_builder/resources/flow_status.openapi.yml,sha256=UkQ4FD_ZhvZuMOjrgLm7cx8zJFZD7Ri-MPCe_zktU-8,1664
113
+ ibm_watsonx_orchestrate/flow_builder/flows/decorators.py,sha256=lr4qSWq5PWqlGFf4fzUQZCVQDHBYflrYwZ24S89Aq80,2794
114
+ ibm_watsonx_orchestrate/flow_builder/flows/events.py,sha256=VyaBm0sADwr15LWfKbcBQS1M80NKqzYDj3UlW3OpOf4,2984
115
+ ibm_watsonx_orchestrate/flow_builder/flows/flow.py,sha256=a33ciPFM5VUQlY4BdcXAQVed_MGARNi_GpChIHJ1uS4,55124
114
116
  ibm_watsonx_orchestrate/run/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
115
117
  ibm_watsonx_orchestrate/run/connections.py,sha256=K-65GXPA8GEsVmRdPfMe_LB2G9RfXQUr95wvRUOhkS4,1828
116
118
  ibm_watsonx_orchestrate/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
119
+ ibm_watsonx_orchestrate/utils/exceptions.py,sha256=MjpoGuk7lMziPT2Zo7X-jgGlm0M22mTZF4Y8EHb3KPM,631
117
120
  ibm_watsonx_orchestrate/utils/utils.py,sha256=U7z_2iASoFiZ2zM0a_2Mc2Y-P5oOT7hOwuurzC9Z3N8,721
118
121
  ibm_watsonx_orchestrate/utils/logging/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
119
122
  ibm_watsonx_orchestrate/utils/logging/logger.py,sha256=FzeGnidXAjC7yHrvIaj4KZPeaBBSCniZFlwgr5yV3oA,1037
120
123
  ibm_watsonx_orchestrate/utils/logging/logging.yaml,sha256=9_TKfuFr1barnOKP0fZT5D6MhddiwsXVTFjtRbcOO5w,314
121
- ibm_watsonx_orchestrate-1.6.2.dist-info/METADATA,sha256=vEKjA3XqPvwQinfXD0axdqgnN-QQlYGeSvXOmXjc27Q,1510
122
- ibm_watsonx_orchestrate-1.6.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
123
- ibm_watsonx_orchestrate-1.6.2.dist-info/entry_points.txt,sha256=SfIT02-Jen5e99OcLhzbcM9Bdyf8SGVOCtnSplgZdQI,69
124
- ibm_watsonx_orchestrate-1.6.2.dist-info/licenses/LICENSE,sha256=Shgxx7hTdCOkiVRmfGgp_1ISISrwQD7m2f0y8Hsapl4,1083
125
- ibm_watsonx_orchestrate-1.6.2.dist-info/RECORD,,
124
+ ibm_watsonx_orchestrate-1.6.4.dist-info/METADATA,sha256=TTYaKeV208aYXY8edBO897I7H93VRBtsRa4WO2m-D3U,1360
125
+ ibm_watsonx_orchestrate-1.6.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
126
+ ibm_watsonx_orchestrate-1.6.4.dist-info/entry_points.txt,sha256=SfIT02-Jen5e99OcLhzbcM9Bdyf8SGVOCtnSplgZdQI,69
127
+ ibm_watsonx_orchestrate-1.6.4.dist-info/licenses/LICENSE,sha256=Shgxx7hTdCOkiVRmfGgp_1ISISrwQD7m2f0y8Hsapl4,1083
128
+ ibm_watsonx_orchestrate-1.6.4.dist-info/RECORD,,
@@ -1,149 +0,0 @@
1
- import json
2
- from pathlib import Path
3
- from typing import Any, Dict, Type, Literal
4
-
5
- import jsonschema
6
- from pydantic import BaseModel
7
- from pydantic.json_schema import DEFAULT_REF_TEMPLATE, GenerateJsonSchema, JsonSchemaMode
8
- from pydantic.main import IncEx
9
- from typing_extensions import Self
10
-
11
- from ibm_watsonx_orchestrate.agent_builder.tools import ToolRequestBody, ToolResponseBody, JsonSchemaObject
12
-
13
-
14
- def generate_schema_only_base_model(schema: ToolRequestBody | ToolResponseBody | JsonSchemaObject) -> Type[BaseModel]:
15
- class SchemaOnlyBaseModel(BaseModel):
16
- __primitive__: Any
17
- model_config = {
18
- 'extra': 'allow'
19
- }
20
- """
21
- The purpose of a SchemaOnlyBaseModel is to pass along the json schema represented by schema
22
- to a langchain tool's arg_schema
23
- :arg schema The json schema to emulate
24
- :returns a fake BaseModel that only returns a json schema
25
- """
26
-
27
- def __init__(self, /, *args, **kwargs: Any) -> None:
28
- if schema.type == 'object':
29
- super().__init__(**kwargs)
30
- for name, value in kwargs.items():
31
- setattr(self, name, value)
32
- else:
33
- kwargs={}
34
- kwargs['__primitive__'] = args[0]
35
- super().__init__(**kwargs)
36
- setattr(self, '__primitive__', args[0])
37
-
38
- @classmethod
39
- def model_json_schema(cls, by_alias: bool = True, ref_template: str = DEFAULT_REF_TEMPLATE,
40
- schema_generator: type[GenerateJsonSchema] = GenerateJsonSchema,
41
- mode: JsonSchemaMode = 'validation') -> dict[str, Any]:
42
- return schema.model_dump(exclude_unset=True, exclude_none=True)
43
-
44
- @classmethod
45
- def schema(cls, by_alias: bool = True, ref_template: str = DEFAULT_REF_TEMPLATE) -> Dict[str, Any]:
46
- return schema.model_dump(exclude_unset=True, exclude_none=True)
47
-
48
- @classmethod
49
- def schema_json(cls, *, by_alias: bool = True, ref_template: str = DEFAULT_REF_TEMPLATE,
50
- **dumps_kwargs: Any) -> str:
51
- return schema.model_dump_json(exclude_unset=True, exclude_none=True)
52
-
53
- @classmethod
54
- def model_validate_json(cls, json_data: str | bytes | bytearray, *, strict: bool | None = None,
55
- context: Any | None = None) -> Self:
56
- obj = json.loads(json_data)
57
- jsonschema.validate(obj, schema=schema.model_dump(exclude_unset=True))
58
- if schema.type == 'object':
59
- return SchemaOnlyBaseModel(**obj)
60
- else:
61
- return SchemaOnlyBaseModel(obj)
62
-
63
- @classmethod
64
- def model_validate(cls, obj: Any, *, strict: bool | None = None, from_attributes: bool | None = None,
65
- context: Any | None = None) -> Self:
66
- jsonschema.validate(obj, schema=schema.model_dump(exclude_unset=True))
67
- if schema.type == 'object':
68
- return SchemaOnlyBaseModel(**obj)
69
- else:
70
- return SchemaOnlyBaseModel(obj)
71
-
72
- @classmethod
73
- def model_validate_strings(cls, obj: Any, *, strict: bool | None = None, context: Any | None = None) -> Self:
74
- raise NotImplementedError('unimplemented for SchemaOnlyBaseModel')
75
-
76
- @classmethod
77
- def validate(cls, value: Any) -> Self:
78
- jsonschema.validate(value, schema=schema.model_dump(exclude_unset=True))
79
- return SchemaOnlyBaseModel(**value)
80
-
81
- @classmethod
82
- def model_construct(cls, _fields_set: set[str] | None = None, **values: Any) -> Self:
83
- raise NotImplementedError('unimplemented for SchemaOnlyBaseModel')
84
-
85
- @classmethod
86
- def model_parametrized_name(cls, params: tuple[type[Any], ...]) -> str:
87
- raise NotImplementedError('unimplemented for SchemaOnlyBaseModel')
88
-
89
- @classmethod
90
- def model_rebuild(cls, *, force: bool = False, raise_errors: bool = True, _parent_namespace_depth: int = 2,
91
- _types_namespace: Any = None) -> bool | None:
92
- raise NotImplementedError('unimplemented for SchemaOnlyBaseModel')
93
-
94
- @classmethod
95
- def parse_obj(cls, obj: Any) -> Self:
96
- raise NotImplementedError('unimplemented for SchemaOnlyBaseModel')
97
-
98
- @classmethod
99
- def parse_raw(cls, b: str | bytes, *, content_type: str | None = None, encoding: str = 'utf8',
100
- proto: Any | None = None, allow_pickle: bool = False) -> Self:
101
- raise NotImplementedError('unimplemented for SchemaOnlyBaseModel')
102
-
103
- @classmethod
104
- def parse_file(cls, path: str | Path, *, content_type: str | None = None, encoding: str = 'utf8',
105
- proto: Any | None = None, allow_pickle: bool = False) -> Self:
106
- raise NotImplementedError('unimplemented for SchemaOnlyBaseModel')
107
-
108
- @classmethod
109
- def from_orm(cls, obj: Any) -> Self:
110
- raise NotImplementedError('unimplemented for SchemaOnlyBaseModel')
111
-
112
- @classmethod
113
- def construct(cls, _fields_set: set[str] | None = None, **values: Any) -> Self:
114
- raise NotImplementedError('unimplemented for SchemaOnlyBaseModel')
115
-
116
- @classmethod
117
- def update_forward_refs(cls, **localns: Any) -> None:
118
- raise NotImplementedError('unimplemented for SchemaOnlyBaseModel')
119
-
120
- def model_dump(self, *, mode: Literal['json', 'python'] | str = 'python', include: IncEx | None = None,
121
- exclude: IncEx | None = None, context: Any | None = None, by_alias: bool = False,
122
- exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False,
123
- round_trip: bool = False, warnings: bool | Literal['none', 'warn', 'error'] = True,
124
- serialize_as_any: bool = False) -> dict[str, Any]:
125
- primitive = getattr(self, '__primitive__', None)
126
- if primitive is not None:
127
- return primitive
128
- else:
129
- return super().model_dump(mode=mode, include=include, exclude=exclude, context=context, by_alias=by_alias,
130
- exclude_unset=exclude_unset, exclude_defaults=exclude_defaults,
131
- exclude_none=exclude_none, round_trip=round_trip, warnings=warnings,
132
- serialize_as_any=serialize_as_any)
133
-
134
- def model_dump_json(self, *, indent: int | None = None, include: IncEx | None = None,
135
- exclude: IncEx | None = None, context: Any | None = None, by_alias: bool = False,
136
- exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False,
137
- round_trip: bool = False, warnings: bool | Literal['none', 'warn', 'error'] = True,
138
- serialize_as_any: bool = False) -> str:
139
- primitive = getattr(self, '__primitive__')
140
- if primitive is not None:
141
- return json.dumps(primitive)
142
- else:
143
- return super().model_dump_json(indent=indent, include=include, exclude=exclude, context=context,
144
- by_alias=by_alias, exclude_unset=exclude_unset,
145
- exclude_defaults=exclude_defaults, exclude_none=exclude_none,
146
- round_trip=round_trip, warnings=warnings, serialize_as_any=serialize_as_any)
147
-
148
- return SchemaOnlyBaseModel
149
-
@@ -1,66 +0,0 @@
1
- openapi: 3.0.3
2
- info:
3
- title: Flow status
4
- version: '0.1'
5
- description: This tool allows you to check the status of a flow.
6
- servers:
7
- - url: http://wxo-tempus-runtime:9044
8
- components:
9
- schemas:
10
- APIError:
11
- type: object
12
- properties:
13
- data:
14
- type: object
15
- properties:
16
- message:
17
- type: string
18
- additionalProperties: true
19
- required:
20
- - message
21
- required:
22
- - data
23
- paths:
24
- /v1/flows:
25
- get:
26
- description: Get the status of a flow instance.
27
- operationId: get_flow_status
28
- responses:
29
- '200':
30
- description: Return the status of a flow instance.
31
- content:
32
- application/json:
33
- schema:
34
- type: array
35
- items:
36
- type: object
37
- '400':
38
- description: Bad input
39
- content:
40
- application/json:
41
- schema:
42
- $ref: '#/components/schemas/APIError'
43
- '500':
44
- description: Internal server error
45
- content:
46
- application/json:
47
- schema:
48
- $ref: '#/components/schemas/APIError'
49
- parameters:
50
- - in: query
51
- name: instance_id
52
- description: Identifies the instance of the flow. This was provided when the flow tool was run.
53
- required: false
54
- schema:
55
- type: string
56
- - in: query
57
- name: state
58
- required: false
59
- schema:
60
- type: string
61
- enum:
62
- - completed
63
- - in_progress
64
- - interrupted
65
- - failed
66
-