Feature/Custom Assistant Builder (#3631)

* add custom assistant builder

* add tools to custom assistant

* add save assistant button
This commit is contained in:
Henry Heng
2024-12-06 22:11:17 +00:00
committed by GitHub
parent e02045285f
commit fe2ed26999
46 changed files with 3134 additions and 221 deletions
+12 -2
View File
@@ -8,7 +8,7 @@ const getAllAvailableAssistants = (credentialId) => client.get(`/openai-assistan
// Assistant
const createNewAssistant = (body) => client.post(`/assistants`, body)
const getAllAssistants = () => client.get('/assistants')
const getAllAssistants = (type) => client.get('/assistants?type=' + type)
const getSpecificAssistant = (id) => client.get(`/assistants/${id}`)
@@ -44,6 +44,12 @@ const uploadFilesToAssistant = (credentialId, formData) =>
headers: { 'Content-Type': 'multipart/form-data' }
})
const getChatModels = () => client.get('/assistants/components/chatmodels')
const getDocStores = () => client.get('/assistants/components/docstores')
const getTools = () => client.get('/assistants/components/tools')
const generateAssistantInstruction = (body) => client.post(`/assistants/generate/instruction`, body)
export default {
getAllAssistants,
getSpecificAssistant,
@@ -59,5 +65,9 @@ export default {
uploadFilesToAssistant,
uploadFilesToAssistantVectorStore,
deleteFilesFromAssistantVectorStore,
deleteAssistantVectorStore
deleteAssistantVectorStore,
getChatModels,
getDocStores,
getTools,
generateAssistantInstruction
}
+4 -1
View File
@@ -27,6 +27,8 @@ const getVectorStoreProviders = () => client.get('/document-store/components/vec
const getEmbeddingProviders = () => client.get('/document-store/components/embeddings')
const getRecordManagerProviders = () => client.get('/document-store/components/recordmanager')
const generateDocStoreToolDesc = (storeId, body) => client.post('/document-store/generate-tool-desc/' + storeId, body)
export default {
getAllDocumentStores,
getSpecificDocumentStore,
@@ -49,5 +51,6 @@ export default {
deleteVectorStoreDataFromStore,
updateVectorStoreConfig,
saveProcessingLoader,
refreshLoader
refreshLoader,
generateDocStoreToolDesc
}