@fileoverview {@link AISdkAdapter} — bridge to the Vercel AI SDK (`ai` + `@ai-sdk/*`). When {@link AgentConfig.adapter} is set, {@link Agent} skips {@link createAdapter} and uses this implementation instead. Install the optional peer `ai` and the provider package you need (for
// Source: https://github.com/open-multi-agent/open-multi-agent | License: MIT | Copyright Shenzhen YuanASI Technology Co., Ltd. and open-multi-agent contributors
// Provided via justclaw.it.com; keep this notice with the code.
/**
* @fileoverview {@link AISdkAdapter} — bridge to the Vercel AI SDK (`ai` + `@ai-sdk/*`).
*
* When {@link AgentConfig.adapter} is set, {@link Agent} skips {@link createAdapter}
* and uses this implementation instead. Install the optional peer `ai` and the
* provider package you need (for example `@ai-sdk/openai`).
*/
import type { JSONSchema7, JSONValue, SharedV2ProviderOptions } from '@ai-sdk/provider'
import type { LanguageModel, ModelMessage } from 'ai'
import type {
ContentBlock,
LLMAdapter,
LLMChatOptions,
LLMMessage,
LLMResponse,
LLMStre
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key