ibm-watsonx-orchestrate 1.9.0b2__py3-none-any.whl → 1.9.0.dev0__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.
@@ -5,7 +5,7 @@
5
5
 
6
6
  pkg_name = "ibm-watsonx-orchestrate"
7
7
 
8
- __version__ = "1.9.0b2"
8
+ __version__ = "1.9.0.dev0"
9
9
 
10
10
 
11
11
 
@@ -134,12 +134,13 @@ class MilvusConnection(BaseModel):
134
134
  }
135
135
  """
136
136
  grpc_host: Optional[str] = None
137
+ grpc_port: Optional[str] = None
138
+ server_cert: Optional[str] = None
137
139
  database: Optional[str] = None
138
140
  collection: Optional[str] = None
139
141
  index: Optional[str] = None
140
142
  embedding_model_id: Optional[str] = None
141
143
  limit : Optional[int] = None
142
- grpc_port: Optional[str] = None
143
144
  filter: Optional[str] = None
144
145
  field_mapping: Optional[FieldMapping] = None
145
146
 
@@ -187,15 +187,27 @@ def _fix_optional(schema):
187
187
  replacements = {}
188
188
  if schema.required is None:
189
189
  schema.required = []
190
-
191
190
  for k, v in schema.properties.items():
191
+ # Simple null type & required -> not required
192
192
  if v.type == 'null' and k in schema.required:
193
193
  not_required.append(k)
194
- if v.anyOf is not None and next(filter(lambda x: x.type == 'null', v.anyOf)) and k in schema.required:
195
- v.anyOf = list(filter(lambda x: x.type != 'null', v.anyOf))
196
- if len(v.anyOf) == 1:
197
- replacements[k] = v.anyOf[0]
198
- not_required.append(k)
194
+ # Optional with null & required
195
+ if v.anyOf is not None and [x for x in v.anyOf if x.type == 'null']:
196
+ if k in schema.required:
197
+ # required with default -> not required
198
+ # required without default -> required & remove null from union
199
+ if v.default:
200
+ not_required.append(k)
201
+ else:
202
+ v.anyOf = list(filter(lambda x: x.type != 'null', v.anyOf))
203
+ if len(v.anyOf) == 1:
204
+ replacements[k] = v.anyOf[0]
205
+ else:
206
+ # not required with default -> no change
207
+ # not required without default -> means default input is 'None'
208
+ v.default = v.default if v.default else 'null'
209
+
210
+
199
211
  schema.required = list(filter(lambda x: x not in not_required, schema.required if schema.required is not None else []))
200
212
  for k, v in replacements.items():
201
213
  combined = {
@@ -794,6 +794,7 @@ services:
794
794
  WO_INSTANCE: ${WO_INSTANCE}
795
795
  AUTHORIZATION_URL: ${AUTHORIZATION_URL}
796
796
  WO_AUTH_TYPE: ${WO_AUTH_TYPE}
797
+ FLOW_CALLBACK_REQUEST_RETRIES: "1"
797
798
  healthcheck:
798
799
  test: curl -k http://localhost:9044/readiness --fail
799
800
  interval: 30s
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ibm-watsonx-orchestrate
3
- Version: 1.9.0b2
3
+ Version: 1.9.0.dev0
4
4
  Summary: IBM watsonx.orchestrate SDK
5
5
  Author-email: IBM <support@ibm.com>
6
6
  License: MIT License
@@ -1,4 +1,4 @@
1
- ibm_watsonx_orchestrate/__init__.py,sha256=qSsB-sI25lOiixDR8S9s8PpP3iB7TKKGjtr405WOdZI,427
1
+ ibm_watsonx_orchestrate/__init__.py,sha256=HI0XRN4OTMQa_zxBZ5KV3HckVpoekjCUxKMRWbgDVOw,430
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
4
  ibm_watsonx_orchestrate/agent_builder/agents/agent.py,sha256=W0uya81fQPrYZFaO_tlsxBL56Bfpw0xrqdxQJhAZ6XI,983
@@ -13,7 +13,7 @@ ibm_watsonx_orchestrate/agent_builder/connections/connections.py,sha256=CD3QHI4d
13
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
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=ILnIwjK-RqIUr9CeRRobIPg6qE1Sl4Br-qCMPvbHIVs,6985
16
+ ibm_watsonx_orchestrate/agent_builder/knowledge_bases/types.py,sha256=1d61lUSxABvePQCaiBAy3suA2wdxpH6dMFSq61W7C2M,7023
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
@@ -24,7 +24,7 @@ ibm_watsonx_orchestrate/agent_builder/tools/__init__.py,sha256=adkYX0wgB-RKFCUBw
24
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
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
27
+ ibm_watsonx_orchestrate/agent_builder/tools/python_tool.py,sha256=KJoJe8wNGcLUyTPx7R93b5DVzqPeGcBA8Oo-KsH4Sgs,12525
28
28
  ibm_watsonx_orchestrate/agent_builder/tools/types.py,sha256=m2t4uXNp0DVwVFzd0Jf_se8tz6V8FzM5fYgFs7AlvHU,8251
29
29
  ibm_watsonx_orchestrate/agent_builder/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
30
  ibm_watsonx_orchestrate/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -96,7 +96,7 @@ ibm_watsonx_orchestrate/client/models/models_client.py,sha256=ZvP3iPgUFw_SXp41kJ
96
96
  ibm_watsonx_orchestrate/client/toolkit/toolkit_client.py,sha256=TLFNS39EeBD_t4Y-rX9sGp4sWBDr--mE5qVtHq8Q2hk,3121
97
97
  ibm_watsonx_orchestrate/client/tools/tempus_client.py,sha256=24fKDZUOVHBW-Vj4mubnpnUmab5LgGn8u5hOVyJaozI,1804
98
98
  ibm_watsonx_orchestrate/client/tools/tool_client.py,sha256=d3i3alVwa0TCN72w9sWOrM20GCbNmnpTnqEOJVbBIFM,1994
99
- ibm_watsonx_orchestrate/docker/compose-lite.yml,sha256=Mg8XqWLTxQS7Xl_tP32MGvkvEFyGiwEnug5FWyVjV7g,43616
99
+ ibm_watsonx_orchestrate/docker/compose-lite.yml,sha256=jU69jc976jFBDEOkjqZSsi6Y399nansSrmRhpHHGQoI,43657
100
100
  ibm_watsonx_orchestrate/docker/default.env,sha256=wdBu50CfT3wg9FSJ9ekW6_OGtQVNGk4nrdfOgR_6Hk0,6128
101
101
  ibm_watsonx_orchestrate/docker/proxy-config-single.yaml,sha256=WEbK4ENFuTCYhzRu_QblWp1_GMARgZnx5vReQafkIG8,308
102
102
  ibm_watsonx_orchestrate/docker/start-up.sh,sha256=LTtwHp0AidVgjohis2LXGvZnkFQStOiUAxgGABOyeUI,1811
@@ -121,8 +121,8 @@ ibm_watsonx_orchestrate/utils/utils.py,sha256=U7z_2iASoFiZ2zM0a_2Mc2Y-P5oOT7hOwu
121
121
  ibm_watsonx_orchestrate/utils/logging/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
122
122
  ibm_watsonx_orchestrate/utils/logging/logger.py,sha256=FzeGnidXAjC7yHrvIaj4KZPeaBBSCniZFlwgr5yV3oA,1037
123
123
  ibm_watsonx_orchestrate/utils/logging/logging.yaml,sha256=9_TKfuFr1barnOKP0fZT5D6MhddiwsXVTFjtRbcOO5w,314
124
- ibm_watsonx_orchestrate-1.9.0b2.dist-info/METADATA,sha256=vUmVmbH5irCvOWWPEcc9ckYadyPb1xtRTbGvAaq8K5o,1362
125
- ibm_watsonx_orchestrate-1.9.0b2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
126
- ibm_watsonx_orchestrate-1.9.0b2.dist-info/entry_points.txt,sha256=SfIT02-Jen5e99OcLhzbcM9Bdyf8SGVOCtnSplgZdQI,69
127
- ibm_watsonx_orchestrate-1.9.0b2.dist-info/licenses/LICENSE,sha256=Shgxx7hTdCOkiVRmfGgp_1ISISrwQD7m2f0y8Hsapl4,1083
128
- ibm_watsonx_orchestrate-1.9.0b2.dist-info/RECORD,,
124
+ ibm_watsonx_orchestrate-1.9.0.dev0.dist-info/METADATA,sha256=k1ZOnCxrlkyrvQN0-xUU61B_CsTkTrfThc1DOGBovsk,1365
125
+ ibm_watsonx_orchestrate-1.9.0.dev0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
126
+ ibm_watsonx_orchestrate-1.9.0.dev0.dist-info/entry_points.txt,sha256=SfIT02-Jen5e99OcLhzbcM9Bdyf8SGVOCtnSplgZdQI,69
127
+ ibm_watsonx_orchestrate-1.9.0.dev0.dist-info/licenses/LICENSE,sha256=Shgxx7hTdCOkiVRmfGgp_1ISISrwQD7m2f0y8Hsapl4,1083
128
+ ibm_watsonx_orchestrate-1.9.0.dev0.dist-info/RECORD,,