meshagent-computers 0.0.30__py3-none-any.whl → 0.0.31__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.

Potentially problematic release.


This version of meshagent-computers might be problematic. Click here for more details.

@@ -5,6 +5,7 @@ from meshagent.agents.chat import ChatBot, ChatThreadContext
5
5
  from meshagent.api import RequiredToolkit, RemoteParticipant
6
6
  from meshagent.api.messaging import RawOutputs
7
7
  from meshagent.tools.toolkit import register_toolkit_factory
8
+ from meshagent.openai.tools.responses_adapter import OpenAIResponsesTool
8
9
 
9
10
  from typing import Optional, Type, Callable
10
11
  import base64
@@ -19,35 +20,25 @@ def make_computer_toolkit(*, operator_cls: Type[Operator], computer_cls: Type[Co
19
20
  computer = computer_cls()
20
21
  started = False
21
22
 
22
- class ComputerTool(Tool):
23
- def __init__(self, *, operator: Operator, computer: Computer, title = "computer_call", description = "handle computer calls from computer use preview", rules = [], thumbnail_url = None, defs = None):
23
+ class ComputerTool(OpenAIResponsesTool):
24
+ def __init__(self, *, operator: Operator, computer: Computer, title = "computer_call", description = "handle computer calls from computer use preview", rules = [], thumbnail_url = None):
24
25
  super().__init__(
25
26
  name="computer_call",
26
27
  # TODO: give a correct schema
27
- input_schema={
28
- "additionalProperties" : False,
29
- "type" : "object",
30
- "required" : [],
31
- "properties" : {}
32
- },
33
28
  title=title,
34
29
  description=description,
35
30
  rules=rules,
36
- thumbnail_url=thumbnail_url,
37
- defs=defs,
38
-
31
+ thumbnail_url=thumbnail_url,
39
32
  )
40
33
  self.computer = computer
41
34
 
42
-
43
- @property
44
- def options(self):
35
+ def get_open_ai_tool_definition(self):
45
36
  return {
46
- "type": "computer-preview",
37
+ "type": "computer_use_preview",
47
38
  "display_width": self.computer.dimensions[0],
48
39
  "display_height": self.computer.dimensions[1],
49
40
  "environment": self.computer.environment,
50
- }
41
+ }
51
42
 
52
43
  async def execute(self, context: ToolContext, *, arguments):
53
44
 
@@ -1 +1 @@
1
- __version__ = "0.0.30"
1
+ __version__ = "0.0.31"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: meshagent-computers
3
- Version: 0.0.30
3
+ Version: 0.0.31
4
4
  Summary: Computer Building Blocks for Meshagent
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Documentation, https://docs.meshagent.com
@@ -11,10 +11,10 @@ Description-Content-Type: text/markdown
11
11
  License-File: LICENSE
12
12
  Requires-Dist: pytest~=8.3.5
13
13
  Requires-Dist: pytest-asyncio~=0.26.0
14
- Requires-Dist: openai~=1.70.0
15
- Requires-Dist: meshagent-api~=0.0.30
16
- Requires-Dist: meshagent-agents~=0.0.30
17
- Requires-Dist: meshagent-tools~=0.0.30
14
+ Requires-Dist: openai~=1.86.0
15
+ Requires-Dist: meshagent-api~=0.0.31
16
+ Requires-Dist: meshagent-agents~=0.0.31
17
+ Requires-Dist: meshagent-tools~=0.0.31
18
18
  Requires-Dist: playwright~=1.51.0
19
19
  Requires-Dist: browserbase~=1.2.0
20
20
  Requires-Dist: scrapybara~=2.4.7
@@ -1,5 +1,5 @@
1
1
  meshagent/computers/__init__.py,sha256=PEzgkWE_sB6TrBA8crwWM7QaNPYWJisCKT81tk6pepQ,321
2
- meshagent/computers/agent.py,sha256=euhZhswO7lZjPIcP7eTRLKbb64kXKXCfMndT5gySkmM,8437
2
+ meshagent/computers/agent.py,sha256=XNmAfkt5p67PJAXGXW3gJQHn4OkzbHJ5Bzk9j3EoqJc,8288
3
3
  meshagent/computers/base_playwright.py,sha256=NhQoOzWmekBmobQ2kvN7w4I3hZeyMIuMKI2eHbG1_mk,6017
4
4
  meshagent/computers/browserbase.py,sha256=ZT-ZDndkBD-MHD3UjxXpwpx7-_VCkkanjW1rIJr7-98,8161
5
5
  meshagent/computers/computer.py,sha256=465GKDV3cJgzp1SB5B0xzLoftMKU0AxAuBVrZ9drBBc,1072
@@ -8,9 +8,9 @@ meshagent/computers/local_playwright.py,sha256=W7VhxIYEXn2BO3wZZVsc-hH-CU7NTssxF
8
8
  meshagent/computers/operator.py,sha256=JTyGvoPnKOqUDaZv58p_2n5Q6m6dm8V214VMIhVEu08,2913
9
9
  meshagent/computers/scrapybara.py,sha256=IoeV02QcBDkpW05A1NH-lc4jnBEmZ4SPsRo3nnXC3UE,7502
10
10
  meshagent/computers/utils.py,sha256=N7Ltjx3HfhJ-CYectNodGsBtddk6mSTHkCH0meqHT70,2080
11
- meshagent/computers/version.py,sha256=Ji8g_yOyFfpoV8jQQPNpvlINEqW1-F23R31bqwShK9o,22
12
- meshagent_computers-0.0.30.dist-info/licenses/LICENSE,sha256=eTt0SPW-sVNdkZe9PS_S8WfCIyLjRXRl7sUBWdlteFg,10254
13
- meshagent_computers-0.0.30.dist-info/METADATA,sha256=SYYGMl44bZ6sg8O9Ybm0fjGOyru7QVyeXrYVtIUmgL4,740
14
- meshagent_computers-0.0.30.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
- meshagent_computers-0.0.30.dist-info/top_level.txt,sha256=GlcXnHtRP6m7zlG3Df04M35OsHtNXy_DY09oFwWrH74,10
16
- meshagent_computers-0.0.30.dist-info/RECORD,,
11
+ meshagent/computers/version.py,sha256=JkmidIUbQFwwAhFKnz2l-8dxIwGERIblSCC4CXcpX08,22
12
+ meshagent_computers-0.0.31.dist-info/licenses/LICENSE,sha256=eTt0SPW-sVNdkZe9PS_S8WfCIyLjRXRl7sUBWdlteFg,10254
13
+ meshagent_computers-0.0.31.dist-info/METADATA,sha256=YEdMpRfCos1GEm7AKfFKrjKhB_0GmK3CjYVq9Clpb64,740
14
+ meshagent_computers-0.0.31.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
+ meshagent_computers-0.0.31.dist-info/top_level.txt,sha256=GlcXnHtRP6m7zlG3Df04M35OsHtNXy_DY09oFwWrH74,10
16
+ meshagent_computers-0.0.31.dist-info/RECORD,,