react-native-apple-llm
Version:
React Native bindings for Apple Intelligence FoundationModels
28 lines (22 loc) • 567 B
text/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";