@@ -664,6 +664,70 @@ export class IntegerSchema extends Schema {
664664 constructor (schemaParams ? : SchemaParams );
665665}
666666
667+ // @public (undocumented)
668+ export interface LanguageModelCreateCoreOptions {
669+ // (undocumented)
670+ expectedInputs? : LanguageModelExpectedInput [];
671+ // (undocumented)
672+ temperature? : number ;
673+ // (undocumented)
674+ topK? : number ;
675+ }
676+
677+ // @public (undocumented)
678+ export interface LanguageModelCreateOptions extends LanguageModelCreateCoreOptions {
679+ // (undocumented)
680+ initialPrompts? : LanguageModelInitialPrompts ;
681+ // (undocumented)
682+ signal? : AbortSignal ;
683+ // (undocumented)
684+ systemPrompt? : string ;
685+ }
686+
687+ // @public (undocumented)
688+ export interface LanguageModelExpectedInput {
689+ // (undocumented)
690+ languages? : string [];
691+ // (undocumented)
692+ type: LanguageModelMessageType ;
693+ }
694+
695+ // @public (undocumented)
696+ export type LanguageModelInitialPrompts = LanguageModelMessage [] | LanguageModelMessageShorthand [];
697+
698+ // @public (undocumented)
699+ export interface LanguageModelMessage {
700+ // (undocumented)
701+ content: LanguageModelMessageContent [];
702+ // (undocumented)
703+ role: LanguageModelMessageRole ;
704+ }
705+
706+ // @public (undocumented)
707+ export interface LanguageModelMessageContent {
708+ // (undocumented)
709+ content: LanguageModelMessageContentValue ;
710+ // (undocumented)
711+ type: LanguageModelMessageType ;
712+ }
713+
714+ // @public (undocumented)
715+ export type LanguageModelMessageContentValue = ImageBitmapSource | AudioBuffer | BufferSource | string ;
716+
717+ // @public (undocumented)
718+ export type LanguageModelMessageRole = ' system' | ' user' | ' assistant' ;
719+
720+ // @public (undocumented)
721+ export interface LanguageModelMessageShorthand {
722+ // (undocumented)
723+ content: string ;
724+ // (undocumented)
725+ role: LanguageModelMessageRole ;
726+ }
727+
728+ // @public (undocumented)
729+ export type LanguageModelMessageType = ' text' | ' image' | ' audio' ;
730+
667731// @public
668732export enum Modality {
669733 AUDIO = " AUDIO" ,
@@ -722,8 +786,6 @@ export interface ObjectSchemaInterface extends SchemaInterface {
722786
723787// @public
724788export interface OnDeviceParams {
725- // Warning: (ae-forgotten-export) The symbol "LanguageModelCreateOptions" needs to be exported by the entry point index.d.ts
726- //
727789 // (undocumented)
728790 createOptions? : LanguageModelCreateOptions ;
729791 // Warning: (ae-forgotten-export) The symbol "LanguageModelPromptOptions" needs to be exported by the entry point index.d.ts
0 commit comments