Skip to content

ComputerTool

type ComputerTool<Context, TComputer> = object;

Exposes a computer to the model as a tool to be called

The result of the tool

Type Parameter Default type Description

Context

UnknownContext

The context of the tool

TComputer extends Computer

Computer

computer: ComputerConfig<Context, TComputer>;

The computer to use.


name: "computer_use_preview" | string & object;

The name of the tool.


type: "computer";