ibm-watsonx-orchestrate 1.9.0b0__py3-none-any.whl → 1.9.0b2__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.
- ibm_watsonx_orchestrate/__init__.py +1 -1
- ibm_watsonx_orchestrate/agent_builder/knowledge_bases/types.py +2 -2
- ibm_watsonx_orchestrate/agent_builder/models/types.py +5 -0
- ibm_watsonx_orchestrate/agent_builder/tools/types.py +5 -3
- ibm_watsonx_orchestrate/cli/commands/agents/agents_controller.py +15 -3
- ibm_watsonx_orchestrate/cli/commands/connections/connections_controller.py +6 -3
- ibm_watsonx_orchestrate/cli/commands/copilot/copilot_controller.py +103 -23
- ibm_watsonx_orchestrate/cli/commands/models/model_provider_mapper.py +17 -13
- ibm_watsonx_orchestrate/cli/commands/server/server_command.py +146 -36
- ibm_watsonx_orchestrate/cli/commands/toolkit/toolkit_command.py +4 -2
- ibm_watsonx_orchestrate/cli/commands/toolkit/toolkit_controller.py +9 -1
- ibm_watsonx_orchestrate/cli/commands/tools/tools_controller.py +1 -1
- ibm_watsonx_orchestrate/client/connections/connections_client.py +14 -2
- ibm_watsonx_orchestrate/client/copilot/cpe/copilot_cpe_client.py +5 -3
- ibm_watsonx_orchestrate/docker/compose-lite.yml +123 -9
- ibm_watsonx_orchestrate/docker/default.env +22 -17
- ibm_watsonx_orchestrate/flow_builder/flows/__init__.py +2 -2
- ibm_watsonx_orchestrate/flow_builder/flows/constants.py +2 -0
- ibm_watsonx_orchestrate/flow_builder/flows/flow.py +52 -10
- ibm_watsonx_orchestrate/flow_builder/node.py +34 -3
- ibm_watsonx_orchestrate/flow_builder/types.py +144 -26
- ibm_watsonx_orchestrate/flow_builder/utils.py +7 -5
- {ibm_watsonx_orchestrate-1.9.0b0.dist-info → ibm_watsonx_orchestrate-1.9.0b2.dist-info}/METADATA +1 -3
- {ibm_watsonx_orchestrate-1.9.0b0.dist-info → ibm_watsonx_orchestrate-1.9.0b2.dist-info}/RECORD +27 -28
- ibm_watsonx_orchestrate/agent_builder/utils/pydantic_utils.py +0 -149
- {ibm_watsonx_orchestrate-1.9.0b0.dist-info → ibm_watsonx_orchestrate-1.9.0b2.dist-info}/WHEEL +0 -0
- {ibm_watsonx_orchestrate-1.9.0b0.dist-info → ibm_watsonx_orchestrate-1.9.0b2.dist-info}/entry_points.txt +0 -0
- {ibm_watsonx_orchestrate-1.9.0b0.dist-info → ibm_watsonx_orchestrate-1.9.0b2.dist-info}/licenses/LICENSE +0 -0
{ibm_watsonx_orchestrate-1.9.0b0.dist-info → ibm_watsonx_orchestrate-1.9.0b2.dist-info}/RECORD
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
ibm_watsonx_orchestrate/__init__.py,sha256=
|
1
|
+
ibm_watsonx_orchestrate/__init__.py,sha256=qSsB-sI25lOiixDR8S9s8PpP3iB7TKKGjtr405WOdZI,427
|
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,11 +13,11 @@ 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=
|
16
|
+
ibm_watsonx_orchestrate/agent_builder/knowledge_bases/types.py,sha256=ILnIwjK-RqIUr9CeRRobIPg6qE1Sl4Br-qCMPvbHIVs,6985
|
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
|
20
|
-
ibm_watsonx_orchestrate/agent_builder/models/types.py,sha256=
|
20
|
+
ibm_watsonx_orchestrate/agent_builder/models/types.py,sha256=bWKrKeBMByjhEvkXieJUYOxVr1Px6mk8v4GsvjRrvo8,9812
|
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
|
@@ -25,16 +25,15 @@ ibm_watsonx_orchestrate/agent_builder/tools/base_tool.py,sha256=0vwMIAyKyB8v1QmN
|
|
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
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=
|
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
|
-
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
31
|
ibm_watsonx_orchestrate/cli/config.py,sha256=iXjDxymWhAmLSUu6eh7zJR20dYZDzbxcU5VoBdh3VIw,8318
|
33
32
|
ibm_watsonx_orchestrate/cli/init_helper.py,sha256=qxnKdFcPtGsV_6RqP_IuLshRxgB004SxzDAkBTExA-4,1675
|
34
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
35
|
ibm_watsonx_orchestrate/cli/commands/agents/agents_command.py,sha256=Zif3bH3X7j5qf7MWGcr53mJ2oEKXNRHeg3ZHeoHTIqQ,8984
|
37
|
-
ibm_watsonx_orchestrate/cli/commands/agents/agents_controller.py,sha256=
|
36
|
+
ibm_watsonx_orchestrate/cli/commands/agents/agents_controller.py,sha256=gEsuG3Mbz6shuv8yB2C-dPcqM5mMXUAVO0YniNNOMk0,48379
|
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
39
|
ibm_watsonx_orchestrate/cli/commands/channels/types.py,sha256=hMFvWPr7tAmDrhBqtzfkCsrubX3lsU6lapTSOFsUbHM,475
|
@@ -42,9 +41,9 @@ ibm_watsonx_orchestrate/cli/commands/channels/webchat/channels_webchat_command.p
|
|
42
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
43
|
ibm_watsonx_orchestrate/cli/commands/connections/connections_command.py,sha256=bZBzaaVMFmGY4Guk-JCknZqd8HvXY5L-FirxpxddQfc,10497
|
45
|
-
ibm_watsonx_orchestrate/cli/commands/connections/connections_controller.py,sha256=
|
44
|
+
ibm_watsonx_orchestrate/cli/commands/connections/connections_controller.py,sha256=diwoXiyh5VKmUv0E0KEx2WJnWyNWQnvpjw-Wff05t68,22395
|
46
45
|
ibm_watsonx_orchestrate/cli/commands/copilot/copilot_command.py,sha256=IxasApIyQYWRMKPXKa38ZPVkUvOc4chggSmSGjgQGXc,2345
|
47
|
-
ibm_watsonx_orchestrate/cli/commands/copilot/copilot_controller.py,sha256=
|
46
|
+
ibm_watsonx_orchestrate/cli/commands/copilot/copilot_controller.py,sha256=SC2Tjq6r-tHIiyPBMajsxdMIY3BQpRWpkYGZS2XbJyU,18981
|
48
47
|
ibm_watsonx_orchestrate/cli/commands/copilot/copilot_server_controller.py,sha256=AcBE97qNYsRN0ftY_E-AAjKFyVea4fHtU5eB2HsB42I,5619
|
49
48
|
ibm_watsonx_orchestrate/cli/commands/environment/environment_command.py,sha256=xwq7gdyjMtl2RYAnLAahGk2wDetr9BStt8yu7JkeBhk,3768
|
50
49
|
ibm_watsonx_orchestrate/cli/commands/environment/environment_controller.py,sha256=oHZ7LONtPg3-SSnU_rRZryLi8N2mplz5h-LGg4XjzD4,10261
|
@@ -54,10 +53,10 @@ ibm_watsonx_orchestrate/cli/commands/evaluations/evaluations_controller.py,sha25
|
|
54
53
|
ibm_watsonx_orchestrate/cli/commands/knowledge_bases/knowledge_bases_command.py,sha256=hOzRcGVoqq7dTc4bSregKxH-kYbrVqaFdhBLawqnRNo,2668
|
55
54
|
ibm_watsonx_orchestrate/cli/commands/knowledge_bases/knowledge_bases_controller.py,sha256=M19rRMFEEcAarPVw4fOr3S94Se1ZEo4hD7sCUr0xYTI,10115
|
56
55
|
ibm_watsonx_orchestrate/cli/commands/login/login_command.py,sha256=xArMiojoozg7Exn6HTpbTcjDO2idZRA-y0WV-_Ic1Sk,651
|
57
|
-
ibm_watsonx_orchestrate/cli/commands/models/model_provider_mapper.py,sha256=
|
56
|
+
ibm_watsonx_orchestrate/cli/commands/models/model_provider_mapper.py,sha256=mbvBR5o9M7W6OpTZyd6TtSEOIXq07dPYz4hv5zDrsd0,8129
|
58
57
|
ibm_watsonx_orchestrate/cli/commands/models/models_command.py,sha256=PW-PIM5Nq0qdCopWjANGBWEuEoA3NLTFThYrN8ggGCI,6425
|
59
58
|
ibm_watsonx_orchestrate/cli/commands/models/models_controller.py,sha256=eZSYQUg9TL_-8lgcPVpKIx7MtOE7K_NCvZW9Y9YsFA0,18466
|
60
|
-
ibm_watsonx_orchestrate/cli/commands/server/server_command.py,sha256=
|
59
|
+
ibm_watsonx_orchestrate/cli/commands/server/server_command.py,sha256=9VM9i2g54UwK0wsQ7z1m3KSDItoAslSk693YKGXPq0s,43309
|
61
60
|
ibm_watsonx_orchestrate/cli/commands/server/types.py,sha256=UCrgGErbSVBnOzesfjrIii4tTCuVfWemYz5AKGZX0oA,4213
|
62
61
|
ibm_watsonx_orchestrate/cli/commands/settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
63
62
|
ibm_watsonx_orchestrate/cli/commands/settings/settings_command.py,sha256=CzXRkd-97jXyS6LtaaNtMah-aZu0919dYl-mDwzGThc,344
|
@@ -65,10 +64,10 @@ ibm_watsonx_orchestrate/cli/commands/settings/observability/__init__.py,sha256=4
|
|
65
64
|
ibm_watsonx_orchestrate/cli/commands/settings/observability/observability_command.py,sha256=TAkpKwoqocsShSgEeR6LzHCzJx16VDQ6cYsbpljxeqI,372
|
66
65
|
ibm_watsonx_orchestrate/cli/commands/settings/observability/langfuse/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
67
66
|
ibm_watsonx_orchestrate/cli/commands/settings/observability/langfuse/langfuse_command.py,sha256=Wa0L8E44EdxH9LdOvmnluLk_ApJVfTLauNOC1kV4W8k,6515
|
68
|
-
ibm_watsonx_orchestrate/cli/commands/toolkit/toolkit_command.py,sha256=
|
69
|
-
ibm_watsonx_orchestrate/cli/commands/toolkit/toolkit_controller.py,sha256=
|
67
|
+
ibm_watsonx_orchestrate/cli/commands/toolkit/toolkit_command.py,sha256=KI96Yexq4ZkM-VxcW88oMszjnOxbdU7quSxFtvf_ry4,4367
|
68
|
+
ibm_watsonx_orchestrate/cli/commands/toolkit/toolkit_controller.py,sha256=3Jykp5-DzMM_At8kYJto171V6LesaqKdsk2nfg1TRpk,11949
|
70
69
|
ibm_watsonx_orchestrate/cli/commands/tools/tools_command.py,sha256=Cuo1ZvlfsymojqbadCqdwwS0HUjaWpe2XQrV70g61_s,3943
|
71
|
-
ibm_watsonx_orchestrate/cli/commands/tools/tools_controller.py,sha256=
|
70
|
+
ibm_watsonx_orchestrate/cli/commands/tools/tools_controller.py,sha256=4VnV_rm7uXA7gtAfmqdw7igb5tkVGyhcsoni21jMDFA,40407
|
72
71
|
ibm_watsonx_orchestrate/cli/commands/tools/types.py,sha256=_md0GEa_cTH17NO_moWDY_LNdFvyEFQ1UVB9_FltYiA,173
|
73
72
|
ibm_watsonx_orchestrate/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
74
73
|
ibm_watsonx_orchestrate/client/base_api_client.py,sha256=cSbQb7-K9KoMeFLEIiYGho4cQqf8TcPyYklju9X4cC4,5214
|
@@ -86,9 +85,9 @@ ibm_watsonx_orchestrate/client/analytics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5
|
|
86
85
|
ibm_watsonx_orchestrate/client/analytics/llm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
87
86
|
ibm_watsonx_orchestrate/client/analytics/llm/analytics_llm_client.py,sha256=0YS_BCpmf5oGFawpZkJ38cuz5ArhKsZIbSydWRd194s,1340
|
88
87
|
ibm_watsonx_orchestrate/client/connections/__init__.py,sha256=J7TOyVg38h71AlaJjlFs5fOuAXTceHvELtOJ9oz4Mvg,207
|
89
|
-
ibm_watsonx_orchestrate/client/connections/connections_client.py,sha256=
|
88
|
+
ibm_watsonx_orchestrate/client/connections/connections_client.py,sha256=UQMHxPDP9qqVUGoAAaCafcp2kMazeJsCNPn2NgrOQcI,8134
|
90
89
|
ibm_watsonx_orchestrate/client/connections/utils.py,sha256=f6HsiDI6cycOqfYN6P4uZ3SQds83xlh83zTUioZPeYk,2618
|
91
|
-
ibm_watsonx_orchestrate/client/copilot/cpe/copilot_cpe_client.py,sha256
|
90
|
+
ibm_watsonx_orchestrate/client/copilot/cpe/copilot_cpe_client.py,sha256=-grsFXdxY8Cy2DbsWa1Akc93d-TRLJJYCdMDkCfmG3g,2102
|
92
91
|
ibm_watsonx_orchestrate/client/knowledge_bases/knowledge_base_client.py,sha256=YjC16dcL_l0jd-6yZ6uH8anlL4yaIv9f-7Y_urPuXWM,2201
|
93
92
|
ibm_watsonx_orchestrate/client/model_policies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
94
93
|
ibm_watsonx_orchestrate/client/model_policies/model_policies_client.py,sha256=Ddjraesv1MRPhZebB0PdBL0zgdsoWmnYpWTUci_6XFI,2258
|
@@ -97,8 +96,8 @@ ibm_watsonx_orchestrate/client/models/models_client.py,sha256=ZvP3iPgUFw_SXp41kJ
|
|
97
96
|
ibm_watsonx_orchestrate/client/toolkit/toolkit_client.py,sha256=TLFNS39EeBD_t4Y-rX9sGp4sWBDr--mE5qVtHq8Q2hk,3121
|
98
97
|
ibm_watsonx_orchestrate/client/tools/tempus_client.py,sha256=24fKDZUOVHBW-Vj4mubnpnUmab5LgGn8u5hOVyJaozI,1804
|
99
98
|
ibm_watsonx_orchestrate/client/tools/tool_client.py,sha256=d3i3alVwa0TCN72w9sWOrM20GCbNmnpTnqEOJVbBIFM,1994
|
100
|
-
ibm_watsonx_orchestrate/docker/compose-lite.yml,sha256=
|
101
|
-
ibm_watsonx_orchestrate/docker/default.env,sha256=
|
99
|
+
ibm_watsonx_orchestrate/docker/compose-lite.yml,sha256=Mg8XqWLTxQS7Xl_tP32MGvkvEFyGiwEnug5FWyVjV7g,43616
|
100
|
+
ibm_watsonx_orchestrate/docker/default.env,sha256=wdBu50CfT3wg9FSJ9ekW6_OGtQVNGk4nrdfOgR_6Hk0,6128
|
102
101
|
ibm_watsonx_orchestrate/docker/proxy-config-single.yaml,sha256=WEbK4ENFuTCYhzRu_QblWp1_GMARgZnx5vReQafkIG8,308
|
103
102
|
ibm_watsonx_orchestrate/docker/start-up.sh,sha256=LTtwHp0AidVgjohis2LXGvZnkFQStOiUAxgGABOyeUI,1811
|
104
103
|
ibm_watsonx_orchestrate/docker/sdk/ibm_watsonx_orchestrate-0.6.0-py3-none-any.whl,sha256=Hi3-owh5OM0Jz2ihX9nLoojnr7Ky1TV-GelyqLcewLE,2047417
|
@@ -106,14 +105,14 @@ ibm_watsonx_orchestrate/docker/sdk/ibm_watsonx_orchestrate-0.6.0.tar.gz,sha256=e
|
|
106
105
|
ibm_watsonx_orchestrate/docker/tempus/common-config.yaml,sha256=Zo3F36F5DV4VO_vUg1RG-r4WhcukVh79J2fXhGl6j0A,22
|
107
106
|
ibm_watsonx_orchestrate/flow_builder/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
108
107
|
ibm_watsonx_orchestrate/flow_builder/data_map.py,sha256=1brmWWFERDsNG2XGais-5-r58LKUUwBtqwdaLQIFRhE,503
|
109
|
-
ibm_watsonx_orchestrate/flow_builder/node.py,sha256=
|
110
|
-
ibm_watsonx_orchestrate/flow_builder/types.py,sha256=
|
111
|
-
ibm_watsonx_orchestrate/flow_builder/utils.py,sha256=
|
112
|
-
ibm_watsonx_orchestrate/flow_builder/flows/__init__.py,sha256=
|
113
|
-
ibm_watsonx_orchestrate/flow_builder/flows/constants.py,sha256
|
108
|
+
ibm_watsonx_orchestrate/flow_builder/node.py,sha256=l9J9bMyrvU5yKT2W0G9M-KM5rrfCeuG8jcANegQkrL8,5971
|
109
|
+
ibm_watsonx_orchestrate/flow_builder/types.py,sha256=muKjxiRQgjhgYqUHsumvy43ICuzzINyhdNKEnMBpBe4,44208
|
110
|
+
ibm_watsonx_orchestrate/flow_builder/utils.py,sha256=8q1jr5i_TzoJpoQxmLiO0g5Uv03BLbTUaRfw8_0VWIY,11931
|
111
|
+
ibm_watsonx_orchestrate/flow_builder/flows/__init__.py,sha256=jbCklY7l08KG8cbFihAnUWXSQKLLoTU6Mk_BmA4VksU,1041
|
112
|
+
ibm_watsonx_orchestrate/flow_builder/flows/constants.py,sha256=-TGneZyjA4YiAtJJK7OmmjDHYQC4mw2e98MPAZqiB50,324
|
114
113
|
ibm_watsonx_orchestrate/flow_builder/flows/decorators.py,sha256=lr4qSWq5PWqlGFf4fzUQZCVQDHBYflrYwZ24S89Aq80,2794
|
115
114
|
ibm_watsonx_orchestrate/flow_builder/flows/events.py,sha256=VyaBm0sADwr15LWfKbcBQS1M80NKqzYDj3UlW3OpOf4,2984
|
116
|
-
ibm_watsonx_orchestrate/flow_builder/flows/flow.py,sha256=
|
115
|
+
ibm_watsonx_orchestrate/flow_builder/flows/flow.py,sha256=uAk_uS2i1zH3toJQw7I_5zaSPVOdvAyEitGdM0rxrJI,56949
|
117
116
|
ibm_watsonx_orchestrate/run/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
118
117
|
ibm_watsonx_orchestrate/run/connections.py,sha256=K-65GXPA8GEsVmRdPfMe_LB2G9RfXQUr95wvRUOhkS4,1828
|
119
118
|
ibm_watsonx_orchestrate/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -122,8 +121,8 @@ ibm_watsonx_orchestrate/utils/utils.py,sha256=U7z_2iASoFiZ2zM0a_2Mc2Y-P5oOT7hOwu
|
|
122
121
|
ibm_watsonx_orchestrate/utils/logging/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
123
122
|
ibm_watsonx_orchestrate/utils/logging/logger.py,sha256=FzeGnidXAjC7yHrvIaj4KZPeaBBSCniZFlwgr5yV3oA,1037
|
124
123
|
ibm_watsonx_orchestrate/utils/logging/logging.yaml,sha256=9_TKfuFr1barnOKP0fZT5D6MhddiwsXVTFjtRbcOO5w,314
|
125
|
-
ibm_watsonx_orchestrate-1.9.
|
126
|
-
ibm_watsonx_orchestrate-1.9.
|
127
|
-
ibm_watsonx_orchestrate-1.9.
|
128
|
-
ibm_watsonx_orchestrate-1.9.
|
129
|
-
ibm_watsonx_orchestrate-1.9.
|
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,,
|
@@ -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
|
-
|
{ibm_watsonx_orchestrate-1.9.0b0.dist-info → ibm_watsonx_orchestrate-1.9.0b2.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|