api.agents

Opções · máquina

machine: ConnectedStorage

Tres tipi sono accettati, e due di essi necessita di voi per fornire le operazion de file.

obrigatório3 kindsdecides the tool set
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

machine.typeIsNecessita de filesballterminale
filesystemUn computernonsisi
phoneTelefone o tablet del visitantesìSolo con shellnunca
object · cloud gestitUn nublado de workspacesìSolo con shellSolo con terminals

Qualquer altra cosa è negat con machine_required: una base di dati non è un luogo un agente può lavorare.

const pc = await api.storage.get();                 // this computer
const phone = await api.storage.device({ deviceId }); // a visitor's phone
const space = await api.storage.create({ service: "object", label: "Workspace" });
pc = api.storage.get()                                   # this computer
phone = api.storage.device(device_id=device_id)          # a visitor's phone
space = api.storage.create(service="object", label="Workspace")

Modela il prompt sistema

L'agente è dito in cui sta operando — questo computer e sua plataforma, un telefono cujos files sono in suo browser, o un Linux cloud workspace con POSIX percamini. Comet that mal is onerous: un agent che crede che è in un'altra platform scrie comandi che tutti fail per un motivo.

L'espazion de lavoro

Su un computer è il SDK doptenzion del directory home del utente, e workspace accetta solo che caminho — qualsiasi altro è rifiutat con workspace_not_allowed. In un telefono o un nubarre spazio di workspace la radice è quel chesya il tuo ponte de files presenta.

Il stoccaggio predefinit non è probabilmente una macchina

Il predefinit d'un conto è il suo stoccaggio de objetos propri

api.storage.get() senza argumente che, non il computer a cui siede. Filtrare list() sul tipo === "filesystem" e compare machineId quando si intende «este macchina».

L'agente opera sul dispositivo in cui sei

Non sul «default del conto», e non su una copia. Issè la regola che il design intero pose su: un agent lege il disco che è, e non è caricato per esso per guardare.