Skip to content

computerTool

function computerTool<Context, TComputer>(options): ComputerTool<Context, TComputer>;

Exposes a computer to the agent as a tool to be called.

Type Parameter Default type

Context

unknown

TComputer extends object

object

Parameter Type Description

options

{ computer: ComputerConfig<Context, TComputer>; name?: string; }

Additional configuration for the computer tool like specifying the location of your agent

options.computer

ComputerConfig<Context, TComputer>

options.name?

string

ComputerTool<Context, TComputer>

a computer tool definition