agentskit.js
Providers

langchain

Wrap any LangChain.js `ChatModel` as an AgentsKit adapter.

import { langchain } from '@agentskit/adapters'
import { ChatAnthropic } from '@langchain/anthropic'

const adapter = langchain({
  model: new ChatAnthropic({ model: 'claude-sonnet-4-6' }),
})

#Options

OptionTypeDefault
modelChatModelrequired

#Why langchain

  • Reuse LangChain model instances in AgentsKit runtimes.
  • Migrate incrementally β€” swap one layer at a time.

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page