UNPKG

react-native-apple-llm

Version:

React Native bindings for Apple Intelligence FoundationModels

21 lines 909 B
import { FoundationModelsAvailability, LLMConfigOptions, LLMGenerateOptions } from "./types"; /** * Check if Foundation Models (Apple Intelligence) are enabled and available. * Returns a string status: 'available', 'appleIntelligenceNotEnabled', 'modelNotReady', 'unavailable'. */ export declare const isFoundationModelsEnabled: () => Promise<FoundationModelsAvailability>; /** * Set up the LLM session with optional instructions */ export declare const configureSession: (options: LLMConfigOptions) => Promise<boolean>; /** * Generate structured output using a JSON shape as the schema * Now only returns the final result; partials are not supported. */ export declare const generateStructuredOutput: (options: LLMGenerateOptions) => Promise<any>; /** * Reset the LLM session */ export declare const resetSession: () => Promise<boolean>; export * from "./types"; //# sourceMappingURL=index.d.ts.map