Interactive chat component that connects to LLM Execution Tools for AI-powered conversations. Internally manages messages, participants, and task progress while using the provided LLM tools to generate responses.
const llmTools = new MockedEchoLlmExecutionTools({ isVerbose: true });
<LlmChat
llmTools={llmTools}
placeholderMessageContent="Ask the AI anything..."
/>
const llmTools = new OpenAiExecutionTools({ apiKey: 'your-key' });
<LlmChat
llmTools={llmTools}
onChange={(messages, participants) => {
console.log('Chat updated:', messages.length, 'messages');
}}
placeholderMessageContent="Chat with OpenAI..."
/>
const llmTools = new MockedEchoLlmExecutionTools();
<LlmChat
llmTools={llmTools}
onReset={async () => {
console.log('Chat reset');
}}
placeholderMessageContent="Chat with reset button..."
/>
<LlmChat
llmTools={llmTools}
style={{ height: '500px' }}
>
<div className="p-2 bg-blue-100">
<h3>AI Assistant Chat</h3>
<p>Powered by {llmTools.title}</p>
</div>
</LlmChat>
llmTools
requiredonChange
onReset
placeholderMessageContent
"Write a message"
defaultMessage
children
className
style
isVoiceRecognitionButtonShown
false
voiceLanguage
"en-US"
isVoiceCalling
false
isExperimental
false
isSaveButtonEnabled
false
exportHeaderMarkdown
onUseTemplate
voiceCallProps