Get assistants list
Retrieves a list of assistants with or without filtering
- Parameters
- Advanced call ?
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
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
tip
Method at API documentation: List assistants
1C:Enterprise/OneScript code example
URL = "https://hut.openintegrations.dev/localai/";
Token = "12We34...";
Count = 2;
AdditionalParameters = New Structure("after,order", "asst_2", "desc");
Result = OPI_OpenAI.GetAssistantsList(URL, Token, Count, AdditionalParameters);
- Bash
- CMD/Bat
oint openai GetAssistantsList \
--url "https://hut.openintegrations.dev/localai/" \
--token "***" \
--limit 2 \
--options "{'after':'asst_2','order':'desc'}"
oint openai GetAssistantsList ^
--url "https://hut.openintegrations.dev/localai/" ^
--token "***" ^
--limit 2 ^
--options "{'after':'asst_2','order':'desc'}"
Result
{
"object": "list",
"data": [
{
"id": "asst_11",
"object": "assistant",
"created": 1757982420,
"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."
}
]
}