Retrieve assistant
Retrieves information about an assistant by ID
Function RetrieveAssistant(Val URL, Val Token, Val AssistantID, Val AdditionalHeaders = "") Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
URL | --url | String | ✔ | OpenAI server URL |
Token | --token | String | ✔ | OpenAI authorization token |
AssistantID | --id | String | ✔ | Assistant ID |
AdditionalHeaders | --headers | Map Of KeyAndValue | ✖ | Additional request headers, if necessary |
Returns: Map Of KeyAndValue - Processing result
tip
Method at API documentation: Retrieve assistant
1C:Enterprise/OneScript code example
URL = "https://api.athenaeum.digital:1122/";
Token = "sk-or-vv-c5884ebe9f13fb143194bb07ecb...";
AssistantID = "asst_13";
Result = OPI_OpenAI.RetrieveAssistant(URL, Token, AssistantID);
- Bash
- CMD/Bat
oint openai RetrieveAssistant \
--url "https://api.athenaeum.digital:1122/" \
--token "***" \
--id "asst_3"
oint openai RetrieveAssistant ^
--url "https://api.athenaeum.digital:1122/" ^
--token "***" ^
--id "asst_3"
Result
{
"id": "asst_19",
"object": "assistant",
"created": 1750098851,
"model": "smolvlm-256m-instruct",
"name": "Math tutor",
"instructions": "You are a personal math tutor. When asked a question, write and run Python code to answer the question."
}