initialMessage | Initial message to display in the input field. | string | - |
placeholder | Placeholder text for the input field. | string | Type your message here... |
input | Function to handle input changes. | (prompt: string, config?: unknown) => Awaitable<void> (必填) | - |
onMessageChange | Function to handle message changes.
@param message - The new message. | (message: string) => void | - |
onSend | Function to handle the send action.
This function is called when the send button is clicked.
It receives an AbortController that can be used to abort the request.
@param controller - The AbortController to abort the request. | (controller: AbortController) => void | - |