MCPcopy Create free account
hub / github.com/SpartanJ/eepp / addChat

Method addChat

src/tools/ecode/plugins/aiassistant/chatui.cpp:3021–3029  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3019}
3020
3021void LLMChatUI::addChat( LLMChat::Role role, const std::string& conversation ) {
3022 UIWidget* chat = addChatUI( role );
3023 auto* editor = chat->findByClass<UICodeEditor>( "data_ui" );
3024 editor->getDocument().textInput( String::fromUtf8( conversation ) );
3025 editor->setCursorVisible( false );
3026 editor->setAllowSelectingTextFromGutter( false );
3027 bindCmds( editor, false );
3028 resizeToFit( editor );
3029}
3030
3031void LLMChatUI::addChat( LLMChat::Role role, const String& conversation ) {
3032 UIWidget* chat = addChatUI( role );

Callers

nothing calls this directly

Calls 4

textInputMethod · 0.80
getDocumentMethod · 0.80
setCursorVisibleMethod · 0.80

Tested by

no test coverage detected