@graphty/graphty-element / ai / InputAdapter
Interface: InputAdapter ​
Defined in: graphty-element/src/ai/input/types.ts:28
Interface for input adapters that can provide text input to the AI system.
Properties ​
isActive ​
readonlyisActive:boolean
Defined in: graphty-element/src/ai/input/types.ts:32
Whether this adapter is currently active (listening)
isSupported ​
readonlyisSupported:boolean
Defined in: graphty-element/src/ai/input/types.ts:34
Whether this adapter is supported in the current environment
type ​
readonlytype:"text"|"voice"
Defined in: graphty-element/src/ai/input/types.ts:30
Type of input this adapter handles
Methods ​
dispose() ​
dispose():
void
Defined in: graphty-element/src/ai/input/types.ts:48
Clean up resources and remove all callbacks.
Returns ​
void
onInput() ​
onInput(
callback):void
Defined in: graphty-element/src/ai/input/types.ts:46
Register a callback for input events.
Parameters ​
callback ​
Function called when input is received
Returns ​
void
start() ​
start(
options?):void
Defined in: graphty-element/src/ai/input/types.ts:39
Start listening for input.
Parameters ​
options? ​
Optional configuration for the input session
Returns ​
void
stop() ​
stop():
void
Defined in: graphty-element/src/ai/input/types.ts:41
Stop listening for input.
Returns ​
void