Skip to main content

Retrieve assistant

Retrieves information about an assistant by ID

Function RetrieveAssistant(Val URL, Val Token, Val AssistantID, Val AdditionalHeaders = "") Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringOpenAI server URL
Token--tokenStringOpenAI authorization token
AssistantID--idStringAssistant ID
AdditionalHeaders--headersMap Of KeyAndValueAdditional request headers, if necessary

Returns: Map Of KeyAndValue - Processing result


tip

Method at API documentation: Retrieve assistant


1C:Enterprise/OneScript code example
    URL   = "https://hut.openintegrations.dev/localai/";
Token = "12We...";

AssistantID = "asst_64";

Result = OPI_OpenAI.RetrieveAssistant(URL, Token, AssistantID);
    oint openai RetrieveAssistant \
--url "https://hut.openintegrations.dev/localai/" \
--token "***" \
--id "asst_61"
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."
}