tools

package
v2.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 38 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const Name = "computer_use"

Name of the tool, which its view in the chat names too

Variables

This section is empty.

Functions

func Register

func Register(registry *tools.Registry, stores *sessions.Registry, driver *cua.Driver, checks *approvals.Approvals)

Types

type Control

type Control struct {
	Index int    `json:"index"`
	Role  string `json:"role"`
	Label string `json:"label"`
}

An element of a capture: its number, what it is and its label

type Screen

type Screen struct {
	Mode      string    `json:"mode"`
	App       string    `json:"app"`
	Title     string    `json:"window_title"`
	Width     int       `json:"width"`
	Height    int       `json:"height"`
	Total     int       `json:"total_elements"`
	Elements  []Control `json:"elements"`
	Unchanged bool      `json:"screen_unchanged"`
}

A capture as the chat shows it: the window, its size, the elements listed of all there are and whether the screen was unchanged

func ReadSummary

func ReadSummary(text string) (Screen, bool)

The capture a result's summary text tells of, as the model that sees the screenshot reads it in place of the fields; false for a text that holds none

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL