computer-use-ootb-internal 0.0.123__py3-none-any.whl → 0.0.124__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.
- computer_use_ootb_internal/app_teachmode.py +1 -1
- computer_use_ootb_internal/computer_use_demo/tools/base.py +1 -24
- {computer_use_ootb_internal-0.0.123.dist-info → computer_use_ootb_internal-0.0.124.dist-info}/METADATA +1 -1
- {computer_use_ootb_internal-0.0.123.dist-info → computer_use_ootb_internal-0.0.124.dist-info}/RECORD +6 -6
- {computer_use_ootb_internal-0.0.123.dist-info → computer_use_ootb_internal-0.0.124.dist-info}/WHEEL +0 -0
- {computer_use_ootb_internal-0.0.123.dist-info → computer_use_ootb_internal-0.0.124.dist-info}/entry_points.txt +0 -0
@@ -437,7 +437,7 @@ def process_input():
|
|
437
437
|
|
438
438
|
except Exception as e:
|
439
439
|
# Handle any exceptions in the processing loop
|
440
|
-
error_msg = f"Error during task processing: {
|
440
|
+
error_msg = f"Error during task processing: {e}"
|
441
441
|
print(error_msg)
|
442
442
|
error_message = {"role": "assistant", "content": error_msg, "type": "error", "action_type": ""}
|
443
443
|
shared_state.message_queue.append(error_message)
|
@@ -28,32 +28,9 @@ class ToolResult:
|
|
28
28
|
error: str | None = None
|
29
29
|
base64_image: str | None = None
|
30
30
|
system: str | None = None
|
31
|
+
type: str | None = "action"
|
31
32
|
action_base_type: str | None = None
|
32
33
|
|
33
|
-
def __bool__(self):
|
34
|
-
return any(getattr(self, field.name) for field in fields(self))
|
35
|
-
|
36
|
-
def __add__(self, other: "ToolResult"):
|
37
|
-
def combine_fields(
|
38
|
-
field: str | None, other_field: str | None, concatenate: bool = True
|
39
|
-
):
|
40
|
-
if field and other_field:
|
41
|
-
if concatenate:
|
42
|
-
return field + other_field
|
43
|
-
raise ValueError("Cannot combine tool results")
|
44
|
-
return field or other_field
|
45
|
-
|
46
|
-
return ToolResult(
|
47
|
-
output=combine_fields(self.output, other.output),
|
48
|
-
error=combine_fields(self.error, other.error),
|
49
|
-
base64_image=combine_fields(self.base64_image, other.base64_image, False),
|
50
|
-
system=combine_fields(self.system, other.system),
|
51
|
-
)
|
52
|
-
|
53
|
-
def replace(self, **kwargs):
|
54
|
-
"""Returns a new ToolResult with the given fields replaced."""
|
55
|
-
return replace(self, **kwargs)
|
56
|
-
|
57
34
|
|
58
35
|
class CLIResult(ToolResult):
|
59
36
|
"""A ToolResult that can be rendered as a CLI output."""
|
{computer_use_ootb_internal-0.0.123.dist-info → computer_use_ootb_internal-0.0.124.dist-info}/RECORD
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
computer_use_ootb_internal/README.md,sha256=FxpW95lyub2iX73ZDfK6ML7SdEKg060H5I6Grub7li4,31
|
2
2
|
computer_use_ootb_internal/__init__.py,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4TvPL-rYUUGg,1
|
3
|
-
computer_use_ootb_internal/app_teachmode.py,sha256=
|
3
|
+
computer_use_ootb_internal/app_teachmode.py,sha256=WEGaAOV3MLb_HMG7p7btjATij7KnpnTr-Mkm9xLt86M,22801
|
4
4
|
computer_use_ootb_internal/dependency_check.py,sha256=y8RMEP6RXQzTgU1MS_1piBLtz4J-Hfn9RjUZg59dyvo,1333
|
5
5
|
computer_use_ootb_internal/guard_service.py,sha256=lpYts48r91F1Kb1syZzlAshe2ZUuijsrKfBFJ9kmQI8,43599
|
6
6
|
computer_use_ootb_internal/requirements-lite.txt,sha256=5DAHomz4A_P2BmTIXNkNqkHbnIF0AyZ4_1XAlb1LaYs,290
|
@@ -22,7 +22,7 @@ computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_litellm.py,
|
|
22
22
|
computer_use_ootb_internal/computer_use_demo/gui_agent/llm_utils/run_llm.py,sha256=fxC-7lg8TLAi9f69zs5y5Pwga8Y5mY7Yfc5NNZNRJgM,1558
|
23
23
|
computer_use_ootb_internal/computer_use_demo/tools/__init__.py,sha256=Pj8_5L4_PPQK298X4NV3KMbP-84t-bM0pbjEeb5_SJQ,343
|
24
24
|
computer_use_ootb_internal/computer_use_demo/tools/aws_request.py,sha256=12UVzeA2PmpZhpy2Pt5Vh48-_q1e8ZjVQux6r3pbAcw,2629
|
25
|
-
computer_use_ootb_internal/computer_use_demo/tools/base.py,sha256=
|
25
|
+
computer_use_ootb_internal/computer_use_demo/tools/base.py,sha256=XKG8UpjTvG3-PlSq2FqPvadPxzcBUgDyockbn7p9x7s,1224
|
26
26
|
computer_use_ootb_internal/computer_use_demo/tools/bash.py,sha256=rHetQ80_v-TTi-1oxIA7ncFEwJxFTh8FJCErIoZbGeY,4236
|
27
27
|
computer_use_ootb_internal/computer_use_demo/tools/collection.py,sha256=8RzHLobL44_Jjt8ltXS6I8XJlEAQOfc75dmnDUaHE-8,922
|
28
28
|
computer_use_ootb_internal/computer_use_demo/tools/colorful_text.py,sha256=cvlmnhAImDTwoRRwhT5au7mNFhfAD7ZfeoDEVdVzDKw,892
|
@@ -33,7 +33,7 @@ computer_use_ootb_internal/computer_use_demo/tools/run.py,sha256=xhXdnBK1di9muaO
|
|
33
33
|
computer_use_ootb_internal/computer_use_demo/tools/screen_capture.py,sha256=L8qfvtUkPPQGt92N-2Zfw5ZTDBzLsDps39uMnX3_uSA,6857
|
34
34
|
computer_use_ootb_internal/preparation/__init__.py,sha256=AgtGHcBpiTkxJjF0xwcs3yyQ6SyUvhL3G0vD2XO-zJw,63
|
35
35
|
computer_use_ootb_internal/preparation/star_rail_prepare.py,sha256=G0A5JQpQUyt9ir5-t0l3p-Y7ZwRDo8TH-Oa5yTDqPWA,2713
|
36
|
-
computer_use_ootb_internal-0.0.
|
37
|
-
computer_use_ootb_internal-0.0.
|
38
|
-
computer_use_ootb_internal-0.0.
|
39
|
-
computer_use_ootb_internal-0.0.
|
36
|
+
computer_use_ootb_internal-0.0.124.dist-info/METADATA,sha256=6928-baZp3w7Nox-Bqz7MCw9bWpCc7mXm-Chljz2k-M,910
|
37
|
+
computer_use_ootb_internal-0.0.124.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
38
|
+
computer_use_ootb_internal-0.0.124.dist-info/entry_points.txt,sha256=-AbmawU7IRQuDZihgVMVDrFoY4E6rnXYOUB-5vSeBKs,93
|
39
|
+
computer_use_ootb_internal-0.0.124.dist-info/RECORD,,
|
{computer_use_ootb_internal-0.0.123.dist-info → computer_use_ootb_internal-0.0.124.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|