Skip to main content

Computer Building Blocks for Meshagent

Project description

MeshAgent Computers

The meshagent.computers package defines abstractions for controlling browsers and operating systems and providing these abilities to agents.

ComputerAgent

The ComputerAgent in meshagent-computers extends the ChatBot with support for using browsers and computers. The computer agent will periodically send screenshots to participants on the thread using the MeshAgent messaging protocol, by sending a message of the type "computer_screen" and an attachment that contains a binary screenshot.

from meshagent.api import RequiredToolkit
from meshagent.openai import OpenAIResponsesAdapter
from meshagent.computers import ComputerAgent, BrowserbaseBrowser, Operator
from meshagent.api.services import ServiceHost

service = ServiceHost()

@service.path("/computeragent")
class BrowserbaseAgent(ComputerAgent):
    def __init__(self):
        super().__init__(
            name="meshagent.browser",
            title="browser agent",
            description="a task runner that can use a browser",
            requires=[RequiredToolkit(name="ui", tools=[])],
            llm_adapter=OpenAIResponsesAdapter(
                model="computer-use-preview",
                response_options={"reasoning": {"generate_summary": "concise"}, "truncation": "auto"},
            ),
            labels=["tasks", "computers"],
            computer_cls=BrowserbaseBrowser,
            operator_cls=Operator
        )

asyncio.run(service.run())

Learn more about MeshAgent on our website or check out the docs for additional examples!

Website: www.meshagent.com

Documentation: docs.meshagent.com


Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

meshagent_computers-0.4.3.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

meshagent_computers-0.4.3-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

Details for the file meshagent_computers-0.4.3.tar.gz.

File metadata

  • Download URL: meshagent_computers-0.4.3.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for meshagent_computers-0.4.3.tar.gz
Algorithm Hash digest
SHA256 d1c7707d809445c862834442f7b418be126e8342f2712a110b075c43db7a011e
MD5 df5f09e04f05e373cf26d1e122fd9a7b
BLAKE2b-256 b184d62e5c64a60aa1d2052a7a018ce43d540864132a2a7cbecc98e8c16bc5b2

See more details on using hashes here.

File details

Details for the file meshagent_computers-0.4.3-py3-none-any.whl.

File metadata

File hashes

Hashes for meshagent_computers-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e0936c716afc0f45c69c0adb30abd0308edd17389ede65f4cd32d77b393014b4
MD5 03b2e505b8c88b55cc280de648cfeb33
BLAKE2b-256 5eb69c48674c43be3272a4aaeb77b81083d0e0edc2c64c7684e3538177a89cf7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page