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 = "12We34...";

AssistantID = "asst_2";

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