Skip to main content

Prerequisites

  • A Veryfront project from Create project.
  • An agents/ directory. For a minimal setup, run mkdir agents.

Define the agent

Create agents/assistant.ts:
The file name becomes the agent id unless the agent config sets another id.

Verify it worked

Confirm agents/assistant.ts exports the assistant agent. The next page uses that id in the API route. Next, expose the agent with Create API.