Get assistant message
Gets the structure of a message from the assistant for use in a request
- Parameters
- Advanced call ?
Function GetAssistantMessage(Val Text) ExportReturn GetMessageStructure("assistant", Text);EndFunction
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Text | --text | String | ✔ | Message text |
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.GetAssistantMessage("What is 1C:Enterprise?");
- Bash
- CMD/Bat
oint openai GetAssistantMessage \
--text "What is 1C:Enterprise?"
oint openai GetAssistantMessage ^
--text "What is 1C:Enterprise?"
Result
"{\r\n \"role\": \"assistant\",\r\n \"content\": \"What is 1C:Enterprise?\"\r\n}"