Protected Optional_Protected_Protected Optional_Protected_Protected_Protected_Protected_Protected_Protected_Protected ReadonlyagentProtected ReadonlyaiProtected ReadonlyapplicationProtected ReadonlyargsProtectedavailableAvailable generic capabilities from all sources.
ProtectedcapabilitiesProtected ReadonlycapabilitiesProtectedcapabilityTracks the default enabled state for each capability. This is initialized from the agent's capabilities and used to display the initial chip state.
Protected ReadonlychangeProtected ReadonlychangeProtected ReadonlychatProtectedchatProtectedchatProtected ReadonlychatProtectedchatProtectedchatProtectedchatProtected ReadonlychatProtected ReadonlychatProtected ReadonlyconfigurationProtected ReadonlycontextProtected ReadonlycontextProtected ReadonlycontextProtecteddisabledGeneric capabilities that are already used in the agent's prompt (should be disabled).
Protected ReadonlyeditorProtected ReadonlyeditorProtectededitorProtectedfileProtectedforceProtected ReadonlygenericProtectedgenericTracks user's generic capability selections from the dropdowns.
ProtectedhandleProtectedhandleProtectedhandleProtectedheightProtected ReadonlyhistoryProtected ReadonlyhoverProtectedisProtected ReadonlykeybindingProtected ReadonlylabelProtectednavigationReadonlynodeGet the DOM node owned by the widget.
ProtectednodeReadonlyonProtected ReadonlyonReadonlyonProtected ReadonlyonReadonlyonProtectedonProtectedonReadonlyonProtected ReadonlyonReadonlyonProtected ReadonlyonProtected ReadonlyopenerProtectedpendingDisposables for pending image registrations, keyed by short ID. These are cleared after the message is sent.
Protected ReadonlypendingProtectedquerySuppresses capability updates while a query is in flight to prevent race conditions
ProtectedreceivingProtected ReadonlyresourceProtected ReadonlyresourcesProtected OptionalscrollProtected OptionalscrollProtected ReadonlytoProtected ReadonlytoProtectedupdateProtecteduserTracks user's explicit capability overrides for the current chat input session. Only contains capabilities the user has explicitly changed from their defaults. These overrides are not persisted but reset when the receiving agent changes or a new chat is started. Or restored when an existing chat session can provide a previous capability override from the last request.
Protected ReadonlyvalidationProtected ReadonlyvariableStatic ReadonlyCONTEXT_StaticIDThe dataset for the widget's DOM node.
A signal emitted when the widget is disposed.
Get the method for hiding the widget.
Get the id of the widget's DOM node.
Set the id of the widget's DOM node.
Test whether the widget's node is attached to the DOM.
Test whether the widget has been disposed.
Test whether the widget is visible.
A widget is visible when it is attached to the DOM, is not explicitly hidden, and has no explicitly hidden ancestors.
Since 2.7.0, this does not rely on the Widget.Flag.IsVisible flag. It recursively checks the visibility of all parent widgets.
Get the parent of the widget.
Set the parent of the widget.
Children are typically added to a widget by using a layout, which means user code will not normally set the parent widget directly.
The widget will be automatically removed from its old parent.
This is a no-op if there is no effective parent change.
The title object for the widget.
The title object is used by some container widgets when displaying the widget alongside some title, such as a tab panel or side bar.
Since not all widgets will use the title, it is created on demand.
The owner property of the title is set to this widget.
ProtectedaddProtectedaddProtectedaddOptionaluseCapture: booleanProtectedaddProtectedaddCreate an iterator over the widget's children.
A new iterator over the children of the widget.
The widget must have a populated layout in order to have children.
If a layout is not installed, the returned iterator will be empty.
Clear the given widget flag.
This will not typically be called directly by user code.
Since 2.7.0, Widget.Flag.IsVisible is deprecated. It will be removed in a future version.
Clear all pending image attachments. Called after a message is sent.
Test whether a widget is a descendant of this widget.
The descendant widget of interest.
true if the widget is a descendant, false otherwise.
ProtecteddeleteDelete a context element by index.
ProtecteddisableProtectedfocusFocus the chat session by setting it as active with focus.
Get all variables to be sent with the request. Note: Image variables in text use short IDs that get resolved via the pending image registry.
ProtectedgetProtectedgetProtectedgetGet a meaningful base name for an image variable. For dropped files (with wsRelativePath), use the workspace-relative path (like file variables). For pasted images, use "pasted_image".
ProtectedgetProtectedgetExtracts capability overrides from the last request in the chat model. Used to restore user's capability choices when switching sessions or on reload.
ProtectedgetExtracts generic capability selections from the last request in the chat model. Used to restore user's selections when switching sessions or on reload.
ProtectedgetProtectedgetProtectedgetGet the scope URI used for registering pending images. Uses the chat model ID for scoping, not the editor URI.
ProtectedgetProtectedhandleProtectedhandleProtectedhandleProtectedhandleOptionalmode: stringProtectedhandleTest whether the widget's DOM node has the given class name.
The class name of interest.
true if the node has the class, false otherwise.
Hide the widget and make it hidden to its parent widget.
This causes the isHidden property to be true.
If the widget is explicitly hidden, this is a no-op.
ProtectedinitProtectedinitializeProtectedisCheck if the specific chat session is currently focused. Returns true only if the chat widget is focused AND viewing the same session.
ProtectednotifyProtectedonA message handler invoked on an 'activate-request' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on an 'after-attach' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on an 'after-detach' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on an 'after-hide' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on an 'after-show' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on a 'before-attach' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on a 'before-detach' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on a 'before-hide' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on a 'before-show' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on a 'child-added' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on a 'child-removed' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on a 'close-request' message.
The default implementation unparents or detaches the widget.
ProtectedonProtectedonProtectedonProtectedonA message handler invoked on a 'fit-request' message.
The default implementation of this handler is a no-op.
ProtectedonProtectedonA message handler invoked on a 'resize' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on an 'update-request' message.
The default implementation of this handler is a no-op.
ProtectedopenProtectedrefreshRefreshes capabilities for the current receiving agent. Called when prompt fragments change to ensure capabilities reflect the latest template.
Register a pending image attachment with a short ID.
The short ID that can be used in the text.
ProtectedrenderRender the React widget in the DOM.
ProtectedresolveResolves the agent to use for the given parsed request. If a session is provided, uses session-based logic including pinned agents. Otherwise, delegates to ChatAgentService.
Optionalsession: ChatSessionProtectedscheduleSet the given widget flag.
This will not typically be called directly by user code.
Since 2.7.0, Widget.Flag.IsVisible is deprecated. It will be removed in a future version.
ProtectedsetupShow the widget and make it visible to its parent widget.
This causes the isHidden property to be false.
If the widget is not explicitly hidden, this is a no-op.
Test whether the given widget flag is set.
This will not typically be called directly by user code.
Since 2.7.0, Widget.Flag.IsVisible is deprecated. It will be removed in a future version.
Toggle a class name on the widget's DOM node.
The class name to toggle on the node.
Optionalforce: booleanWhether to force add the class (true) or force
remove the class (false). If not provided, the presence of
the class will be toggled from its current state.
true if the class is now present, false otherwise.
The class name must not contain whitespace.
ProtectedupdateUpdates the receiving agent state and triggers re-render if the agent changed.
ProtectedupdateProtectedupdateProtectedupdateOverride to detect receiving agent without requiring a chat session. This implementation bypasses the session-based pinned agent logic since Ask AI dialogs are ephemeral and don't support agent pinning.
React input widget for Ask AI functionality, extending the AIChatInputWidget.