Step 3 / 5

Swap the provider

Change one line to switch from mock to OpenAI, Anthropic, or Gemini.

Adapters are pure contracts. Swap the import, keep the rest of your app identical.

import { openai } from '@agentskit/adapters/openai'
export const adapter = openai({ model: 'gpt-4o-mini' })

The UI does not need to know which provider is behind it.