ibm-watsonx-orchestrate 1.12.0b0__py3-none-any.whl → 1.13.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 +2 -1
- ibm_watsonx_orchestrate/agent_builder/agents/types.py +5 -5
- ibm_watsonx_orchestrate/agent_builder/connections/types.py +34 -3
- ibm_watsonx_orchestrate/agent_builder/knowledge_bases/types.py +11 -2
- ibm_watsonx_orchestrate/agent_builder/models/types.py +18 -1
- ibm_watsonx_orchestrate/agent_builder/toolkits/base_toolkit.py +1 -1
- ibm_watsonx_orchestrate/agent_builder/toolkits/types.py +14 -2
- ibm_watsonx_orchestrate/agent_builder/tools/__init__.py +1 -1
- ibm_watsonx_orchestrate/agent_builder/tools/base_tool.py +1 -1
- ibm_watsonx_orchestrate/agent_builder/tools/langflow_tool.py +61 -1
- ibm_watsonx_orchestrate/agent_builder/tools/openapi_tool.py +6 -0
- ibm_watsonx_orchestrate/agent_builder/tools/types.py +21 -3
- ibm_watsonx_orchestrate/agent_builder/voice_configurations/__init__.py +1 -1
- ibm_watsonx_orchestrate/agent_builder/voice_configurations/types.py +11 -0
- ibm_watsonx_orchestrate/cli/commands/agents/agents_controller.py +29 -53
- ibm_watsonx_orchestrate/cli/commands/connections/connections_command.py +2 -2
- ibm_watsonx_orchestrate/cli/commands/connections/connections_controller.py +56 -30
- ibm_watsonx_orchestrate/cli/commands/copilot/copilot_command.py +25 -2
- ibm_watsonx_orchestrate/cli/commands/copilot/copilot_controller.py +249 -14
- ibm_watsonx_orchestrate/cli/commands/copilot/copilot_server_controller.py +4 -4
- ibm_watsonx_orchestrate/cli/commands/environment/environment_command.py +5 -1
- ibm_watsonx_orchestrate/cli/commands/environment/environment_controller.py +6 -3
- ibm_watsonx_orchestrate/cli/commands/evaluations/evaluations_command.py +3 -2
- ibm_watsonx_orchestrate/cli/commands/evaluations/evaluations_controller.py +1 -1
- ibm_watsonx_orchestrate/cli/commands/knowledge_bases/knowledge_bases_controller.py +45 -16
- ibm_watsonx_orchestrate/cli/commands/models/model_provider_mapper.py +23 -4
- ibm_watsonx_orchestrate/cli/commands/models/models_command.py +2 -2
- ibm_watsonx_orchestrate/cli/commands/models/models_controller.py +29 -10
- ibm_watsonx_orchestrate/cli/commands/partners/offering/partners_offering_controller.py +21 -4
- ibm_watsonx_orchestrate/cli/commands/partners/offering/types.py +7 -15
- ibm_watsonx_orchestrate/cli/commands/partners/partners_command.py +1 -1
- ibm_watsonx_orchestrate/cli/commands/server/server_command.py +30 -20
- ibm_watsonx_orchestrate/cli/commands/toolkit/toolkit_command.py +2 -2
- ibm_watsonx_orchestrate/cli/commands/toolkit/toolkit_controller.py +139 -27
- ibm_watsonx_orchestrate/cli/commands/tools/tools_command.py +2 -2
- ibm_watsonx_orchestrate/cli/commands/tools/tools_controller.py +79 -36
- ibm_watsonx_orchestrate/cli/commands/voice_configurations/voice_configurations_controller.py +23 -11
- ibm_watsonx_orchestrate/cli/common.py +26 -0
- ibm_watsonx_orchestrate/cli/config.py +33 -2
- ibm_watsonx_orchestrate/client/connections/connections_client.py +1 -14
- ibm_watsonx_orchestrate/client/copilot/cpe/copilot_cpe_client.py +34 -1
- ibm_watsonx_orchestrate/client/knowledge_bases/knowledge_base_client.py +6 -2
- ibm_watsonx_orchestrate/client/model_policies/model_policies_client.py +1 -1
- ibm_watsonx_orchestrate/client/models/models_client.py +1 -1
- ibm_watsonx_orchestrate/client/threads/threads_client.py +34 -0
- ibm_watsonx_orchestrate/client/utils.py +29 -7
- ibm_watsonx_orchestrate/docker/compose-lite.yml +58 -8
- ibm_watsonx_orchestrate/docker/default.env +26 -17
- ibm_watsonx_orchestrate/flow_builder/flows/decorators.py +10 -2
- ibm_watsonx_orchestrate/flow_builder/flows/flow.py +90 -16
- ibm_watsonx_orchestrate/flow_builder/node.py +14 -2
- ibm_watsonx_orchestrate/flow_builder/types.py +57 -3
- ibm_watsonx_orchestrate/langflow/__init__.py +0 -0
- ibm_watsonx_orchestrate/langflow/langflow_utils.py +195 -0
- ibm_watsonx_orchestrate/langflow/lfx_deps.py +84 -0
- ibm_watsonx_orchestrate/utils/async_helpers.py +31 -0
- ibm_watsonx_orchestrate/utils/docker_utils.py +1177 -33
- ibm_watsonx_orchestrate/utils/environment.py +165 -20
- ibm_watsonx_orchestrate/utils/exceptions.py +1 -1
- ibm_watsonx_orchestrate/utils/tokens.py +51 -0
- ibm_watsonx_orchestrate/utils/utils.py +63 -4
- {ibm_watsonx_orchestrate-1.12.0b0.dist-info → ibm_watsonx_orchestrate-1.13.0b0.dist-info}/METADATA +2 -2
- {ibm_watsonx_orchestrate-1.12.0b0.dist-info → ibm_watsonx_orchestrate-1.13.0b0.dist-info}/RECORD +66 -59
- {ibm_watsonx_orchestrate-1.12.0b0.dist-info → ibm_watsonx_orchestrate-1.13.0b0.dist-info}/WHEEL +0 -0
- {ibm_watsonx_orchestrate-1.12.0b0.dist-info → ibm_watsonx_orchestrate-1.13.0b0.dist-info}/entry_points.txt +0 -0
- {ibm_watsonx_orchestrate-1.12.0b0.dist-info → ibm_watsonx_orchestrate-1.13.0b0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,84 @@
|
|
1
|
+
LFX_DEPENDENCIES = [
|
2
|
+
"aiofile",
|
3
|
+
"aiofiles",
|
4
|
+
"annotated-types",
|
5
|
+
"anyio",
|
6
|
+
"asyncer",
|
7
|
+
"cachetools",
|
8
|
+
"caio",
|
9
|
+
"certifi",
|
10
|
+
"chardet",
|
11
|
+
"charset-normalizer",
|
12
|
+
"click",
|
13
|
+
"defusedxml",
|
14
|
+
"docstring_parser",
|
15
|
+
"emoji",
|
16
|
+
"fastapi",
|
17
|
+
"h11",
|
18
|
+
"h2",
|
19
|
+
"hpack",
|
20
|
+
"httpcore",
|
21
|
+
"httpx",
|
22
|
+
"hyperframe",
|
23
|
+
"idna",
|
24
|
+
"json_repair",
|
25
|
+
"jsonpatch",
|
26
|
+
"jsonpointer",
|
27
|
+
"langchain",
|
28
|
+
"langchain-core",
|
29
|
+
"langchain-text-splitters",
|
30
|
+
"langsmith",
|
31
|
+
"lfx-nightly",
|
32
|
+
"loguru",
|
33
|
+
"markdown-it-py",
|
34
|
+
"mdurl",
|
35
|
+
"nanoid",
|
36
|
+
"networkx",
|
37
|
+
"numpy",
|
38
|
+
"orjson",
|
39
|
+
"packaging",
|
40
|
+
"pandas",
|
41
|
+
"passlib",
|
42
|
+
"pillow",
|
43
|
+
"platformdirs",
|
44
|
+
"pydantic",
|
45
|
+
"pydantic-settings",
|
46
|
+
"pydantic_core",
|
47
|
+
"Pygments",
|
48
|
+
"python-dateutil",
|
49
|
+
"python-dotenv",
|
50
|
+
"pytz",
|
51
|
+
"PyYAML",
|
52
|
+
"requests",
|
53
|
+
"requests-toolbelt",
|
54
|
+
"rich",
|
55
|
+
"shellingham",
|
56
|
+
"six",
|
57
|
+
"sniffio",
|
58
|
+
"SQLAlchemy",
|
59
|
+
"starlette",
|
60
|
+
"structlog",
|
61
|
+
"tenacity",
|
62
|
+
"tomli",
|
63
|
+
"typer",
|
64
|
+
"typing-inspection",
|
65
|
+
"typing_extensions",
|
66
|
+
"tzdata",
|
67
|
+
"urllib3",
|
68
|
+
"uvicorn",
|
69
|
+
"validators",
|
70
|
+
"zstandard",
|
71
|
+
"langflow",
|
72
|
+
"langchain_openai",
|
73
|
+
"langchain_core",
|
74
|
+
"langchain_text_splitters",
|
75
|
+
"collections",
|
76
|
+
"typing",
|
77
|
+
"datetime",
|
78
|
+
"zoneinfo",
|
79
|
+
"or",
|
80
|
+
"re",
|
81
|
+
"os",
|
82
|
+
"copy",
|
83
|
+
"json"
|
84
|
+
]
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import asyncio
|
2
|
+
import threading
|
3
|
+
from concurrent.futures import ThreadPoolExecutor
|
4
|
+
from typing import Any, Coroutine, TypeVar, Optional
|
5
|
+
|
6
|
+
T = TypeVar("T")
|
7
|
+
|
8
|
+
|
9
|
+
def run_coroutine_sync(coroutine: Coroutine[Any, Any, T], timeout: Optional[float] = None) -> T:
|
10
|
+
def run_in_new_loop():
|
11
|
+
new_loop = asyncio.new_event_loop()
|
12
|
+
asyncio.set_event_loop(new_loop)
|
13
|
+
try:
|
14
|
+
return new_loop.run_until_complete(coroutine)
|
15
|
+
finally:
|
16
|
+
new_loop.close()
|
17
|
+
|
18
|
+
try:
|
19
|
+
loop = asyncio.get_running_loop()
|
20
|
+
except RuntimeError:
|
21
|
+
return asyncio.run(coroutine)
|
22
|
+
|
23
|
+
if threading.current_thread() is threading.main_thread():
|
24
|
+
if not loop.is_running():
|
25
|
+
return loop.run_until_complete(coroutine)
|
26
|
+
else:
|
27
|
+
with ThreadPoolExecutor() as pool:
|
28
|
+
future = pool.submit(run_in_new_loop)
|
29
|
+
return future.result(timeout=timeout)
|
30
|
+
else:
|
31
|
+
return asyncio.run_coroutine_threadsafe(coroutine, loop).result()
|