@@ -664,6 +664,68 @@ 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+ // Warning: (ae-forgotten-export) The symbol "LanguageModelMessageRole" needs to be exported by the entry point index.d.ts
703+ //
704+ // (undocumented)
705+ role: LanguageModelMessageRole ;
706+ }
707+
708+ // @public (undocumented)
709+ export interface LanguageModelMessageContent {
710+ // Warning: (ae-forgotten-export) The symbol "LanguageModelMessageContentValue" needs to be exported by the entry point index.d.ts
711+ //
712+ // (undocumented)
713+ content: LanguageModelMessageContentValue ;
714+ // (undocumented)
715+ type: LanguageModelMessageType ;
716+ }
717+
718+ // @public (undocumented)
719+ export interface LanguageModelMessageShorthand {
720+ // (undocumented)
721+ content: string ;
722+ // (undocumented)
723+ role: LanguageModelMessageRole ;
724+ }
725+
726+ // @public (undocumented)
727+ export type LanguageModelMessageType = ' text' | ' image' | ' audio' ;
728+
667729// @public
668730export enum Modality {
669731 AUDIO = " AUDIO" ,
@@ -722,8 +784,6 @@ export interface ObjectSchemaInterface extends SchemaInterface {
722784
723785// @public
724786export interface OnDeviceParams {
725- // Warning: (ae-forgotten-export) The symbol "LanguageModelCreateOptions" needs to be exported by the entry point index.d.ts
726- //
727787 // (undocumented)
728788 createOptions? : LanguageModelCreateOptions ;
729789 // Warning: (ae-forgotten-export) The symbol "LanguageModelPromptOptions" needs to be exported by the entry point index.d.ts
0 commit comments