UNPKG

@ai-sdk/react

Version:

[React](https://react.dev/) UI components for the [AI SDK](https://ai-sdk.dev/docs):

39 lines (33 loc) 934 B
import type { FlexibleSchema } from '@ai-sdk/provider-utils'; import { useObject, type UseObjectHelpers, type UseObjectOptions, } from './use-object'; export * from './use-chat'; export { Chat } from './chat.react'; export * from './use-completion'; export * from './use-object'; export * from './use-realtime'; export * from './mcp-apps'; // deprecated aliases // note: declared here (instead of export aliases) so that the `@deprecated` // tags are preserved in the bundled type declarations /** * @deprecated Use `useObject` instead. */ export const experimental_useObject = useObject; /** * @deprecated Use `UseObjectOptions` instead. */ export type Experimental_UseObjectOptions< SCHEMA extends FlexibleSchema, RESULT, > = UseObjectOptions<SCHEMA, RESULT>; /** * @deprecated Use `UseObjectHelpers` instead. */ export type Experimental_UseObjectHelpers<RESULT, INPUT> = UseObjectHelpers< RESULT, INPUT >;