Class: ChatManager

ChatManager()

Enhanced Chat Component with MCP Integration Handles both standard and streaming chat with MCP tool usage indicators

Constructor

new ChatManager()

Source:

Classes

ChatManager

Methods

addMessage()

Add a message to the chat

.

Add a message to the chat

Source:

autoResizeTextarea()

Auto-resize textarea

.

Auto-resize textarea

Source:

bindEventListeners()

Bind event listeners

.

Bind event listeners

Source:

createMCPToolIndicators()

Create MCP tool usage indicators

.

Create MCP tool usage indicators

Source:

createSearchResultsDisplay()

Create search results display

.

Create search results display

Source:

formatMessageContent()

Format message content

.

Format message content

Source:

getConversationId()

Get or create conversation ID

.

Get or create conversation ID

Source:

(async) handleChatSubmit()

Handle chat form submission

.

Handle chat form submission

Source:

handleInputKeydown()

Handle input keydown (Ctrl+Enter to submit)

.

Handle input keydown (Ctrl+Enter to submit)

Source:

handleProviderChange()

Handle provider selection change

.

Handle provider selection change

Source:

(async) handleStandardChat()

Handle standard (non-streaming) chat

.

Handle standard (non-streaming) chat

Source:

(async) handleStreamingChat()

Handle streaming chat with Server-Sent Events

.

Handle streaming chat with Server-Sent Events

Source:

initializeDOMElements()

Initialize DOM element references

.

Initialize DOM element references

Source:

(async) loadProviders()

Load available chat providers from API

.

Load available chat providers from API

Source:

markStreamingComplete()

Mark streaming as complete

.

Mark streaming as complete

Source:

populateProviderDropdowns()

Populate provider dropdown menus

.

Populate provider dropdown menus

Source:

removeMessage()

Remove a message

.

Remove a message

Source:

setFormState()

Set form state (enabled/disabled)

.

Set form state (enabled/disabled)

Source:

showError()

Show error message

.

Show error message

Source:

updateMCPStatus()

Update MCP integration status

.

Update MCP integration status

Source:

updateStreamingStatus()

Update streaming status

.

Update streaming status

Source: