ai
Version:
AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.
12 lines (10 loc) • 328 B
text/typescript
import type { InferUITools, UIMessage } from '../ui/ui-messages';
import type { InferAgentTools } from './infer-agent-tools';
/**
* Infer the UI message type of an agent.
*/
export type InferAgentUIMessage<AGENT, MESSAGE_METADATA = unknown> = UIMessage<
MESSAGE_METADATA,
never,
InferUITools<InferAgentTools<AGENT>>
>;