ibm-watsonx-orchestrate 1.5.0b1__py3-none-any.whl → 1.6.0b0__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/agents/__init__.py +1 -1
- ibm_watsonx_orchestrate/agent_builder/agents/types.py +53 -3
- ibm_watsonx_orchestrate/agent_builder/model_policies/types.py +1 -1
- ibm_watsonx_orchestrate/agent_builder/models/types.py +0 -1
- ibm_watsonx_orchestrate/agent_builder/tools/openapi_tool.py +41 -3
- ibm_watsonx_orchestrate/agent_builder/tools/python_tool.py +2 -1
- ibm_watsonx_orchestrate/agent_builder/tools/types.py +7 -0
- ibm_watsonx_orchestrate/cli/commands/agents/agents_command.py +18 -1
- ibm_watsonx_orchestrate/cli/commands/agents/agents_controller.py +97 -3
- ibm_watsonx_orchestrate/cli/commands/channels/webchat/channels_webchat_controller.py +0 -1
- ibm_watsonx_orchestrate/cli/commands/connections/connections_controller.py +1 -1
- ibm_watsonx_orchestrate/cli/commands/environment/environment_command.py +29 -4
- ibm_watsonx_orchestrate/cli/commands/environment/environment_controller.py +74 -8
- ibm_watsonx_orchestrate/cli/commands/environment/types.py +1 -0
- ibm_watsonx_orchestrate/cli/commands/evaluations/evaluations_command.py +224 -0
- ibm_watsonx_orchestrate/cli/commands/evaluations/evaluations_controller.py +158 -0
- ibm_watsonx_orchestrate/cli/commands/knowledge_bases/knowledge_bases_command.py +2 -2
- ibm_watsonx_orchestrate/cli/commands/models/model_provider_mapper.py +31 -25
- ibm_watsonx_orchestrate/cli/commands/models/models_command.py +6 -6
- ibm_watsonx_orchestrate/cli/commands/models/models_controller.py +17 -8
- ibm_watsonx_orchestrate/cli/commands/server/server_command.py +25 -17
- ibm_watsonx_orchestrate/cli/commands/server/types.py +2 -1
- ibm_watsonx_orchestrate/cli/commands/toolkit/toolkit_controller.py +0 -3
- ibm_watsonx_orchestrate/cli/commands/tools/tools_controller.py +14 -12
- ibm_watsonx_orchestrate/cli/config.py +2 -0
- ibm_watsonx_orchestrate/cli/main.py +6 -0
- ibm_watsonx_orchestrate/client/agents/agent_client.py +14 -8
- ibm_watsonx_orchestrate/client/agents/assistant_agent_client.py +3 -3
- ibm_watsonx_orchestrate/client/agents/external_agent_client.py +2 -2
- ibm_watsonx_orchestrate/client/base_api_client.py +9 -9
- ibm_watsonx_orchestrate/client/connections/connections_client.py +32 -6
- ibm_watsonx_orchestrate/client/connections/utils.py +1 -1
- ibm_watsonx_orchestrate/client/credentials.py +4 -0
- ibm_watsonx_orchestrate/client/model_policies/model_policies_client.py +2 -2
- ibm_watsonx_orchestrate/client/service_instance.py +42 -1
- ibm_watsonx_orchestrate/client/utils.py +27 -2
- ibm_watsonx_orchestrate/docker/compose-lite.yml +27 -17
- ibm_watsonx_orchestrate/docker/default.env +21 -15
- ibm_watsonx_orchestrate/{experimental/flow_builder → flow_builder}/flows/__init__.py +3 -2
- ibm_watsonx_orchestrate/flow_builder/flows/decorators.py +77 -0
- ibm_watsonx_orchestrate/{experimental/flow_builder → flow_builder}/flows/events.py +6 -1
- ibm_watsonx_orchestrate/{experimental/flow_builder → flow_builder}/flows/flow.py +70 -87
- ibm_watsonx_orchestrate/{experimental/flow_builder → flow_builder}/types.py +15 -6
- ibm_watsonx_orchestrate/flow_builder/utils.py +185 -0
- {ibm_watsonx_orchestrate-1.5.0b1.dist-info → ibm_watsonx_orchestrate-1.6.0b0.dist-info}/METADATA +2 -1
- {ibm_watsonx_orchestrate-1.5.0b1.dist-info → ibm_watsonx_orchestrate-1.6.0b0.dist-info}/RECORD +55 -53
- ibm_watsonx_orchestrate/experimental/flow_builder/flows/decorators.py +0 -144
- ibm_watsonx_orchestrate/experimental/flow_builder/utils.py +0 -115
- /ibm_watsonx_orchestrate/{experimental/flow_builder → flow_builder}/__init__.py +0 -0
- /ibm_watsonx_orchestrate/{experimental/flow_builder → flow_builder}/data_map.py +0 -0
- /ibm_watsonx_orchestrate/{experimental/flow_builder → flow_builder}/flows/constants.py +0 -0
- /ibm_watsonx_orchestrate/{experimental/flow_builder → flow_builder}/node.py +0 -0
- /ibm_watsonx_orchestrate/{experimental/flow_builder → flow_builder}/resources/flow_status.openapi.yml +0 -0
- {ibm_watsonx_orchestrate-1.5.0b1.dist-info → ibm_watsonx_orchestrate-1.6.0b0.dist-info}/WHEEL +0 -0
- {ibm_watsonx_orchestrate-1.5.0b1.dist-info → ibm_watsonx_orchestrate-1.6.0b0.dist-info}/entry_points.txt +0 -0
- {ibm_watsonx_orchestrate-1.5.0b1.dist-info → ibm_watsonx_orchestrate-1.6.0b0.dist-info}/licenses/LICENSE +0 -0
{ibm_watsonx_orchestrate-1.5.0b1.dist-info → ibm_watsonx_orchestrate-1.6.0b0.dist-info}/RECORD
RENAMED
@@ -1,10 +1,10 @@
|
|
1
|
-
ibm_watsonx_orchestrate/__init__.py,sha256
|
1
|
+
ibm_watsonx_orchestrate/__init__.py,sha256=qARonbMMm1zMMqiY-R0TsYY0Gl0OS1ddw2Vng7fEfCY,427
|
2
2
|
ibm_watsonx_orchestrate/agent_builder/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
|
-
ibm_watsonx_orchestrate/agent_builder/agents/__init__.py,sha256=
|
3
|
+
ibm_watsonx_orchestrate/agent_builder/agents/__init__.py,sha256=lmZwaiWXD4Ea19nrMwZXaqCxFMG29xNS8vUoZtK3yI4,392
|
4
4
|
ibm_watsonx_orchestrate/agent_builder/agents/agent.py,sha256=PcBg2dRi-IOzvl24u8fa3B0jLaM5hzgkpTS8k56L9Ag,919
|
5
5
|
ibm_watsonx_orchestrate/agent_builder/agents/assistant_agent.py,sha256=U1cKr22umcWCMgI4G3r5JZXHPfWYbCbiTydH4YZy_Og,987
|
6
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=
|
7
|
+
ibm_watsonx_orchestrate/agent_builder/agents/types.py,sha256=ovSLxCfM7ZEQdUBmojYBjhfP5ggd5GNdVSvUmBWhBYo,11842
|
8
8
|
ibm_watsonx_orchestrate/agent_builder/connections/__init__.py,sha256=T7rgkNrG5wx-DfZVb7ree5hw_fCV0FbxVFxvr0bnxdw,722
|
9
9
|
ibm_watsonx_orchestrate/agent_builder/connections/connections.py,sha256=DImRGTXiky1KEVxM_5RmeLom74Lej9bBD8cXafkV6FY,4501
|
10
10
|
ibm_watsonx_orchestrate/agent_builder/connections/types.py,sha256=znSOdikTv_yIZaVDwoHwOSPu6b9hajj8miCMKOBmi2w,9280
|
@@ -12,44 +12,46 @@ ibm_watsonx_orchestrate/agent_builder/knowledge_bases/knowledge_base.py,sha256=_
|
|
12
12
|
ibm_watsonx_orchestrate/agent_builder/knowledge_bases/knowledge_base_requests.py,sha256=mRow0rf5EHeJCCsTrONeTq10jShs_yIBQjpgDY_mTrI,1641
|
13
13
|
ibm_watsonx_orchestrate/agent_builder/knowledge_bases/types.py,sha256=ttre2pRs_I_KBWSht60zT3dJw8twQml3m92ZkiRAoxs,7994
|
14
14
|
ibm_watsonx_orchestrate/agent_builder/model_policies/__init__.py,sha256=alJEjlneWlGpadmvOVlDjq5wulytKOmpkq3849fhKNc,131
|
15
|
-
ibm_watsonx_orchestrate/agent_builder/model_policies/types.py,sha256=
|
15
|
+
ibm_watsonx_orchestrate/agent_builder/model_policies/types.py,sha256=a6f9HP2OlZIe36k_PDRmFtefz2Ms2KBpzJ_jz8ggYbk,882
|
16
16
|
ibm_watsonx_orchestrate/agent_builder/models/__init__.py,sha256=R5nTbyMBzahONdp5-bJFp-rbtTDnp2184k6doZqt67w,31
|
17
|
-
ibm_watsonx_orchestrate/agent_builder/models/types.py,sha256=
|
17
|
+
ibm_watsonx_orchestrate/agent_builder/models/types.py,sha256=Zr0xHZpTVPZnaUSvlopc2iYVfKmhiqEuvaVe37HVxlw,9457
|
18
18
|
ibm_watsonx_orchestrate/agent_builder/toolkits/base_toolkit.py,sha256=KXRPgBK-F9Qa6IYqEslkN3ANj3cmZoZQnlSiy_-iXCk,1054
|
19
19
|
ibm_watsonx_orchestrate/agent_builder/toolkits/types.py,sha256=yY-V4Hqct91-Rs4rJ3rY9OhzKkSMdOT63o224o-U9eg,959
|
20
20
|
ibm_watsonx_orchestrate/agent_builder/tools/__init__.py,sha256=adkYX0wgB-RKFCUBw6LPJhNVelUjUdsxipGPk2ghLns,479
|
21
21
|
ibm_watsonx_orchestrate/agent_builder/tools/base_tool.py,sha256=unJBOJUY8DAq3T3YX5d1H5KehJUCjObAdpGLVoWIfzw,1156
|
22
|
-
ibm_watsonx_orchestrate/agent_builder/tools/openapi_tool.py,sha256=
|
23
|
-
ibm_watsonx_orchestrate/agent_builder/tools/python_tool.py,sha256=
|
24
|
-
ibm_watsonx_orchestrate/agent_builder/tools/types.py,sha256=
|
22
|
+
ibm_watsonx_orchestrate/agent_builder/tools/openapi_tool.py,sha256=Q2-TcUUjBAZWlhOqxfkB3yQpdxgdZAAJh0VWDh_dZPQ,16359
|
23
|
+
ibm_watsonx_orchestrate/agent_builder/tools/python_tool.py,sha256=qVyAe7hKLZ1V4cvqDUCpYs6JBKl9MHSr0yrri-nSceA,10600
|
24
|
+
ibm_watsonx_orchestrate/agent_builder/tools/types.py,sha256=nlojop98ov3nAXk7uy08P3lQV08iDdm3Ab3xmDvxAeA,7781
|
25
25
|
ibm_watsonx_orchestrate/agent_builder/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
26
26
|
ibm_watsonx_orchestrate/agent_builder/utils/pydantic_utils.py,sha256=QEanM6FpkmntvS02whdhWx1d4v6zT_1l9ipEbfTgHs8,7623
|
27
27
|
ibm_watsonx_orchestrate/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
28
|
-
ibm_watsonx_orchestrate/cli/config.py,sha256=
|
28
|
+
ibm_watsonx_orchestrate/cli/config.py,sha256=BE2ze0o9vLoyrk7q9mcRek2rDL2cTsVtsSGWw4W0y6M,8212
|
29
29
|
ibm_watsonx_orchestrate/cli/init_helper.py,sha256=Lb0bj6b8EaeBxkfGyrBBvc581ORg_S5-tHcXWQ-mBmE,1466
|
30
|
-
ibm_watsonx_orchestrate/cli/main.py,sha256=
|
30
|
+
ibm_watsonx_orchestrate/cli/main.py,sha256=TyVuNC12GDxo4InaPfQ6e6Xk5bGarfSoIRAslGifUQ0,2914
|
31
31
|
ibm_watsonx_orchestrate/cli/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
32
|
-
ibm_watsonx_orchestrate/cli/commands/agents/agents_command.py,sha256
|
33
|
-
ibm_watsonx_orchestrate/cli/commands/agents/agents_controller.py,sha256=
|
32
|
+
ibm_watsonx_orchestrate/cli/commands/agents/agents_command.py,sha256=-UX6ypiF_XwmEwe0twVGsfnO29Xs8xPOPJ5vk8EIifo,8991
|
33
|
+
ibm_watsonx_orchestrate/cli/commands/agents/agents_controller.py,sha256=tVbk6LF42bUHy4u71UZPoxKfeY1QH5_r9Zf8sve4h6g,46401
|
34
34
|
ibm_watsonx_orchestrate/cli/commands/channels/channels_command.py,sha256=fVIFhPUTPdxsxIE10nWL-W5wvBR-BS8V8D6r__J8R98,822
|
35
35
|
ibm_watsonx_orchestrate/cli/commands/channels/channels_controller.py,sha256=WjQxwJujvo28SsWgfJSXIpkcgniKcskJ2arL4MOz0Ys,455
|
36
36
|
ibm_watsonx_orchestrate/cli/commands/channels/types.py,sha256=h8gA3EM7k5X08sk8T9b5siL-XL9uUE-hl_jS-0PDBHA,254
|
37
37
|
ibm_watsonx_orchestrate/cli/commands/channels/webchat/channels_webchat_command.py,sha256=vPCr6z1n1yzGDjTlM4f3_9MiuVRzNmXbvUifm6XyQi8,1103
|
38
|
-
ibm_watsonx_orchestrate/cli/commands/channels/webchat/channels_webchat_controller.py,sha256=
|
38
|
+
ibm_watsonx_orchestrate/cli/commands/channels/webchat/channels_webchat_controller.py,sha256=lLJY4hq4ZGlLcd1eYczAIf3plk1mS_nvs4883AnH55M,4986
|
39
39
|
ibm_watsonx_orchestrate/cli/commands/chat/chat_command.py,sha256=5XnL6wMw3R9CjYDxZxBFJcdPxmNBuYIkfJlVUODvCyc,1372
|
40
40
|
ibm_watsonx_orchestrate/cli/commands/connections/connections_command.py,sha256=_g_MbdDEJrV5qsbeamMzgOOdNh-xePhjI0s3Ci3__64,9935
|
41
|
-
ibm_watsonx_orchestrate/cli/commands/connections/connections_controller.py,sha256=
|
42
|
-
ibm_watsonx_orchestrate/cli/commands/environment/environment_command.py,sha256=
|
43
|
-
ibm_watsonx_orchestrate/cli/commands/environment/environment_controller.py,sha256=
|
44
|
-
ibm_watsonx_orchestrate/cli/commands/environment/types.py,sha256=
|
45
|
-
ibm_watsonx_orchestrate/cli/commands/
|
41
|
+
ibm_watsonx_orchestrate/cli/commands/connections/connections_controller.py,sha256=yaVvbfhXn0haCwcthl_G-WuETwOCkYE-JTLtnT82Jw0,21983
|
42
|
+
ibm_watsonx_orchestrate/cli/commands/environment/environment_command.py,sha256=xwq7gdyjMtl2RYAnLAahGk2wDetr9BStt8yu7JkeBhk,3768
|
43
|
+
ibm_watsonx_orchestrate/cli/commands/environment/environment_controller.py,sha256=bHJ26iz9EF7vvJ2dWf5fGOaddGBFme9OsPmHyNNrtpI,10182
|
44
|
+
ibm_watsonx_orchestrate/cli/commands/environment/types.py,sha256=qKcgIUfTPJIomLor-utz4qi7YhBMpb1l2DiSvjVSgaA,175
|
45
|
+
ibm_watsonx_orchestrate/cli/commands/evaluations/evaluations_command.py,sha256=TBxCVLSSnKf2SN2Y0pX21s1he-BTQ3RCUk6Xlsdt8Yc,7215
|
46
|
+
ibm_watsonx_orchestrate/cli/commands/evaluations/evaluations_controller.py,sha256=8CIlvwtxdjd31Rig9uHy7E_165MXUneqOMHal62Jl9A,6460
|
47
|
+
ibm_watsonx_orchestrate/cli/commands/knowledge_bases/knowledge_bases_command.py,sha256=Hxj33rFEYo1Vr2bk-uRwRhNssAETtTQgWTREvC0Nxds,3348
|
46
48
|
ibm_watsonx_orchestrate/cli/commands/knowledge_bases/knowledge_bases_controller.py,sha256=vLe1PV_qohLMctKl1Rajzyyhb0JfDC_XV_7vIfs_E8A,9595
|
47
49
|
ibm_watsonx_orchestrate/cli/commands/login/login_command.py,sha256=xArMiojoozg7Exn6HTpbTcjDO2idZRA-y0WV-_Ic1Sk,651
|
48
|
-
ibm_watsonx_orchestrate/cli/commands/models/model_provider_mapper.py,sha256=
|
49
|
-
ibm_watsonx_orchestrate/cli/commands/models/models_command.py,sha256=
|
50
|
-
ibm_watsonx_orchestrate/cli/commands/models/models_controller.py,sha256=
|
51
|
-
ibm_watsonx_orchestrate/cli/commands/server/server_command.py,sha256=
|
52
|
-
ibm_watsonx_orchestrate/cli/commands/server/types.py,sha256=
|
50
|
+
ibm_watsonx_orchestrate/cli/commands/models/model_provider_mapper.py,sha256=RVZfFCuPWiASkR9Mox61v5SZ1AoRxo4_g9stnbfjCkc,7994
|
51
|
+
ibm_watsonx_orchestrate/cli/commands/models/models_command.py,sha256=xYbMHRM98TCBmnwgIOsqpfjWqD7HVirn6A4KyEgQEcE,6418
|
52
|
+
ibm_watsonx_orchestrate/cli/commands/models/models_controller.py,sha256=BNfUoWST60x3k7yIvSbtBR3rmyTQmz9g0TDK2WOoOE4,18610
|
53
|
+
ibm_watsonx_orchestrate/cli/commands/server/server_command.py,sha256=FVHEsJ8698TScFVISzXIAUxVgAbCPoHtwFg9kdPauuE,32455
|
54
|
+
ibm_watsonx_orchestrate/cli/commands/server/types.py,sha256=UCrgGErbSVBnOzesfjrIii4tTCuVfWemYz5AKGZX0oA,4213
|
53
55
|
ibm_watsonx_orchestrate/cli/commands/settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
54
56
|
ibm_watsonx_orchestrate/cli/commands/settings/settings_command.py,sha256=CzXRkd-97jXyS6LtaaNtMah-aZu0919dYl-mDwzGThc,344
|
55
57
|
ibm_watsonx_orchestrate/cli/commands/settings/observability/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -57,53 +59,53 @@ ibm_watsonx_orchestrate/cli/commands/settings/observability/observability_comman
|
|
57
59
|
ibm_watsonx_orchestrate/cli/commands/settings/observability/langfuse/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
58
60
|
ibm_watsonx_orchestrate/cli/commands/settings/observability/langfuse/langfuse_command.py,sha256=Wa0L8E44EdxH9LdOvmnluLk_ApJVfTLauNOC1kV4W8k,6515
|
59
61
|
ibm_watsonx_orchestrate/cli/commands/toolkit/toolkit_command.py,sha256=e8YKUr_8CodA5fgYjUKj-Dk856foQ5Iz3I9Jld5pU_o,4193
|
60
|
-
ibm_watsonx_orchestrate/cli/commands/toolkit/toolkit_controller.py,sha256=
|
62
|
+
ibm_watsonx_orchestrate/cli/commands/toolkit/toolkit_controller.py,sha256=Ux5zbOmzydQWqXIJZjgXhRpam6Oqozy54xNCCr5JytI,11383
|
61
63
|
ibm_watsonx_orchestrate/cli/commands/tools/tools_command.py,sha256=Cuo1ZvlfsymojqbadCqdwwS0HUjaWpe2XQrV70g61_s,3943
|
62
|
-
ibm_watsonx_orchestrate/cli/commands/tools/tools_controller.py,sha256=
|
64
|
+
ibm_watsonx_orchestrate/cli/commands/tools/tools_controller.py,sha256=iaGKiV0mkByduQxKEkjDIYAtbhxvv5AU0o-z_r0yVTo,36386
|
63
65
|
ibm_watsonx_orchestrate/cli/commands/tools/types.py,sha256=_md0GEa_cTH17NO_moWDY_LNdFvyEFQ1UVB9_FltYiA,173
|
64
66
|
ibm_watsonx_orchestrate/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
65
|
-
ibm_watsonx_orchestrate/client/base_api_client.py,sha256=
|
67
|
+
ibm_watsonx_orchestrate/client/base_api_client.py,sha256=X5smv17-avHYs2LzxlN3xJWH4oP0kOIF7bkO3lgweDs,4689
|
66
68
|
ibm_watsonx_orchestrate/client/base_service_instance.py,sha256=sM_r7bln9BpgEOhaJMdFI9-je3T7GLQxLduk-in0oRY,235
|
67
69
|
ibm_watsonx_orchestrate/client/client.py,sha256=pgYeXHe4_Makrw0gTyM343DQdrZZB8cjitFHKcbdzuc,2432
|
68
70
|
ibm_watsonx_orchestrate/client/client_errors.py,sha256=72MKCNZbKoo2QXyY0RicLhP3r0ALRjgOEbHOHNSyOYI,11712
|
69
|
-
ibm_watsonx_orchestrate/client/credentials.py,sha256=
|
71
|
+
ibm_watsonx_orchestrate/client/credentials.py,sha256=gDVeeQZDdbbjJiO1EI61yx2oRgTQctxA2ZesSDHI4DA,3786
|
70
72
|
ibm_watsonx_orchestrate/client/local_service_instance.py,sha256=ilqbcd0R6r0w6H5tMlQf0YRFk8IjbJd9sXwT41iQ5iQ,3440
|
71
|
-
ibm_watsonx_orchestrate/client/service_instance.py,sha256=
|
72
|
-
ibm_watsonx_orchestrate/client/utils.py,sha256=
|
73
|
-
ibm_watsonx_orchestrate/client/agents/agent_client.py,sha256=
|
74
|
-
ibm_watsonx_orchestrate/client/agents/assistant_agent_client.py,sha256=
|
75
|
-
ibm_watsonx_orchestrate/client/agents/external_agent_client.py,sha256=
|
73
|
+
ibm_watsonx_orchestrate/client/service_instance.py,sha256=NjRFXuIkGH80VQV9qey1J8l9oTfc40IaLCn9gB36aJ0,5277
|
74
|
+
ibm_watsonx_orchestrate/client/utils.py,sha256=XDt4v50H6eIKOj8K45ZDWEShw27C4iY0s8deQ_i0Fcg,4474
|
75
|
+
ibm_watsonx_orchestrate/client/agents/agent_client.py,sha256=xx-prrFBiPojKFozWeGGSdgfk7OWnz4XfIvUUPGWHaM,2296
|
76
|
+
ibm_watsonx_orchestrate/client/agents/assistant_agent_client.py,sha256=1JQN0E4T_uz5V0LM-LD1ahNu2KCeFBjXAr8WCiP9mkE,1745
|
77
|
+
ibm_watsonx_orchestrate/client/agents/external_agent_client.py,sha256=iQ44XBdC4rYfS-zFn4St1xC5y5gf5SNqKHzMNQcFDZc,1808
|
76
78
|
ibm_watsonx_orchestrate/client/analytics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
77
79
|
ibm_watsonx_orchestrate/client/analytics/llm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
78
80
|
ibm_watsonx_orchestrate/client/analytics/llm/analytics_llm_client.py,sha256=0YS_BCpmf5oGFawpZkJ38cuz5ArhKsZIbSydWRd194s,1340
|
79
81
|
ibm_watsonx_orchestrate/client/connections/__init__.py,sha256=J7TOyVg38h71AlaJjlFs5fOuAXTceHvELtOJ9oz4Mvg,207
|
80
|
-
ibm_watsonx_orchestrate/client/connections/connections_client.py,sha256=
|
81
|
-
ibm_watsonx_orchestrate/client/connections/utils.py,sha256=
|
82
|
+
ibm_watsonx_orchestrate/client/connections/connections_client.py,sha256=gIiXJnNP4Mcz7SWYNW96jOm0bCJZTYlutOMbgCW5XEs,7816
|
83
|
+
ibm_watsonx_orchestrate/client/connections/utils.py,sha256=_sp27vSkRQB4rqwu0eyoAw82_95PvDVpH1JR696NmO8,2578
|
82
84
|
ibm_watsonx_orchestrate/client/knowledge_bases/knowledge_base_client.py,sha256=U-pG_H0I8992f0V13Li_e1dksKp54MrYX3X9bvr-09w,2181
|
83
85
|
ibm_watsonx_orchestrate/client/model_policies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
84
|
-
ibm_watsonx_orchestrate/client/model_policies/model_policies_client.py,sha256=
|
86
|
+
ibm_watsonx_orchestrate/client/model_policies/model_policies_client.py,sha256=Ddjraesv1MRPhZebB0PdBL0zgdsoWmnYpWTUci_6XFI,2258
|
85
87
|
ibm_watsonx_orchestrate/client/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
86
88
|
ibm_watsonx_orchestrate/client/models/models_client.py,sha256=ZvP3iPgUFw_SXp41kJuzWQDsgQOF5oqJURH7dFEnPz8,2164
|
87
89
|
ibm_watsonx_orchestrate/client/toolkit/toolkit_client.py,sha256=TLFNS39EeBD_t4Y-rX9sGp4sWBDr--mE5qVtHq8Q2hk,3121
|
88
90
|
ibm_watsonx_orchestrate/client/tools/tempus_client.py,sha256=Q6h-ynbjU1GBYweeNORgqhsP6nvLE2sKjS7sk7VFZP0,1678
|
89
91
|
ibm_watsonx_orchestrate/client/tools/tool_client.py,sha256=d3i3alVwa0TCN72w9sWOrM20GCbNmnpTnqEOJVbBIFM,1994
|
90
|
-
ibm_watsonx_orchestrate/docker/compose-lite.yml,sha256=
|
91
|
-
ibm_watsonx_orchestrate/docker/default.env,sha256=
|
92
|
+
ibm_watsonx_orchestrate/docker/compose-lite.yml,sha256=no7z1tjQPlW2RcPu5g11OC7t5a2PePwtLJfTYmBmhLo,27462
|
93
|
+
ibm_watsonx_orchestrate/docker/default.env,sha256=_xAoLqtIG5aPlDFtbFJGbqJn4cdCPDQrd57rf-aOaeE,4933
|
92
94
|
ibm_watsonx_orchestrate/docker/start-up.sh,sha256=LTtwHp0AidVgjohis2LXGvZnkFQStOiUAxgGABOyeUI,1811
|
93
95
|
ibm_watsonx_orchestrate/docker/sdk/ibm_watsonx_orchestrate-0.6.0-py3-none-any.whl,sha256=Hi3-owh5OM0Jz2ihX9nLoojnr7Ky1TV-GelyqLcewLE,2047417
|
94
96
|
ibm_watsonx_orchestrate/docker/sdk/ibm_watsonx_orchestrate-0.6.0.tar.gz,sha256=e5T-q7XPAtiCyQljwZp6kk3Q_4Tg6y5sijHTkscmqqQ,2025466
|
95
97
|
ibm_watsonx_orchestrate/docker/tempus/common-config.yaml,sha256=Zo3F36F5DV4VO_vUg1RG-r4WhcukVh79J2fXhGl6j0A,22
|
96
|
-
ibm_watsonx_orchestrate/
|
97
|
-
ibm_watsonx_orchestrate/
|
98
|
-
ibm_watsonx_orchestrate/
|
99
|
-
ibm_watsonx_orchestrate/
|
100
|
-
ibm_watsonx_orchestrate/
|
101
|
-
ibm_watsonx_orchestrate/
|
102
|
-
ibm_watsonx_orchestrate/
|
103
|
-
ibm_watsonx_orchestrate/
|
104
|
-
ibm_watsonx_orchestrate/
|
105
|
-
ibm_watsonx_orchestrate/
|
106
|
-
ibm_watsonx_orchestrate/
|
98
|
+
ibm_watsonx_orchestrate/flow_builder/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
99
|
+
ibm_watsonx_orchestrate/flow_builder/data_map.py,sha256=1brmWWFERDsNG2XGais-5-r58LKUUwBtqwdaLQIFRhE,503
|
100
|
+
ibm_watsonx_orchestrate/flow_builder/node.py,sha256=tp_ssBOSDDi8q-ET2bP7xRPwNOLmLUgQ7v9zZZqn9SU,4090
|
101
|
+
ibm_watsonx_orchestrate/flow_builder/types.py,sha256=KPASSlw55Dzp_8nhFdJUN0UI8_knMzLCK9epVcfP5NY,27689
|
102
|
+
ibm_watsonx_orchestrate/flow_builder/utils.py,sha256=VlS8MLMJKX4lFFHhWt-VFV3qb5w8gNLCcRVg2cmY644,7638
|
103
|
+
ibm_watsonx_orchestrate/flow_builder/flows/__init__.py,sha256=UTwpiAlT9Wytn1kK-kgUaY6UYjLKsiaQK0ZdSbKLtM0,897
|
104
|
+
ibm_watsonx_orchestrate/flow_builder/flows/constants.py,sha256=XXYtL5Y1OTjj3jKo2zoJiwb7FCUNu_M43fgU8w591TY,322
|
105
|
+
ibm_watsonx_orchestrate/flow_builder/flows/decorators.py,sha256=k9-r9ly5ih5oHBqjEgrc2vfeVC4LOMKg3YVLacBDubM,2702
|
106
|
+
ibm_watsonx_orchestrate/flow_builder/flows/events.py,sha256=bhbN3ljl-WyiJ_LzMd99IlX0QrhB_bASyHWv8mtTjvo,2978
|
107
|
+
ibm_watsonx_orchestrate/flow_builder/flows/flow.py,sha256=HrAFg2srG6fz4wr6nVdE8RkXFg5GypxswRGtveqCgyo,50435
|
108
|
+
ibm_watsonx_orchestrate/flow_builder/resources/flow_status.openapi.yml,sha256=UkQ4FD_ZhvZuMOjrgLm7cx8zJFZD7Ri-MPCe_zktU-8,1664
|
107
109
|
ibm_watsonx_orchestrate/run/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
108
110
|
ibm_watsonx_orchestrate/run/connections.py,sha256=o5TjSqxLG8zLk6UGWCcz_UdylMWZOyUT1o3i1XkL5Uc,1844
|
109
111
|
ibm_watsonx_orchestrate/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -111,8 +113,8 @@ ibm_watsonx_orchestrate/utils/utils.py,sha256=U7z_2iASoFiZ2zM0a_2Mc2Y-P5oOT7hOwu
|
|
111
113
|
ibm_watsonx_orchestrate/utils/logging/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
112
114
|
ibm_watsonx_orchestrate/utils/logging/logger.py,sha256=FzeGnidXAjC7yHrvIaj4KZPeaBBSCniZFlwgr5yV3oA,1037
|
113
115
|
ibm_watsonx_orchestrate/utils/logging/logging.yaml,sha256=9_TKfuFr1barnOKP0fZT5D6MhddiwsXVTFjtRbcOO5w,314
|
114
|
-
ibm_watsonx_orchestrate-1.
|
115
|
-
ibm_watsonx_orchestrate-1.
|
116
|
-
ibm_watsonx_orchestrate-1.
|
117
|
-
ibm_watsonx_orchestrate-1.
|
118
|
-
ibm_watsonx_orchestrate-1.
|
116
|
+
ibm_watsonx_orchestrate-1.6.0b0.dist-info/METADATA,sha256=xy9aHH18ERgEm2u-ll4tJariskL8OF_Ldc3VNvV-XGk,1439
|
117
|
+
ibm_watsonx_orchestrate-1.6.0b0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
118
|
+
ibm_watsonx_orchestrate-1.6.0b0.dist-info/entry_points.txt,sha256=SfIT02-Jen5e99OcLhzbcM9Bdyf8SGVOCtnSplgZdQI,69
|
119
|
+
ibm_watsonx_orchestrate-1.6.0b0.dist-info/licenses/LICENSE,sha256=Shgxx7hTdCOkiVRmfGgp_1ISISrwQD7m2f0y8Hsapl4,1083
|
120
|
+
ibm_watsonx_orchestrate-1.6.0b0.dist-info/RECORD,,
|
@@ -1,144 +0,0 @@
|
|
1
|
-
"""
|
2
|
-
A set of decorators to help define different Flow constructs.
|
3
|
-
"""
|
4
|
-
|
5
|
-
import asyncio
|
6
|
-
from functools import wraps
|
7
|
-
import logging
|
8
|
-
import inspect
|
9
|
-
from typing import Callable, Optional, Sequence
|
10
|
-
from pydantic import BaseModel
|
11
|
-
from ..types import extract_node_spec, UserNodeSpec, FlowSpec
|
12
|
-
|
13
|
-
from .flow import FlowFactory, Flow
|
14
|
-
|
15
|
-
logger = logging.getLogger(__name__)
|
16
|
-
|
17
|
-
|
18
|
-
class FlowWrapper:
|
19
|
-
def __init__(self, func, a_model):
|
20
|
-
self.func = func
|
21
|
-
self.a_model = a_model
|
22
|
-
wraps(func)(self) # Preserve metadata
|
23
|
-
|
24
|
-
def __call__(self, *args, **kwargs):
|
25
|
-
result = self.func(self.a_model)
|
26
|
-
if not isinstance(result, Flow):
|
27
|
-
raise ValueError("Return value must be of type Flow")
|
28
|
-
return result
|
29
|
-
|
30
|
-
def user(*args, name: str|None=None, description: str|None=None, owners: Sequence[str]|None = None, message: str | None = None):
|
31
|
-
"""Decorator to mark a function as a user node specification."""
|
32
|
-
|
33
|
-
def decorator(func: Callable):
|
34
|
-
node_spec = extract_node_spec(func, name, description)
|
35
|
-
func.__user_spec__ = UserNodeSpec(type = "user",
|
36
|
-
name = node_spec.name,
|
37
|
-
display_name = node_spec.display_name,
|
38
|
-
description = node_spec.description,
|
39
|
-
input_schema = node_spec.input_schema,
|
40
|
-
output_schema = node_spec.output_schema,
|
41
|
-
output_schema_object = node_spec.output_schema_object,
|
42
|
-
text=message,
|
43
|
-
owners=owners)
|
44
|
-
|
45
|
-
@wraps(func)
|
46
|
-
def wrapper(*args, **kwargs):
|
47
|
-
logger.error(f"User node {name} is not supported yet.")
|
48
|
-
r = func(*args, **kwargs)
|
49
|
-
return r
|
50
|
-
|
51
|
-
return wrapper
|
52
|
-
|
53
|
-
if len(args) == 1 and callable(args[0]):
|
54
|
-
return decorator(args[0])
|
55
|
-
else:
|
56
|
-
return decorator
|
57
|
-
|
58
|
-
|
59
|
-
def flow_spec(*args,
|
60
|
-
name: Optional[str]=None,
|
61
|
-
description: str|None=None,
|
62
|
-
initiators: Sequence[str] = ()):
|
63
|
-
"""Decorator to mark a function as a flow specification."""
|
64
|
-
|
65
|
-
def decorator(func: Callable):
|
66
|
-
node_spec = extract_node_spec(func, name, description)
|
67
|
-
a_spec = FlowSpec(type = "flow",
|
68
|
-
name = node_spec.name,
|
69
|
-
display_name = node_spec.display_name,
|
70
|
-
description = node_spec.description,
|
71
|
-
input_schema = node_spec.input_schema,
|
72
|
-
output_schema = node_spec.output_schema,
|
73
|
-
output_schema_object = node_spec.output_schema_object,
|
74
|
-
initiators = initiators)
|
75
|
-
|
76
|
-
# we should also check a flow is async
|
77
|
-
if not asyncio.iscoroutinefunction(func):
|
78
|
-
raise ValueError("Flow must be asynchronous.")
|
79
|
-
|
80
|
-
logger.info("Generated flow spec: %s", a_spec)
|
81
|
-
func.__flow_spec__ = a_spec
|
82
|
-
|
83
|
-
@wraps(func)
|
84
|
-
def wrapper(*args, **kwargs):
|
85
|
-
logger.info("Creating flow spec: %s", name)
|
86
|
-
r = func(*args, **kwargs)
|
87
|
-
logger.info("Flow spec %s returned: %s", name, r)
|
88
|
-
return r
|
89
|
-
|
90
|
-
return wrapper
|
91
|
-
|
92
|
-
if len(args) == 1 and callable(args[0]):
|
93
|
-
return decorator(args[0])
|
94
|
-
else:
|
95
|
-
return decorator
|
96
|
-
|
97
|
-
def flow(*args,
|
98
|
-
name: Optional[str]=None,
|
99
|
-
display_name: Optional[str]=None,
|
100
|
-
description: str|None=None,
|
101
|
-
input_schema: type[BaseModel] | None = None,
|
102
|
-
output_schema: type[BaseModel] | None = None,
|
103
|
-
initiators: Sequence[str] = ()):
|
104
|
-
"""Decorator to mark a function as a flow model builder."""
|
105
|
-
|
106
|
-
def decorator(func: Callable):
|
107
|
-
"""
|
108
|
-
Decorator that takes a function as an argument and returns a wrapper function.
|
109
|
-
The wrapper function takes a single argument of type Flow and calls the original function with the created flow as an argument.
|
110
|
-
"""
|
111
|
-
|
112
|
-
sig = inspect.signature(func)
|
113
|
-
if len(sig.parameters) != 1:
|
114
|
-
raise ValueError("Only one argument is allowed")
|
115
|
-
param = list(sig.parameters.values())[0]
|
116
|
-
if param.annotation != Flow:
|
117
|
-
raise ValueError("Argument must be of type Flow")
|
118
|
-
if sig.return_annotation != Flow:
|
119
|
-
raise ValueError("Return value must be of type Flow")
|
120
|
-
|
121
|
-
node_spec = extract_node_spec(func, name, description)
|
122
|
-
a_model = FlowFactory.create_flow(
|
123
|
-
name = node_spec.name,
|
124
|
-
display_name = display_name,
|
125
|
-
description = node_spec.description,
|
126
|
-
input_schema = input_schema,
|
127
|
-
output_schema = output_schema,
|
128
|
-
initiators = initiators)
|
129
|
-
|
130
|
-
# logger.info("Creating flow model: %s", a_model.spec.name)
|
131
|
-
|
132
|
-
# @wraps(func)
|
133
|
-
# def wrapper(*args, **kwargs):
|
134
|
-
# result = func(a_model)
|
135
|
-
# if not isinstance(result, Flow):
|
136
|
-
# raise ValueError("Return value must be of type Flow")
|
137
|
-
# return result
|
138
|
-
|
139
|
-
return FlowWrapper(func, a_model)
|
140
|
-
|
141
|
-
if len(args) == 1 and callable(args[0]):
|
142
|
-
return decorator(args[0])
|
143
|
-
else:
|
144
|
-
return decorator
|
@@ -1,115 +0,0 @@
|
|
1
|
-
import inspect
|
2
|
-
import json
|
3
|
-
from pathlib import Path
|
4
|
-
import re
|
5
|
-
import logging
|
6
|
-
import importlib.resources
|
7
|
-
import yaml
|
8
|
-
|
9
|
-
from pydantic import BaseModel
|
10
|
-
from typing import types
|
11
|
-
|
12
|
-
from langchain_core.utils.json_schema import dereference_refs
|
13
|
-
import typer
|
14
|
-
|
15
|
-
from ibm_watsonx_orchestrate.agent_builder.connections.types import ConnectionEnvironment, ConnectionPreference, ConnectionSecurityScheme
|
16
|
-
from ibm_watsonx_orchestrate.agent_builder.tools.openapi_tool import create_openapi_json_tools_from_content
|
17
|
-
from ibm_watsonx_orchestrate.agent_builder.tools.types import JsonSchemaObject
|
18
|
-
from ibm_watsonx_orchestrate.cli.commands.connections.connections_controller import add_connection, configure_connection, set_credentials_connection
|
19
|
-
from ibm_watsonx_orchestrate.client.connections.utils import get_connections_client
|
20
|
-
from ibm_watsonx_orchestrate.client.tools.tempus_client import TempusClient
|
21
|
-
from ibm_watsonx_orchestrate.client.utils import instantiate_client, is_local_dev
|
22
|
-
|
23
|
-
logger = logging.getLogger(__name__)
|
24
|
-
|
25
|
-
def get_valid_name(name: str) -> str:
|
26
|
-
|
27
|
-
return re.sub('\\W|^(?=\\d)','_', name)
|
28
|
-
|
29
|
-
def _get_json_schema_obj(parameter_name: str, type_def: type[BaseModel] | None) -> JsonSchemaObject:
|
30
|
-
if not type_def or type_def is None or type_def == inspect._empty:
|
31
|
-
return None
|
32
|
-
|
33
|
-
if issubclass(type_def, BaseModel):
|
34
|
-
input_schema_json = type_def.model_json_schema()
|
35
|
-
input_schema_json = dereference_refs(input_schema_json)
|
36
|
-
input_schema_obj = JsonSchemaObject(**input_schema_json)
|
37
|
-
if input_schema_obj.required is None:
|
38
|
-
input_schema_obj.required = []
|
39
|
-
return input_schema_obj
|
40
|
-
|
41
|
-
if isinstance(type_def, type):
|
42
|
-
schema_type = 'object'
|
43
|
-
if type_def == str:
|
44
|
-
schema_type = 'string'
|
45
|
-
elif type_def == int:
|
46
|
-
schema_type = 'integer'
|
47
|
-
elif type_def == float:
|
48
|
-
schema_type = 'number'
|
49
|
-
elif type_def == bool:
|
50
|
-
schema_type = 'boolean'
|
51
|
-
else:
|
52
|
-
schema_type = 'string'
|
53
|
-
# TODO: inspect the list item type and use that as the item type
|
54
|
-
return JsonSchemaObject(type=schema_type, properties={}, required=[])
|
55
|
-
|
56
|
-
raise ValueError(
|
57
|
-
f"Parameter {parameter_name} must be of type BaseModel or a primitive type.")
|
58
|
-
|
59
|
-
async def import_flow_model(model):
|
60
|
-
|
61
|
-
if not is_local_dev():
|
62
|
-
raise typer.BadParameter(f"Flow tools are only supported in local environment.")
|
63
|
-
|
64
|
-
if model is None:
|
65
|
-
raise typer.BadParameter(f"No model provided.")
|
66
|
-
|
67
|
-
tools = []
|
68
|
-
|
69
|
-
flow_id = model["spec"]["name"]
|
70
|
-
|
71
|
-
tempus_client: TempusClient = instantiate_client(TempusClient)
|
72
|
-
|
73
|
-
flow_open_api = tempus_client.create_update_flow_model(flow_id=flow_id, model=model)
|
74
|
-
|
75
|
-
logger.info(f"Flow model `{flow_id}` deployed successfully.")
|
76
|
-
|
77
|
-
connections_client = get_connections_client()
|
78
|
-
|
79
|
-
app_id = "flow_tools_app"
|
80
|
-
logger.info(f"Creating connection for flow model...")
|
81
|
-
existing_app = connections_client.get(app_id=app_id)
|
82
|
-
if not existing_app:
|
83
|
-
# logger.info(f"Creating app `{app_id}`.")
|
84
|
-
add_connection(app_id=app_id)
|
85
|
-
# else:
|
86
|
-
# logger.info(f"App `{app_id}` already exists.")
|
87
|
-
|
88
|
-
# logger.info(f"Creating connection for app...")
|
89
|
-
configure_connection(
|
90
|
-
type=ConnectionPreference.MEMBER,
|
91
|
-
app_id=app_id,
|
92
|
-
token=connections_client.api_key,
|
93
|
-
environment=ConnectionEnvironment.DRAFT,
|
94
|
-
security_scheme=ConnectionSecurityScheme.BEARER_TOKEN,
|
95
|
-
shared=False
|
96
|
-
)
|
97
|
-
|
98
|
-
set_credentials_connection(app_id=app_id, environment=ConnectionEnvironment.DRAFT, token=connections_client.api_key)
|
99
|
-
|
100
|
-
connections = connections_client.get_draft_by_app_id(app_id=app_id)
|
101
|
-
|
102
|
-
# logger.info(f"Connection `{connections.connection_id}` created successfully.")
|
103
|
-
|
104
|
-
tools = await create_openapi_json_tools_from_content(flow_open_api, connections.connection_id)
|
105
|
-
|
106
|
-
logger.info(f"Generating 'get_flow_status' tool spec...")
|
107
|
-
# Temporary code to deploy a status tool until we have full async support
|
108
|
-
with importlib.resources.open_text('ibm_watsonx_orchestrate.experimental.flow_builder.resources', 'flow_status.openapi.yml', encoding='utf-8') as f:
|
109
|
-
get_status_openapi = f.read()
|
110
|
-
|
111
|
-
get_flow_status_spec = yaml.safe_load(get_status_openapi)
|
112
|
-
tools.extend(await create_openapi_json_tools_from_content(get_flow_status_spec, connections.connection_id))
|
113
|
-
|
114
|
-
|
115
|
-
return tools
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{ibm_watsonx_orchestrate-1.5.0b1.dist-info → ibm_watsonx_orchestrate-1.6.0b0.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|