Assistants
An assistant represents an AI agent that can perform tasks, answer questions, and interact with users.
Assistants can be customized with models, instructions, functions, MCP servers.
Endpoints
Manage your assistants with these REST endpoints.
Assistant type
StorageProviderType
Possible values for StorageProviderType are:
OPENAI - Uses OpenAI Assistants API for storage
AZURE_OPENAI - Uses Azure OpenAI Assistants API for storage
AZURE_AGENTS - Uses Azure AI Agents for storage
OPENAI_RESPONSES - Uses OpenAI Chat Completions API (stores responses locally)
AZURE_OPENAI_RESPONSES - Uses Azure OpenAI Chat Completions API (stores responses locally)
SUPERINTERFACE_CLOUD - Stores all data in Superinterface Cloud
Storage provider type defines where the assistant's thread data and messages are stored.
Assistants API providers (OPENAI, AZURE_OPENAI, AZURE_AGENTS):
Superinterface stores only references to threads/agents
Thread messages are stored in the provider's Assistants API
Supports advanced features like file search and code interpreter
Responses providers (OPENAI_RESPONSES, AZURE_OPENAI_RESPONSES):
Thread messages are stored in the provider's Responses API
Similar to Assistants API but lighter weight
No assistant creation in external provider needed
Superinterface Cloud (SUPERINTERFACE_CLOUD):
All data stored in Superinterface Cloud
No external provider integration required
Example assistant
const assistant = {
id: '00cfe680-fee5-49b9-b386-6a7097eb8497',
storageProviderType: 'OPENAI',
storageProviderAssistantId: 'asst_xwQudIsRPVWBOkanyBRWWBn2',
modelProviderId: '01afd9c6-519f-4336-a39e-e739143f0a5c',
model: 'gpt-4.1',
name: 'AI builder',
description: 'Builds applications',
instructions: 'Help user build apps.',
codeInterpreterEnabled: true,
fileSearchEnabled: false,
createdAt: '2024-01-15T10:30:00Z',
updatedAt: '2024-01-15T10:30:00Z',
}
PublicAssistant type
PublicAssistant is returned by endpoints that require a public API key. It only contains fields safe for client-side use.
Example PublicAssistant
const publicAssistant = {
id: '00cfe680-fee5-49b9-b386-6a7097eb8497',
name: 'AI builder',
description: 'Builds applications',
theme: {
accentColor: 'blue',
grayColor: 'gray',
appearance: 'light',
radius: 'medium',
scaling: '100%',
panelBackground: 'solid',
},
avatar: {
type: 'ICON',
imageAvatar: null,
iconAvatar: {
name: 'LIGHTNING_BOLT',
},
},
}