1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00
Files
OpenIntegrations/docs/en/md/OpenAI/Requests-processing/Get-assistant-message.mdx
Vitaly the Alpaca (bot) 3b29c1e324 Main build (Jenkins)
2025-06-25 13:17:23 +03:00

41 lines
948 B
Plaintext
Vendored

---
sidebar_position: 6
description: Get assistant message and other functions to work with OpenAI in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, OpenAI]
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get assistant message
Gets the structure of a message from the assistant for use in a request
`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
<br/>
:::tip
Is a shorthand for the function `GetMessageStructure`
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
```