Assistants
Invoke Assistant
Get completion for a stored assistant. This endpoint invokes the assistant and returns its response. It uses chat completions on the backend and maintains OpenAI-compatible format. Assistants are stateful AI agents that can leverage various model providers and tools, access persistent conversation threads, and execute multiple tools in parallel.
POST
Note: The response includes an x-langtail-thread-id
header containing the
unique identifier for the thread associated with this response.
Headers
Your Langtail API Key
Example:
"<LANGTAIL_API_KEY>"
Path Parameters
Your workspace URL slug
Example:
"workspace"
Your project URL slug
Example:
"project"
Your assistant URL slug
Example:
"assistant"
Your environment URL slug
Example:
"production"
Body
application/json
Response
200
application/json
Chat completion response from OpenAI - see https://platform.openai.com/docs/api-reference/chat/object for more details. Note: The response includes an 'x-langtail-thread-id' header containing the unique identifier for the thread associated with this response.
The response is of type object
.