Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Impressum ModelContext.webidl  Sprache: unbekannt

 
Spracherkennung für: .webidl vermutete Sprache: Lisp {Lisp[42] Masm[42] ABAP[36]} [Methode: maximale Elemente, drei Dimensionen]

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * The origin of this IDL file is
 * https://webmachinelearning.github.io/webmcp/
 *
 */


callback ToolExecuteCallback = Promise<any> (object input, ModelContextClient client);

dictionary ToolAnnotations {
  boolean readOnlyHint;
};

dictionary ModelContextTool {
  required DOMString name;
  required DOMString description;
  object inputSchema;
  required ToolExecuteCallback execute;
  ToolAnnotations annotations;
};

[GenerateConversionToJS]
dictionary ModelContextToolDefinition {
  required DOMString name;
  required DOMString description;
  object? inputSchema;
  ToolAnnotations annotations;
};

dictionary InvokeToolOptions {
  AbortSignal signal;
};

[Exposed=Window, SecureContext, Pref="dom.modelcontext.enabled"]
interface ModelContext {
  [Throws] undefined registerTool(ModelContextTool tool);
  [Throws] undefined unregisterTool(DOMString toolName);

  [Pref="dom.modelcontext.testing.enabled", Throws]
  sequence<ModelContextTool> getTools();

  [Pref="dom.modelcontext.testing.enabled", Throws]
  Promise<any> invokeTool(DOMString toolName,
                          optional any input,
                          optional InvokeToolOptions options = {});
};


[Exposed=Window, SecureContext, Pref="dom.modelcontext.enabled"]
interface ModelContextClient {
  [Throws] Promise<any> requestUserInteraction(UserInteractionCallback callback);
};

callback UserInteractionCallback = Promise<any> ();

[Seitenstruktur0.11Druckenetwas mehr zur Ethik2026-10-20]

                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

letze Version des Elbe Quellennavigators


letze Version des Demonstrationsprogramms Goedel
letze Version des Bille Abgleichprogramms
Version

Jenseits des Üblichen ....

Besucher

Besucher

Statistik
#Sources=1,189,142
#Domains=945,869