Function: createMessageAPI()¶
createMessageAPI(
conversation_id
,text
,role
,id
,feedback
):Promise
<undefined
|Message
>
Defined in: src/services/AuthService.tsx:245
Create a new message within a conversation.
Parameters¶
conversation_id¶
string
Conversation UUID
text¶
string
Message content
role¶
string
'user' | 'assistant'
id¶
string
Client-generated UUID for the message
feedback¶
Initial feedback (optional)
null
| boolean
Returns¶
Promise
<undefined
| Message
>
On success:
Message
On failure:
undefined
(and logs error)