Hooks
useInput() is not a human-in-the-loop prompt. It describes the input that
caused the current render. See Inputs for its text, payload,
and source metadata.
Conditional configuration
Define a tool
Tools are TypeScript values with JSON Schema inputs and an asynchronous or synchronousrun function. Put the implementation beside the agent, for
example at opencomputer/agents/hello-world/tools/hacker-news.ts:
agent.ts:
Skills
Skills are reusable instruction bundles. Add a skill only when an agent needs one:skills/ directory are packaged with that agent and can
be loaded by the runtime when their description matches the task. Unlike
tools, skills provide instructions and supporting resources rather than a
callable JSON Schema function.
Models
Useprovider/model strings: