Skip to main content

A Vision-First Architecture for Robust Web Agents

Project description

Websight

Vision first browser agents based on Websight-7B, a custom 7B parameter model.

Installation

pip install websight
# or
uv add websight

Quickstart

Call the model directly on an image:

from websight import websight_call

action = websight_call(
    prompt="Click the Login button",
    history=[],  # prior (reasoning, action) pairs if you have them
    image_base64="data:image/png;base64,<...>",
)
print(action.action)  # e.g., "click"
print(action.args)    # e.g., {"x": "175", "y": "514"}

Reference

  • websight.websight_call
def websight_call(
    prompt: str,
    history: list[tuple[str, str]],
    image_base64: str,
    console: rich.console.Console | None = None,
    max_new_tokens: int = 1000,
) -> Action

Calls the Websight VLM with a screenshot and instruction, returning a structured Action.

  • websight.Action
class Action(BaseModel):
    action: str                # e.g. "click", "drag", "type", "scroll", ...
    args: dict[str, str]       # e.g. {"x": "175", "y": "514"}
    reasoning: str             # model rationale
  • websight.Agent
from websight.agent import Agent

agent = Agent(show_browser=False)
result = agent.run("Open https://example.com and search for 'websight'", max_iterations=10)

Basic Agent loop using Playwright: takes a screenshot, calls websight_call, parses and executes the predicted action, and repeats until it sees finished(...).

Project details


Download files

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

Source Distribution

websight-0.1.1.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

websight-0.1.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file websight-0.1.1.tar.gz.

File metadata

  • Download URL: websight-0.1.1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.4

File hashes

Hashes for websight-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6e92a8387cb7eae254433018bf89f9a4168a0dc6e68c757227e51bf093b96b8e
MD5 2014da64c93f9239083933be63319059
BLAKE2b-256 8bb41e1ffa79f9de3707aa97a430f530258468b089eb81ac5930876db2b9d4af

See more details on using hashes here.

File details

Details for the file websight-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: websight-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.4

File hashes

Hashes for websight-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fd5a9a8b820ddc8a4008b2896c0a91bf5c33ab7abf8b65541d5223ed4be2cc91
MD5 7711f17bdc648e043b01c7b2759bd74d
BLAKE2b-256 0eb704e6487a093fa9d99859cc933bba0db20e24d01516c201ee626febb66c63

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