Get user message
Gets the structure of a message from the user for use in a request
- Parameters
- Advanced call ?
Function GetUserMessage(Val Text, Val Name = "") ExportReturn GetMessageStructure("user", Text, Name);EndFunction
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Text | --text | String | ✔ | Message text |
| Name | --name | String | ✖ | Name of participant in conversation |
Returns
Structure Of KeyAndValue - Fields structure
| Parameter | Description |
|---|---|
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
tip
Is a shorthand for the function GetMessageStructure
1C:Enterprise/OneScript code example
Result = OPI_OpenAI.GetUserMessage("What is 1C:Enterprise?", "Vitaly");
- Bash
- CMD/Bat
oint openai GetUserMessage \
--text "What is 1C:Enterprise?" \
--name "Vitaly"
oint openai GetUserMessage ^
--text "What is 1C:Enterprise?" ^
--name "Vitaly"
Result
"{\r\n \"role\": \"user\",\r\n \"content\": \"What is 1C:Enterprise?\",\r\n \"name\": \"Vitaly\"\r\n}"