react-native-apple-llm
Version:
React Native bindings for Apple Intelligence FoundationModels
20 lines • 614 B
TypeScript
type StructureProperty = {
type?: "string" | "integer" | "number" | "boolean" | "object";
description?: string;
enum?: string[];
properties?: StructureSchema;
};
type StructureField = StructureProperty;
export type StructureSchema = {
[key: string]: StructureField;
};
export interface LLMConfigOptions {
instructions?: string;
}
export interface LLMGenerateOptions {
structure: StructureSchema;
prompt: string;
}
export type FoundationModelsAvailability = "available" | "appleIntelligenceNotEnabled" | "modelNotReady" | "unavailable";
export {};
//# sourceMappingURL=types.d.ts.map