pycoze 0.1.69__tar.gz → 0.1.70__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pycoze-0.1.69 → pycoze-0.1.70}/PKG-INFO +1 -1
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/ui/base.py +7 -7
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze.egg-info/PKG-INFO +1 -1
- {pycoze-0.1.69 → pycoze-0.1.70}/setup.py +1 -1
- {pycoze-0.1.69 → pycoze-0.1.70}/LICENSE +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/README.md +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/__init__.py +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/access/__init__.py +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/access/tool_for_bot.py +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/bot/__init__.py +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/bot/agent/__init__.py +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/bot/agent/agent.py +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/bot/agent/agent_types/__init__.py +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/bot/agent/agent_types/openai_func_call_agent.py +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/bot/agent/agent_types/react_agent.py +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/bot/agent/agent_types/react_prompt.py +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/bot/agent/assistant.py +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/bot/agent/chat.py +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/bot/bot.py +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/gpu/__init__.py +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/gpu/gpu_reserve.py +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/module.py +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/ui/__init__.py +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/ui/color.py +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/ui/typ.py +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/ui/ui_def.py +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/utils/__init__.py +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/utils/arg.py +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze/utils/text_or_file.py +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze.egg-info/SOURCES.txt +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze.egg-info/dependency_links.txt +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/pycoze.egg-info/top_level.txt +0 -0
- {pycoze-0.1.69 → pycoze-0.1.70}/setup.cfg +0 -0
@@ -18,16 +18,16 @@ def get_ui():
|
|
18
18
|
return {}
|
19
19
|
stack = inspect.stack()
|
20
20
|
stack_files = list(reversed([s.filename.replace("\\", "/") for s in stack]))
|
21
|
-
|
21
|
+
match_ui_file = None
|
22
22
|
for f in stack_files:
|
23
|
-
for
|
23
|
+
for v in params["uiData"]["uiRecord"]:
|
24
24
|
if v == f:
|
25
|
-
|
25
|
+
match_ui_file = v
|
26
26
|
break
|
27
|
-
if
|
27
|
+
if match_ui_file is not None:
|
28
28
|
break
|
29
29
|
|
30
|
-
if
|
30
|
+
if match_ui_file is None:
|
31
31
|
raise Exception("uiData not found for file")
|
32
32
|
|
33
33
|
by = params["uiData"]["by"]
|
@@ -35,11 +35,11 @@ def get_ui():
|
|
35
35
|
for i in range(10):
|
36
36
|
try:
|
37
37
|
if by == "file":
|
38
|
-
json_file = params["uiData"][
|
38
|
+
json_file = params["uiData"][match_ui_file]
|
39
39
|
with open(json_file, "r", encoding="utf-8") as f:
|
40
40
|
return json.load(f)
|
41
41
|
else:
|
42
|
-
assert by == "
|
42
|
+
assert by == "workflow"
|
43
43
|
workflow_file = params["uiData"]["workflowFile"]
|
44
44
|
node_id = params["uiData"]["nodeId"]
|
45
45
|
with open(workflow_file, "r", encoding="utf-8") as f:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|