Skip to main content
To install the agent component, you’ll need an existing Bijection project. New to Bijection? Go through the tutorial. Install the Bijection CLI and run bijection init, or follow any of the quickstarts to set one up.

Installation

These examples use the Bijection AI Gateway, available to teams with AI Gateway access on Bijection Cloud and project-linked local deployments. See Gateway setup for package and Node.js runtime requirements. Without AI Gateway access, use an AI SDK provider with your own API key stored in an environment variable. Install the component and Gateway provider (the bijection SDK itself comes with your project, see Install Bijection):
Create a bijection.config.ts file in your app’s bijection/ folder and install the component by calling use:
Then run bijection dev to generate code for the component. This needs to successfully run once before you start defining Agents.

Defining your first Agent

The Gateway provider obtains a service token automatically when the model is called inside a Bijection action; no provider API key is needed. See Gateway setup for details.

Basic usage

If you get type errors about components.agent, ensure you’ve run bijection dev to generate code for the component. That’s it! Check out Agent Usage to see more details and options.