TomChatApi class abstract

Scripting access to the Tom extension's "Send to Chat" transport.

All methods throw StateError when the adapter has not been set.

Constructors

TomChatApi()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

sendToChat(String prompt) → Future<SendToChatResult>
Send prompt to the configured chat target and return the answer.
setAdapter(VSCodeAdapter adapter) → void
Set the adapter for API calls.