Get assistants list
Retrieves a list of assistants with or without filtering
Function GetAssistantsList(Val URL, Val Token, Val Count = 20, Val AdditionalParameters = "", Val AdditionalHeaders = "") Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
URL | --url | String | ✔ | OpenAI server URL |
Token | --token | String | ✔ | OpenAI authorization token |
Count | --limit | Number | ✖ | Maximum number of assistants returned |
AdditionalParameters | --options | Structure Of KeyAndValue | ✖ | Additional request parameters, if necessary |
AdditionalHeaders | --headers | Map Of KeyAndValue | ✖ | Additional request headers, if necessary |
Returns: Map Of KeyAndValue - Processing result
tip
Method at API documentation: List assistants
1C:Enterprise/OneScript code example
URL = "https://api.athenaeum.digital:1122/";
Token = "sk-or-vv-c5884ebe9f13fb143194bb07ecb...";
Count = 2;
AdditionalParameters = New Structure("after,order", "asst_2", "desc");
Result = OPI_OpenAI.GetAssistantsList(URL, Token, Count, AdditionalParameters);
- Bash
- CMD/Bat
# JSON data can also be passed as a path to a .json file
oint openai GetAssistantsList \
--url "https://api.athenaeum.digital:1122/" \
--token "***" \
--limit 2 \
--options "{'after':'asst_2','order':'desc'}"
:: JSON data can also be passed as a path to a .json file
oint openai GetAssistantsList ^
--url "https://api.athenaeum.digital:1122/" ^
--token "***" ^
--limit 2 ^
--options "{'after':'asst_2','order':'desc'}"
Result
{
"object": "list",
"data": [
{
"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."
}
]
}