ModelContext

ModelContext interface on navigator.modelContext.

Functions

Link copied to clipboard
open external fun dispatchEvent(event: Event): Boolean
Link copied to clipboard
Link copied to clipboard
external fun registerToolAsync(tool: ModelContextTool, options: ModelContextRegisterToolOptions? = definedExternally): Promise<Void>
Link copied to clipboard
external fun <T : Event> when(type: EventType<T>, options: ObservableEventListenerOptions?): Observable<T>