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.2.tar.gz (9.2 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.2-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for websight-0.1.2.tar.gz
Algorithm Hash digest
SHA256 34274abb7e4994f09ff03a5944046568c0a04c4edc52778293c0790b1bb4d72e
MD5 a1557fc5d5c8c2683f70800c937ec8b5
BLAKE2b-256 a9897fdf6e787e19ae5151f2168ff9cedf68a3e971535523315045903ff6f5d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: websight-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ee55376605e4f6860b69fc3074bdec9aa811c84bd21f5119ab86f8245d050837
MD5 393d7bb04cf314ce8f3eedcc778e943c
BLAKE2b-256 15d79804343a7b2ee882c3c588aa97965750431ef6cca4f479cbd14c4cd5e02b

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