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 (thebijection SDK itself comes
with your project, see Install Bijection):
bijection.config.ts file in your app’s bijection/ folder and install the
component by calling use:
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
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.