@next-api-sdk/llm-sdk 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/contracts.json +3486 -0
- package/dist/cjs/api/llm/agent/baseGeneralAgent.js +17 -0
- package/dist/cjs/api/llm/agent/baseGeneralAgent.js.map +1 -0
- package/dist/cjs/api/llm/agent/index.js +28 -0
- package/dist/cjs/api/llm/agent/index.js.map +1 -0
- package/dist/cjs/api/llm/agent/webSearchAgent.js +17 -0
- package/dist/cjs/api/llm/agent/webSearchAgent.js.map +1 -0
- package/dist/cjs/api/llm/aiops_base/deleteEmbedding.js +14 -0
- package/dist/cjs/api/llm/aiops_base/deleteEmbedding.js.map +1 -0
- package/dist/cjs/api/llm/aiops_base/deleteKnowledge.js +14 -0
- package/dist/cjs/api/llm/aiops_base/deleteKnowledge.js.map +1 -0
- package/dist/cjs/api/llm/aiops_base/importDocumentEmbeddings.js +14 -0
- package/dist/cjs/api/llm/aiops_base/importDocumentEmbeddings.js.map +1 -0
- package/dist/cjs/api/llm/aiops_base/index.js +94 -0
- package/dist/cjs/api/llm/aiops_base/index.js.map +1 -0
- package/dist/cjs/api/llm/aiops_base/llmChatServiceV1.js +16 -0
- package/dist/cjs/api/llm/aiops_base/llmChatServiceV1.js.map +1 -0
- package/dist/cjs/api/llm/aiops_base/openaiChat.js +16 -0
- package/dist/cjs/api/llm/aiops_base/openaiChat.js.map +1 -0
- package/dist/cjs/api/llm/aiops_base/searchEmbedding.js +14 -0
- package/dist/cjs/api/llm/aiops_base/searchEmbedding.js.map +1 -0
- package/dist/cjs/api/llm/aiops_base/upsertDocument.js +14 -0
- package/dist/cjs/api/llm/aiops_base/upsertDocument.js.map +1 -0
- package/dist/cjs/api/llm/aiops_base/upsertWithDocId.js +14 -0
- package/dist/cjs/api/llm/aiops_base/upsertWithDocId.js.map +1 -0
- package/dist/cjs/api/llm/aiops_memory/createMemoryEnv.js +14 -0
- package/dist/cjs/api/llm/aiops_memory/createMemoryEnv.js.map +1 -0
- package/dist/cjs/api/llm/aiops_memory/deleteLlmMemoryWithConversationId.js +14 -0
- package/dist/cjs/api/llm/aiops_memory/deleteLlmMemoryWithConversationId.js.map +1 -0
- package/dist/cjs/api/llm/aiops_memory/deleteLlmMemoryWithConversationIdAndKey.js +14 -0
- package/dist/cjs/api/llm/aiops_memory/deleteLlmMemoryWithConversationIdAndKey.js.map +1 -0
- package/dist/cjs/api/llm/aiops_memory/deleteMemoryEnv.js +14 -0
- package/dist/cjs/api/llm/aiops_memory/deleteMemoryEnv.js.map +1 -0
- package/dist/cjs/api/llm/aiops_memory/getLlmMemoryWithConversationId.js +14 -0
- package/dist/cjs/api/llm/aiops_memory/getLlmMemoryWithConversationId.js.map +1 -0
- package/dist/cjs/api/llm/aiops_memory/getLlmMemoryWithConversationIdAndKey.js +14 -0
- package/dist/cjs/api/llm/aiops_memory/getLlmMemoryWithConversationIdAndKey.js.map +1 -0
- package/dist/cjs/api/llm/aiops_memory/index.js +105 -0
- package/dist/cjs/api/llm/aiops_memory/index.js.map +1 -0
- package/dist/cjs/api/llm/aiops_memory/searchMemoryEnv.js +14 -0
- package/dist/cjs/api/llm/aiops_memory/searchMemoryEnv.js.map +1 -0
- package/dist/cjs/api/llm/aiops_memory/updateMemoryEnv.js +14 -0
- package/dist/cjs/api/llm/aiops_memory/updateMemoryEnv.js.map +1 -0
- package/dist/cjs/api/llm/aiops_memory/upsertLlmMemoryWithConversationIdAndKey.js +14 -0
- package/dist/cjs/api/llm/aiops_memory/upsertLlmMemoryWithConversationIdAndKey.js.map +1 -0
- package/dist/cjs/api/llm/aiops_prompt/index.js +39 -0
- package/dist/cjs/api/llm/aiops_prompt/index.js.map +1 -0
- package/dist/cjs/api/llm/aiops_prompt/llmDeletePrompt.js +14 -0
- package/dist/cjs/api/llm/aiops_prompt/llmDeletePrompt.js.map +1 -0
- package/dist/cjs/api/llm/aiops_prompt/llmGetPrompt.js +14 -0
- package/dist/cjs/api/llm/aiops_prompt/llmGetPrompt.js.map +1 -0
- package/dist/cjs/api/llm/aiops_prompt/llmUpsertPrompt.js +14 -0
- package/dist/cjs/api/llm/aiops_prompt/llmUpsertPrompt.js.map +1 -0
- package/dist/cjs/api/llm/aiops_rag/addSynonymsWords.js +14 -0
- package/dist/cjs/api/llm/aiops_rag/addSynonymsWords.js.map +1 -0
- package/dist/cjs/api/llm/aiops_rag/importConfluenceEmbedding.js +14 -0
- package/dist/cjs/api/llm/aiops_rag/importConfluenceEmbedding.js.map +1 -0
- package/dist/cjs/api/llm/aiops_rag/importUrlEmbedding.js +14 -0
- package/dist/cjs/api/llm/aiops_rag/importUrlEmbedding.js.map +1 -0
- package/dist/cjs/api/llm/aiops_rag/index.js +50 -0
- package/dist/cjs/api/llm/aiops_rag/index.js.map +1 -0
- package/dist/cjs/api/llm/aiops_rag/upsertKnowledgeDocument.js +14 -0
- package/dist/cjs/api/llm/aiops_rag/upsertKnowledgeDocument.js.map +1 -0
- package/dist/cjs/api/llm/aiops_service/exportAgents.js +17 -0
- package/dist/cjs/api/llm/aiops_service/exportAgents.js.map +1 -0
- package/dist/cjs/api/llm/aiops_service/exportConversation.js +17 -0
- package/dist/cjs/api/llm/aiops_service/exportConversation.js.map +1 -0
- package/dist/cjs/api/llm/aiops_service/exportRobots.js +17 -0
- package/dist/cjs/api/llm/aiops_service/exportRobots.js.map +1 -0
- package/dist/cjs/api/llm/aiops_service/exportTools.js +17 -0
- package/dist/cjs/api/llm/aiops_service/exportTools.js.map +1 -0
- package/dist/cjs/api/llm/aiops_service/importAgents.js +27 -0
- package/dist/cjs/api/llm/aiops_service/importAgents.js.map +1 -0
- package/dist/cjs/api/llm/aiops_service/importConfluenceEmbedding.js +14 -0
- package/dist/cjs/api/llm/aiops_service/importConfluenceEmbedding.js.map +1 -0
- package/dist/cjs/api/llm/aiops_service/importDocumentEmbedding.js +14 -0
- package/dist/cjs/api/llm/aiops_service/importDocumentEmbedding.js.map +1 -0
- package/dist/cjs/api/llm/aiops_service/importRobots.js +27 -0
- package/dist/cjs/api/llm/aiops_service/importRobots.js.map +1 -0
- package/dist/cjs/api/llm/aiops_service/importTools.js +27 -0
- package/dist/cjs/api/llm/aiops_service/importTools.js.map +1 -0
- package/dist/cjs/api/llm/aiops_service/index.js +215 -0
- package/dist/cjs/api/llm/aiops_service/index.js.map +1 -0
- package/dist/cjs/api/llm/aiops_service/llmAgentChat.js +17 -0
- package/dist/cjs/api/llm/aiops_service/llmAgentChat.js.map +1 -0
- package/dist/cjs/api/llm/aiops_service/llmChatSelectAgent.js +16 -0
- package/dist/cjs/api/llm/aiops_service/llmChatSelectAgent.js.map +1 -0
- package/dist/cjs/api/llm/aiops_service/llmChatService.js +16 -0
- package/dist/cjs/api/llm/aiops_service/llmChatService.js.map +1 -0
- package/dist/cjs/api/llm/aiops_service/llmCreateConversation.js +14 -0
- package/dist/cjs/api/llm/aiops_service/llmCreateConversation.js.map +1 -0
- package/dist/cjs/api/llm/aiops_service/llmEmbeddingDeleteDocs.js +14 -0
- package/dist/cjs/api/llm/aiops_service/llmEmbeddingDeleteDocs.js.map +1 -0
- package/dist/cjs/api/llm/aiops_service/llmEmbeddingImportUrl.js +14 -0
- package/dist/cjs/api/llm/aiops_service/llmEmbeddingImportUrl.js.map +1 -0
- package/dist/cjs/api/llm/aiops_service/llmEmbeddingSearch.js +14 -0
- package/dist/cjs/api/llm/aiops_service/llmEmbeddingSearch.js.map +1 -0
- package/dist/cjs/api/llm/aiops_service/llmExecTools.js +14 -0
- package/dist/cjs/api/llm/aiops_service/llmExecTools.js.map +1 -0
- package/dist/cjs/api/llm/aiops_service/llmRobotChat.js +17 -0
- package/dist/cjs/api/llm/aiops_service/llmRobotChat.js.map +1 -0
- package/dist/cjs/api/llm/aiops_service/llmStreamChatService.js +14 -0
- package/dist/cjs/api/llm/aiops_service/llmStreamChatService.js.map +1 -0
- package/dist/cjs/api/llm/aiops_tools/index.js +28 -0
- package/dist/cjs/api/llm/aiops_tools/index.js.map +1 -0
- package/dist/cjs/api/llm/aiops_tools/summaryQuestionV2.js +14 -0
- package/dist/cjs/api/llm/aiops_tools/summaryQuestionV2.js.map +1 -0
- package/dist/cjs/api/llm/aiops_tools/templateLlmChatV2.js +14 -0
- package/dist/cjs/api/llm/aiops_tools/templateLlmChatV2.js.map +1 -0
- package/dist/cjs/api/llm/virtual_builder/generateStoryboard.js +14 -0
- package/dist/cjs/api/llm/virtual_builder/generateStoryboard.js.map +1 -0
- package/dist/cjs/api/llm/virtual_builder/generateStoryboardStream.js +14 -0
- package/dist/cjs/api/llm/virtual_builder/generateStoryboardStream.js.map +1 -0
- package/dist/cjs/api/llm/virtual_builder/index.js +28 -0
- package/dist/cjs/api/llm/virtual_builder/index.js.map +1 -0
- package/dist/cjs/index.js +112 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/model/aiops_service/ModelLlmChatAgentTaskRequest.js +6 -0
- package/dist/cjs/model/aiops_service/ModelLlmChatAgentTaskRequest.js.map +1 -0
- package/dist/cjs/model/aiops_service/ModelLlmChatAgentTaskResponse.js +6 -0
- package/dist/cjs/model/aiops_service/ModelLlmChatAgentTaskResponse.js.map +1 -0
- package/dist/cjs/model/aiops_service/ModelLlmChatMessage.js +6 -0
- package/dist/cjs/model/aiops_service/ModelLlmChatMessage.js.map +1 -0
- package/dist/cjs/model/aiops_service/ModelLlmChatRequest.js +6 -0
- package/dist/cjs/model/aiops_service/ModelLlmChatRequest.js.map +1 -0
- package/dist/cjs/model/aiops_service/ModelLlmChatResponse.js +6 -0
- package/dist/cjs/model/aiops_service/ModelLlmChatResponse.js.map +1 -0
- package/dist/cjs/model/aiops_service/ModelLlmChatSelectAgentRequest.js +6 -0
- package/dist/cjs/model/aiops_service/ModelLlmChatSelectAgentRequest.js.map +1 -0
- package/dist/cjs/model/aiops_service/ModelLlmChatSelectAgentResponse.js +6 -0
- package/dist/cjs/model/aiops_service/ModelLlmChatSelectAgentResponse.js.map +1 -0
- package/dist/cjs/model/aiops_service/ModelLlmChatTools.js +6 -0
- package/dist/cjs/model/aiops_service/ModelLlmChatTools.js.map +1 -0
- package/dist/cjs/model/aiops_service/index.js +94 -0
- package/dist/cjs/model/aiops_service/index.js.map +1 -0
- package/dist/cjs/model/llm/ModelLlmDocument.js +6 -0
- package/dist/cjs/model/llm/ModelLlmDocument.js.map +1 -0
- package/dist/cjs/model/llm/ModelLlmMemory.js +6 -0
- package/dist/cjs/model/llm/ModelLlmMemory.js.map +1 -0
- package/dist/cjs/model/llm/ModelLlmMemoryEnv.js +6 -0
- package/dist/cjs/model/llm/ModelLlmMemoryEnv.js.map +1 -0
- package/dist/cjs/model/llm/index.js +39 -0
- package/dist/cjs/model/llm/index.js.map +1 -0
- package/dist/cjs/wrapper.js +6 -0
- package/dist/cjs/wrapper.js.map +1 -0
- package/dist/esm/api/llm/agent/baseGeneralAgent.js +11 -0
- package/dist/esm/api/llm/agent/baseGeneralAgent.js.map +1 -0
- package/dist/esm/api/llm/agent/index.js +3 -0
- package/dist/esm/api/llm/agent/index.js.map +1 -0
- package/dist/esm/api/llm/agent/webSearchAgent.js +11 -0
- package/dist/esm/api/llm/agent/webSearchAgent.js.map +1 -0
- package/dist/esm/api/llm/aiops_base/deleteEmbedding.js +7 -0
- package/dist/esm/api/llm/aiops_base/deleteEmbedding.js.map +1 -0
- package/dist/esm/api/llm/aiops_base/deleteKnowledge.js +7 -0
- package/dist/esm/api/llm/aiops_base/deleteKnowledge.js.map +1 -0
- package/dist/esm/api/llm/aiops_base/importDocumentEmbeddings.js +7 -0
- package/dist/esm/api/llm/aiops_base/importDocumentEmbeddings.js.map +1 -0
- package/dist/esm/api/llm/aiops_base/index.js +9 -0
- package/dist/esm/api/llm/aiops_base/index.js.map +1 -0
- package/dist/esm/api/llm/aiops_base/llmChatServiceV1.js +10 -0
- package/dist/esm/api/llm/aiops_base/llmChatServiceV1.js.map +1 -0
- package/dist/esm/api/llm/aiops_base/openaiChat.js +10 -0
- package/dist/esm/api/llm/aiops_base/openaiChat.js.map +1 -0
- package/dist/esm/api/llm/aiops_base/searchEmbedding.js +7 -0
- package/dist/esm/api/llm/aiops_base/searchEmbedding.js.map +1 -0
- package/dist/esm/api/llm/aiops_base/upsertDocument.js +7 -0
- package/dist/esm/api/llm/aiops_base/upsertDocument.js.map +1 -0
- package/dist/esm/api/llm/aiops_base/upsertWithDocId.js +7 -0
- package/dist/esm/api/llm/aiops_base/upsertWithDocId.js.map +1 -0
- package/dist/esm/api/llm/aiops_memory/createMemoryEnv.js +7 -0
- package/dist/esm/api/llm/aiops_memory/createMemoryEnv.js.map +1 -0
- package/dist/esm/api/llm/aiops_memory/deleteLlmMemoryWithConversationId.js +8 -0
- package/dist/esm/api/llm/aiops_memory/deleteLlmMemoryWithConversationId.js.map +1 -0
- package/dist/esm/api/llm/aiops_memory/deleteLlmMemoryWithConversationIdAndKey.js +7 -0
- package/dist/esm/api/llm/aiops_memory/deleteLlmMemoryWithConversationIdAndKey.js.map +1 -0
- package/dist/esm/api/llm/aiops_memory/deleteMemoryEnv.js +8 -0
- package/dist/esm/api/llm/aiops_memory/deleteMemoryEnv.js.map +1 -0
- package/dist/esm/api/llm/aiops_memory/getLlmMemoryWithConversationId.js +7 -0
- package/dist/esm/api/llm/aiops_memory/getLlmMemoryWithConversationId.js.map +1 -0
- package/dist/esm/api/llm/aiops_memory/getLlmMemoryWithConversationIdAndKey.js +7 -0
- package/dist/esm/api/llm/aiops_memory/getLlmMemoryWithConversationIdAndKey.js.map +1 -0
- package/dist/esm/api/llm/aiops_memory/index.js +10 -0
- package/dist/esm/api/llm/aiops_memory/index.js.map +1 -0
- package/dist/esm/api/llm/aiops_memory/searchMemoryEnv.js +7 -0
- package/dist/esm/api/llm/aiops_memory/searchMemoryEnv.js.map +1 -0
- package/dist/esm/api/llm/aiops_memory/updateMemoryEnv.js +7 -0
- package/dist/esm/api/llm/aiops_memory/updateMemoryEnv.js.map +1 -0
- package/dist/esm/api/llm/aiops_memory/upsertLlmMemoryWithConversationIdAndKey.js +7 -0
- package/dist/esm/api/llm/aiops_memory/upsertLlmMemoryWithConversationIdAndKey.js.map +1 -0
- package/dist/esm/api/llm/aiops_prompt/index.js +4 -0
- package/dist/esm/api/llm/aiops_prompt/index.js.map +1 -0
- package/dist/esm/api/llm/aiops_prompt/llmDeletePrompt.js +7 -0
- package/dist/esm/api/llm/aiops_prompt/llmDeletePrompt.js.map +1 -0
- package/dist/esm/api/llm/aiops_prompt/llmGetPrompt.js +7 -0
- package/dist/esm/api/llm/aiops_prompt/llmGetPrompt.js.map +1 -0
- package/dist/esm/api/llm/aiops_prompt/llmUpsertPrompt.js +7 -0
- package/dist/esm/api/llm/aiops_prompt/llmUpsertPrompt.js.map +1 -0
- package/dist/esm/api/llm/aiops_rag/addSynonymsWords.js +7 -0
- package/dist/esm/api/llm/aiops_rag/addSynonymsWords.js.map +1 -0
- package/dist/esm/api/llm/aiops_rag/importConfluenceEmbedding.js +7 -0
- package/dist/esm/api/llm/aiops_rag/importConfluenceEmbedding.js.map +1 -0
- package/dist/esm/api/llm/aiops_rag/importUrlEmbedding.js +7 -0
- package/dist/esm/api/llm/aiops_rag/importUrlEmbedding.js.map +1 -0
- package/dist/esm/api/llm/aiops_rag/index.js +5 -0
- package/dist/esm/api/llm/aiops_rag/index.js.map +1 -0
- package/dist/esm/api/llm/aiops_rag/upsertKnowledgeDocument.js +7 -0
- package/dist/esm/api/llm/aiops_rag/upsertKnowledgeDocument.js.map +1 -0
- package/dist/esm/api/llm/aiops_service/exportAgents.js +10 -0
- package/dist/esm/api/llm/aiops_service/exportAgents.js.map +1 -0
- package/dist/esm/api/llm/aiops_service/exportConversation.js +10 -0
- package/dist/esm/api/llm/aiops_service/exportConversation.js.map +1 -0
- package/dist/esm/api/llm/aiops_service/exportRobots.js +10 -0
- package/dist/esm/api/llm/aiops_service/exportRobots.js.map +1 -0
- package/dist/esm/api/llm/aiops_service/exportTools.js +10 -0
- package/dist/esm/api/llm/aiops_service/exportTools.js.map +1 -0
- package/dist/esm/api/llm/aiops_service/importAgents.js +20 -0
- package/dist/esm/api/llm/aiops_service/importAgents.js.map +1 -0
- package/dist/esm/api/llm/aiops_service/importConfluenceEmbedding.js +7 -0
- package/dist/esm/api/llm/aiops_service/importConfluenceEmbedding.js.map +1 -0
- package/dist/esm/api/llm/aiops_service/importDocumentEmbedding.js +7 -0
- package/dist/esm/api/llm/aiops_service/importDocumentEmbedding.js.map +1 -0
- package/dist/esm/api/llm/aiops_service/importRobots.js +20 -0
- package/dist/esm/api/llm/aiops_service/importRobots.js.map +1 -0
- package/dist/esm/api/llm/aiops_service/importTools.js +20 -0
- package/dist/esm/api/llm/aiops_service/importTools.js.map +1 -0
- package/dist/esm/api/llm/aiops_service/index.js +20 -0
- package/dist/esm/api/llm/aiops_service/index.js.map +1 -0
- package/dist/esm/api/llm/aiops_service/llmAgentChat.js +11 -0
- package/dist/esm/api/llm/aiops_service/llmAgentChat.js.map +1 -0
- package/dist/esm/api/llm/aiops_service/llmChatSelectAgent.js +10 -0
- package/dist/esm/api/llm/aiops_service/llmChatSelectAgent.js.map +1 -0
- package/dist/esm/api/llm/aiops_service/llmChatService.js +10 -0
- package/dist/esm/api/llm/aiops_service/llmChatService.js.map +1 -0
- package/dist/esm/api/llm/aiops_service/llmCreateConversation.js +7 -0
- package/dist/esm/api/llm/aiops_service/llmCreateConversation.js.map +1 -0
- package/dist/esm/api/llm/aiops_service/llmEmbeddingDeleteDocs.js +7 -0
- package/dist/esm/api/llm/aiops_service/llmEmbeddingDeleteDocs.js.map +1 -0
- package/dist/esm/api/llm/aiops_service/llmEmbeddingImportUrl.js +7 -0
- package/dist/esm/api/llm/aiops_service/llmEmbeddingImportUrl.js.map +1 -0
- package/dist/esm/api/llm/aiops_service/llmEmbeddingSearch.js +7 -0
- package/dist/esm/api/llm/aiops_service/llmEmbeddingSearch.js.map +1 -0
- package/dist/esm/api/llm/aiops_service/llmExecTools.js +7 -0
- package/dist/esm/api/llm/aiops_service/llmExecTools.js.map +1 -0
- package/dist/esm/api/llm/aiops_service/llmRobotChat.js +11 -0
- package/dist/esm/api/llm/aiops_service/llmRobotChat.js.map +1 -0
- package/dist/esm/api/llm/aiops_service/llmStreamChatService.js +7 -0
- package/dist/esm/api/llm/aiops_service/llmStreamChatService.js.map +1 -0
- package/dist/esm/api/llm/aiops_tools/index.js +3 -0
- package/dist/esm/api/llm/aiops_tools/index.js.map +1 -0
- package/dist/esm/api/llm/aiops_tools/summaryQuestionV2.js +7 -0
- package/dist/esm/api/llm/aiops_tools/summaryQuestionV2.js.map +1 -0
- package/dist/esm/api/llm/aiops_tools/templateLlmChatV2.js +7 -0
- package/dist/esm/api/llm/aiops_tools/templateLlmChatV2.js.map +1 -0
- package/dist/esm/api/llm/virtual_builder/generateStoryboard.js +7 -0
- package/dist/esm/api/llm/virtual_builder/generateStoryboard.js.map +1 -0
- package/dist/esm/api/llm/virtual_builder/generateStoryboardStream.js +7 -0
- package/dist/esm/api/llm/virtual_builder/generateStoryboardStream.js.map +1 -0
- package/dist/esm/api/llm/virtual_builder/index.js +3 -0
- package/dist/esm/api/llm/virtual_builder/index.js.map +1 -0
- package/dist/esm/index.js +13 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/model/aiops_service/ModelLlmChatAgentTaskRequest.js +2 -0
- package/dist/esm/model/aiops_service/ModelLlmChatAgentTaskRequest.js.map +1 -0
- package/dist/esm/model/aiops_service/ModelLlmChatAgentTaskResponse.js +2 -0
- package/dist/esm/model/aiops_service/ModelLlmChatAgentTaskResponse.js.map +1 -0
- package/dist/esm/model/aiops_service/ModelLlmChatMessage.js +2 -0
- package/dist/esm/model/aiops_service/ModelLlmChatMessage.js.map +1 -0
- package/dist/esm/model/aiops_service/ModelLlmChatRequest.js +2 -0
- package/dist/esm/model/aiops_service/ModelLlmChatRequest.js.map +1 -0
- package/dist/esm/model/aiops_service/ModelLlmChatResponse.js +2 -0
- package/dist/esm/model/aiops_service/ModelLlmChatResponse.js.map +1 -0
- package/dist/esm/model/aiops_service/ModelLlmChatSelectAgentRequest.js +2 -0
- package/dist/esm/model/aiops_service/ModelLlmChatSelectAgentRequest.js.map +1 -0
- package/dist/esm/model/aiops_service/ModelLlmChatSelectAgentResponse.js +2 -0
- package/dist/esm/model/aiops_service/ModelLlmChatSelectAgentResponse.js.map +1 -0
- package/dist/esm/model/aiops_service/ModelLlmChatTools.js +2 -0
- package/dist/esm/model/aiops_service/ModelLlmChatTools.js.map +1 -0
- package/dist/esm/model/aiops_service/index.js +9 -0
- package/dist/esm/model/aiops_service/index.js.map +1 -0
- package/dist/esm/model/llm/ModelLlmDocument.js +2 -0
- package/dist/esm/model/llm/ModelLlmDocument.js.map +1 -0
- package/dist/esm/model/llm/ModelLlmMemory.js +2 -0
- package/dist/esm/model/llm/ModelLlmMemory.js.map +1 -0
- package/dist/esm/model/llm/ModelLlmMemoryEnv.js +2 -0
- package/dist/esm/model/llm/ModelLlmMemoryEnv.js.map +1 -0
- package/dist/esm/model/llm/index.js +4 -0
- package/dist/esm/model/llm/index.js.map +1 -0
- package/dist/esm/wrapper.js +2 -0
- package/dist/esm/wrapper.js.map +1 -0
- package/dist/types/api/llm/agent/baseGeneralAgent.d.ts +11 -0
- package/dist/types/api/llm/agent/index.d.ts +2 -0
- package/dist/types/api/llm/agent/webSearchAgent.d.ts +11 -0
- package/dist/types/api/llm/aiops_base/deleteEmbedding.d.ts +16 -0
- package/dist/types/api/llm/aiops_base/deleteKnowledge.d.ts +10 -0
- package/dist/types/api/llm/aiops_base/importDocumentEmbeddings.d.ts +27 -0
- package/dist/types/api/llm/aiops_base/index.d.ts +8 -0
- package/dist/types/api/llm/aiops_base/llmChatServiceV1.d.ts +14 -0
- package/dist/types/api/llm/aiops_base/openaiChat.d.ts +14 -0
- package/dist/types/api/llm/aiops_base/searchEmbedding.d.ts +23 -0
- package/dist/types/api/llm/aiops_base/upsertDocument.d.ts +25 -0
- package/dist/types/api/llm/aiops_base/upsertWithDocId.d.ts +25 -0
- package/dist/types/api/llm/aiops_memory/createMemoryEnv.d.ts +9 -0
- package/dist/types/api/llm/aiops_memory/deleteLlmMemoryWithConversationId.d.ts +6 -0
- package/dist/types/api/llm/aiops_memory/deleteLlmMemoryWithConversationIdAndKey.d.ts +10 -0
- package/dist/types/api/llm/aiops_memory/deleteMemoryEnv.d.ts +6 -0
- package/dist/types/api/llm/aiops_memory/getLlmMemoryWithConversationId.d.ts +15 -0
- package/dist/types/api/llm/aiops_memory/getLlmMemoryWithConversationIdAndKey.d.ts +17 -0
- package/dist/types/api/llm/aiops_memory/index.d.ts +9 -0
- package/dist/types/api/llm/aiops_memory/searchMemoryEnv.d.ts +23 -0
- package/dist/types/api/llm/aiops_memory/updateMemoryEnv.d.ts +8 -0
- package/dist/types/api/llm/aiops_memory/upsertLlmMemoryWithConversationIdAndKey.d.ts +11 -0
- package/dist/types/api/llm/aiops_prompt/index.d.ts +3 -0
- package/dist/types/api/llm/aiops_prompt/llmDeletePrompt.d.ts +20 -0
- package/dist/types/api/llm/aiops_prompt/llmGetPrompt.d.ts +18 -0
- package/dist/types/api/llm/aiops_prompt/llmUpsertPrompt.d.ts +22 -0
- package/dist/types/api/llm/aiops_rag/addSynonymsWords.d.ts +20 -0
- package/dist/types/api/llm/aiops_rag/importConfluenceEmbedding.d.ts +37 -0
- package/dist/types/api/llm/aiops_rag/importUrlEmbedding.d.ts +27 -0
- package/dist/types/api/llm/aiops_rag/index.d.ts +4 -0
- package/dist/types/api/llm/aiops_rag/upsertKnowledgeDocument.d.ts +14 -0
- package/dist/types/api/llm/aiops_service/exportAgents.d.ts +10 -0
- package/dist/types/api/llm/aiops_service/exportConversation.d.ts +22 -0
- package/dist/types/api/llm/aiops_service/exportRobots.d.ts +10 -0
- package/dist/types/api/llm/aiops_service/exportTools.d.ts +10 -0
- package/dist/types/api/llm/aiops_service/importAgents.d.ts +16 -0
- package/dist/types/api/llm/aiops_service/importConfluenceEmbedding.d.ts +37 -0
- package/dist/types/api/llm/aiops_service/importDocumentEmbedding.d.ts +27 -0
- package/dist/types/api/llm/aiops_service/importRobots.d.ts +16 -0
- package/dist/types/api/llm/aiops_service/importTools.d.ts +16 -0
- package/dist/types/api/llm/aiops_service/index.d.ts +19 -0
- package/dist/types/api/llm/aiops_service/llmAgentChat.d.ts +46 -0
- package/dist/types/api/llm/aiops_service/llmChatSelectAgent.d.ts +10 -0
- package/dist/types/api/llm/aiops_service/llmChatService.d.ts +14 -0
- package/dist/types/api/llm/aiops_service/llmCreateConversation.d.ts +18 -0
- package/dist/types/api/llm/aiops_service/llmEmbeddingDeleteDocs.d.ts +15 -0
- package/dist/types/api/llm/aiops_service/llmEmbeddingImportUrl.d.ts +25 -0
- package/dist/types/api/llm/aiops_service/llmEmbeddingSearch.d.ts +21 -0
- package/dist/types/api/llm/aiops_service/llmExecTools.d.ts +24 -0
- package/dist/types/api/llm/aiops_service/llmRobotChat.d.ts +11 -0
- package/dist/types/api/llm/aiops_service/llmStreamChatService.d.ts +12 -0
- package/dist/types/api/llm/aiops_tools/index.d.ts +2 -0
- package/dist/types/api/llm/aiops_tools/summaryQuestionV2.d.ts +29 -0
- package/dist/types/api/llm/aiops_tools/templateLlmChatV2.d.ts +44 -0
- package/dist/types/api/llm/virtual_builder/generateStoryboard.d.ts +24 -0
- package/dist/types/api/llm/virtual_builder/generateStoryboardStream.d.ts +24 -0
- package/dist/types/api/llm/virtual_builder/index.d.ts +2 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/model/aiops_service/ModelLlmChatAgentTaskRequest.d.ts +26 -0
- package/dist/types/model/aiops_service/ModelLlmChatAgentTaskResponse.d.ts +26 -0
- package/dist/types/model/aiops_service/ModelLlmChatMessage.d.ts +27 -0
- package/dist/types/model/aiops_service/ModelLlmChatRequest.d.ts +28 -0
- package/dist/types/model/aiops_service/ModelLlmChatResponse.d.ts +32 -0
- package/dist/types/model/aiops_service/ModelLlmChatSelectAgentRequest.d.ts +19 -0
- package/dist/types/model/aiops_service/ModelLlmChatSelectAgentResponse.d.ts +12 -0
- package/dist/types/model/aiops_service/ModelLlmChatTools.d.ts +31 -0
- package/dist/types/model/aiops_service/index.d.ts +8 -0
- package/dist/types/model/llm/ModelLlmDocument.d.ts +13 -0
- package/dist/types/model/llm/ModelLlmMemory.d.ts +15 -0
- package/dist/types/model/llm/ModelLlmMemoryEnv.d.ts +11 -0
- package/dist/types/model/llm/index.d.ts +3 -0
- package/dist/types/wrapper.d.ts +12 -0
- package/package.json +47 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
export * from "./llmEmbeddingDeleteDocs.js";
|
2
|
+
export * from "./llmEmbeddingImportUrl.js";
|
3
|
+
export * from "./llmEmbeddingSearch.js";
|
4
|
+
export * from "./llmExecTools.js";
|
5
|
+
export * from "./exportAgents.js";
|
6
|
+
export * from "./exportConversation.js";
|
7
|
+
export * from "./exportRobots.js";
|
8
|
+
export * from "./exportTools.js";
|
9
|
+
export * from "./importAgents.js";
|
10
|
+
export * from "./importConfluenceEmbedding.js";
|
11
|
+
export * from "./importDocumentEmbedding.js";
|
12
|
+
export * from "./importRobots.js";
|
13
|
+
export * from "./importTools.js";
|
14
|
+
export * from "./llmAgentChat.js";
|
15
|
+
export * from "./llmChatSelectAgent.js";
|
16
|
+
export * from "./llmChatService.js";
|
17
|
+
export * from "./llmCreateConversation.js";
|
18
|
+
export * from "./llmRobotChat.js";
|
19
|
+
export * from "./llmStreamChatService.js";
|
20
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/api/llm/aiops_service/index.ts"],"sourcesContent":["export * from \"./llmEmbeddingDeleteDocs.js\";\nexport * from \"./llmEmbeddingImportUrl.js\";\nexport * from \"./llmEmbeddingSearch.js\";\nexport * from \"./llmExecTools.js\";\nexport * from \"./exportAgents.js\";\nexport * from \"./exportConversation.js\";\nexport * from \"./exportRobots.js\";\nexport * from \"./exportTools.js\";\nexport * from \"./importAgents.js\";\nexport * from \"./importConfluenceEmbedding.js\";\nexport * from \"./importDocumentEmbedding.js\";\nexport * from \"./importRobots.js\";\nexport * from \"./importTools.js\";\nexport * from \"./llmAgentChat.js\";\nexport * from \"./llmChatSelectAgent.js\";\nexport * from \"./llmChatService.js\";\nexport * from \"./llmCreateConversation.js\";\nexport * from \"./llmRobotChat.js\";\nexport * from \"./llmStreamChatService.js\";\n"],"mappings":"AAAA,cAAc,6BAA6B;AAC3C,cAAc,4BAA4B;AAC1C,cAAc,yBAAyB;AACvC,cAAc,mBAAmB;AACjC,cAAc,mBAAmB;AACjC,cAAc,yBAAyB;AACvC,cAAc,mBAAmB;AACjC,cAAc,kBAAkB;AAChC,cAAc,mBAAmB;AACjC,cAAc,gCAAgC;AAC9C,cAAc,8BAA8B;AAC5C,cAAc,mBAAmB;AACjC,cAAc,kBAAkB;AAChC,cAAc,mBAAmB;AACjC,cAAc,yBAAyB;AACvC,cAAc,qBAAqB;AACnC,cAAc,4BAA4B;AAC1C,cAAc,mBAAmB;AACjC,cAAc,2BAA2B","ignoreList":[]}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { http } from "@next-core/http";
|
2
|
+
|
3
|
+
/** 接口返回,有两种格式,流式返回为delta, 非流式返回为message
|
4
|
+
*/
|
5
|
+
|
6
|
+
/**
|
7
|
+
* @description 大模型agent对话,不会记录会话历史
|
8
|
+
* @endpoint POST /api/v1/llm/aiops_service/agent/chat
|
9
|
+
*/
|
10
|
+
export const AiopsServiceApi_llmAgentChat = async (data, options) => /**! @contract easyops.api.llm.aiops_service.LLMAgentChat@1.2.0 */(await http.post("api/gateway/llm.aiops_service.LLMAgentChat/api/v1/llm/aiops_service/agent/chat", data, options)).data;
|
11
|
+
//# sourceMappingURL=llmAgentChat.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"llmAgentChat.js","names":["http","AiopsServiceApi_llmAgentChat","data","options","post"],"sources":["../../../../../src/api/llm/aiops_service/llmAgentChat.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport {\n ModelLlmChatAgentTaskResponse,\n ModelLlmChatMessage,\n} from \"../../../model/aiops_service/index.js\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AiopsServiceApi_LlmAgentChatRequestBody {\n /** 任务需求, 支持模板引擎 */\n inputTemplate?: string;\n\n /** 模板所需要的数据 */\n inputVariables?: Record<string, any>;\n\n /** system角色的提示词模板 */\n systemTemplate?: string;\n\n /** system模板所需要的数据 */\n systemVariables?: Record<string, any>;\n\n /** 任务配置 */\n config?: Record<string, any>;\n\n /** 当前任务上下文的id */\n conversationId?: string;\n\n /** 在多agent场景,指定使用哪个agent */\n agentId?: string;\n\n /** 当前任务Id */\n taskId?: string;\n\n /** 已经提取的表单数据 */\n formData?: any;\n\n /** 输出格式,默认json */\n outputType?: string;\n\n /** 是否流式返回 */\n stream?: boolean;\n\n /** 历史会话消息,适用支持多轮会话的agent */\n historyMessages?: Partial<ModelLlmChatMessage>[];\n\n /** 图片的url,支持多个图片 */\n images?: string[];\n}\n\n/** 接口返回,有两种格式,流式返回为delta, 非流式返回为message\n */\nexport type AiopsServiceApi_LlmAgentChatResponseBody =\n Partial<ModelLlmChatAgentTaskResponse> &\n AiopsServiceApi_LlmAgentChatResponseBody_2;\n\n/**\n * @description 大模型agent对话,不会记录会话历史\n * @endpoint POST /api/v1/llm/aiops_service/agent/chat\n */\nexport const AiopsServiceApi_llmAgentChat = async (\n data: AiopsServiceApi_LlmAgentChatRequestBody,\n options?: HttpOptions\n): Promise<AiopsServiceApi_LlmAgentChatResponseBody> =>\n /**! @contract easyops.api.llm.aiops_service.LLMAgentChat@1.2.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsServiceApi_LlmAgentChatResponseBody>\n >(\n \"api/gateway/llm.aiops_service.LLMAgentChat/api/v1/llm/aiops_service/agent/chat\",\n data,\n options\n )\n ).data;\n\nexport interface AiopsServiceApi_LlmAgentChatResponseBody_2 {\n /** 提取返回的数据 */\n data?: any;\n\n /** 调试时大模型返回值 */\n debug_resp?: string;\n\n /** 如果解析不到正确的数据格式,则将大模型返回的数据塞到这里 */\n errorOutput?: string;\n}\n"],"mappings":"AAAA,SAASA,IAAI,QAAqB,iBAAiB;;AAgDnD;AACA;;AAKA;AACA;AACA;AACA;AACA,OAAO,MAAMC,4BAA4B,GAAG,MAAAA,CAC1CC,IAA6C,EAC7CC,OAAqB,KAErB,kEAAmE,CACjE,MAAMH,IAAI,CAACI,IAAI,CAGb,gFAAgF,EAChFF,IAAI,EACJC,OACF,CAAC,EACDD,IAAI","ignoreList":[]}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { http } from "@next-core/http";
|
2
|
+
|
3
|
+
/** 接口返回选择agent的结果,有breakMsg时,需要中断 */
|
4
|
+
|
5
|
+
/**
|
6
|
+
* @description 大模型选择处理的agent
|
7
|
+
* @endpoint POST /api/v1/llm/aiops_service/agent/select
|
8
|
+
*/
|
9
|
+
export const AiopsServiceApi_llmChatSelectAgent = async (data, options) => /**! @contract easyops.api.llm.aiops_service.LLMChatSelectAgent@1.1.0 */(await http.post("api/gateway/llm.aiops_service.LLMChatSelectAgent/api/v1/llm/aiops_service/agent/select", data, options)).data;
|
10
|
+
//# sourceMappingURL=llmChatSelectAgent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"llmChatSelectAgent.js","names":["http","AiopsServiceApi_llmChatSelectAgent","data","options","post"],"sources":["../../../../../src/api/llm/aiops_service/llmChatSelectAgent.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport {\n ModelLlmChatSelectAgentRequest,\n ModelLlmChatSelectAgentResponse,\n} from \"../../../model/aiops_service/index.js\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport type AiopsServiceApi_LlmChatSelectAgentRequestBody =\n Partial<ModelLlmChatSelectAgentRequest>;\n\n/** 接口返回选择agent的结果,有breakMsg时,需要中断 */\nexport type AiopsServiceApi_LlmChatSelectAgentResponseBody =\n Partial<ModelLlmChatSelectAgentResponse>;\n\n/**\n * @description 大模型选择处理的agent\n * @endpoint POST /api/v1/llm/aiops_service/agent/select\n */\nexport const AiopsServiceApi_llmChatSelectAgent = async (\n data: AiopsServiceApi_LlmChatSelectAgentRequestBody,\n options?: HttpOptions\n): Promise<AiopsServiceApi_LlmChatSelectAgentResponseBody> =>\n /**! @contract easyops.api.llm.aiops_service.LLMChatSelectAgent@1.1.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsServiceApi_LlmChatSelectAgentResponseBody>\n >(\n \"api/gateway/llm.aiops_service.LLMChatSelectAgent/api/v1/llm/aiops_service/agent/select\",\n data,\n options\n )\n ).data;\n"],"mappings":"AAAA,SAASA,IAAI,QAAqB,iBAAiB;;AAUnD;;AAIA;AACA;AACA;AACA;AACA,OAAO,MAAMC,kCAAkC,GAAG,MAAAA,CAChDC,IAAmD,EACnDC,OAAqB,KAErB,wEAAyE,CACvE,MAAMH,IAAI,CAACI,IAAI,CAGb,wFAAwF,EACxFF,IAAI,EACJC,OACF,CAAC,EACDD,IAAI","ignoreList":[]}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { http } from "@next-core/http";
|
2
|
+
|
3
|
+
/** 接口返回,有两种格式,流式返回为sseDataList:[{"role":"assistant","content":"abc"}],非流式返回为LLMChatResponse */
|
4
|
+
|
5
|
+
/**
|
6
|
+
* @description 大模型聊天接口
|
7
|
+
* @endpoint POST /api/v1/llm/aiops_service/chat_service
|
8
|
+
*/
|
9
|
+
export const AiopsServiceApi_llmChatService = async (data, options) => /**! @contract easyops.api.llm.aiops_service.LLMChatService@1.0.0 */(await http.post("api/gateway/llm.aiops_service.LLMChatService/api/v1/llm/aiops_service/chat_service", data, options)).data;
|
10
|
+
//# sourceMappingURL=llmChatService.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"llmChatService.js","names":["http","AiopsServiceApi_llmChatService","data","options","post"],"sources":["../../../../../src/api/llm/aiops_service/llmChatService.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport {\n ModelLlmChatRequest,\n ModelLlmChatResponse,\n} from \"../../../model/aiops_service/index.js\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport type AiopsServiceApi_LlmChatServiceRequestBody =\n Partial<ModelLlmChatRequest>;\n\n/** 接口返回,有两种格式,流式返回为sseDataList:[{\"role\":\"assistant\",\"content\":\"abc\"}],非流式返回为LLMChatResponse */\nexport type AiopsServiceApi_LlmChatServiceResponseBody =\n Partial<ModelLlmChatResponse> & AiopsServiceApi_LlmChatServiceResponseBody_2;\n\n/**\n * @description 大模型聊天接口\n * @endpoint POST /api/v1/llm/aiops_service/chat_service\n */\nexport const AiopsServiceApi_llmChatService = async (\n data: AiopsServiceApi_LlmChatServiceRequestBody,\n options?: HttpOptions\n): Promise<AiopsServiceApi_LlmChatServiceResponseBody> =>\n /**! @contract easyops.api.llm.aiops_service.LLMChatService@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsServiceApi_LlmChatServiceResponseBody>\n >(\n \"api/gateway/llm.aiops_service.LLMChatService/api/v1/llm/aiops_service/chat_service\",\n data,\n options\n )\n ).data;\n\nexport interface AiopsServiceApi_LlmChatServiceResponseBody_2 {\n /** 流式数据列表 */\n sseDataList?: any[];\n}\n"],"mappings":"AAAA,SAASA,IAAI,QAAqB,iBAAiB;;AAUnD;;AAIA;AACA;AACA;AACA;AACA,OAAO,MAAMC,8BAA8B,GAAG,MAAAA,CAC5CC,IAA+C,EAC/CC,OAAqB,KAErB,oEAAqE,CACnE,MAAMH,IAAI,CAACI,IAAI,CAGb,oFAAoF,EACpFF,IAAI,EACJC,OACF,CAAC,EACDD,IAAI","ignoreList":[]}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { http } from "@next-core/http";
|
2
|
+
/**
|
3
|
+
* @description 大模型新建会话
|
4
|
+
* @endpoint POST /api/v1/llm/aiops_service/conversation/create
|
5
|
+
*/
|
6
|
+
export const AiopsServiceApi_llmCreateConversation = async (data, options) => /**! @contract easyops.api.llm.aiops_service.LLMCreateConversation@1.0.0 */(await http.post("api/gateway/llm.aiops_service.LLMCreateConversation/api/v1/llm/aiops_service/conversation/create", data, options)).data;
|
7
|
+
//# sourceMappingURL=llmCreateConversation.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"llmCreateConversation.js","names":["http","AiopsServiceApi_llmCreateConversation","data","options","post"],"sources":["../../../../../src/api/llm/aiops_service/llmCreateConversation.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AiopsServiceApi_LlmCreateConversationRequestBody {\n /** sessionId */\n sessionId?: string;\n\n /** 会话标题 */\n conversationTitle?: string;\n\n /** 助手id */\n robotId?: string;\n}\n\nexport interface AiopsServiceApi_LlmCreateConversationResponseBody {\n /** 会话ID */\n conversationId?: string;\n}\n\n/**\n * @description 大模型新建会话\n * @endpoint POST /api/v1/llm/aiops_service/conversation/create\n */\nexport const AiopsServiceApi_llmCreateConversation = async (\n data: AiopsServiceApi_LlmCreateConversationRequestBody,\n options?: HttpOptions\n): Promise<AiopsServiceApi_LlmCreateConversationResponseBody> =>\n /**! @contract easyops.api.llm.aiops_service.LLMCreateConversation@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsServiceApi_LlmCreateConversationResponseBody>\n >(\n \"api/gateway/llm.aiops_service.LLMCreateConversation/api/v1/llm/aiops_service/conversation/create\",\n data,\n options\n )\n ).data;\n"],"mappings":"AAAA,SAASA,IAAI,QAAqB,iBAAiB;AAmBnD;AACA;AACA;AACA;AACA,OAAO,MAAMC,qCAAqC,GAAG,MAAAA,CACnDC,IAAsD,EACtDC,OAAqB,KAErB,2EAA4E,CAC1E,MAAMH,IAAI,CAACI,IAAI,CAGb,kGAAkG,EAClGF,IAAI,EACJC,OACF,CAAC,EACDD,IAAI","ignoreList":[]}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { http } from "@next-core/http";
|
2
|
+
/**
|
3
|
+
* @description 向量数据库中删除知识库中的文档
|
4
|
+
* @endpoint POST /api/v1/llm/aiops_service/delete_docs
|
5
|
+
*/
|
6
|
+
export const AiopsServiceApi_llmEmbeddingDeleteDocs = async (data, options) => /**! @contract easyops.api.llm.aiops_service.LLMEmbeddingDeleteDocs@1.0.0 */(await http.post("api/gateway/llm.aiops_service.LLMEmbeddingDeleteDocs/api/v1/llm/aiops_service/delete_docs", data, options)).data;
|
7
|
+
//# sourceMappingURL=llmEmbeddingDeleteDocs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"llmEmbeddingDeleteDocs.js","names":["http","AiopsServiceApi_llmEmbeddingDeleteDocs","data","options","post"],"sources":["../../../../../src/api/llm/aiops_service/llmEmbeddingDeleteDocs.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AiopsServiceApi_LlmEmbeddingDeleteDocsRequestBody {\n /** 知识库id,同search中的命名空间 */\n knowledgeId?: string;\n\n /** 是否删除整个知识库 */\n deleteKnowledge?: boolean;\n\n /** 文档所包含的id列表 */\n ids?: string[];\n}\n\nexport type AiopsServiceApi_LlmEmbeddingDeleteDocsResponseBody = Record<\n string,\n any\n>;\n\n/**\n * @description 向量数据库中删除知识库中的文档\n * @endpoint POST /api/v1/llm/aiops_service/delete_docs\n */\nexport const AiopsServiceApi_llmEmbeddingDeleteDocs = async (\n data: AiopsServiceApi_LlmEmbeddingDeleteDocsRequestBody,\n options?: HttpOptions\n): Promise<AiopsServiceApi_LlmEmbeddingDeleteDocsResponseBody> =>\n /**! @contract easyops.api.llm.aiops_service.LLMEmbeddingDeleteDocs@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsServiceApi_LlmEmbeddingDeleteDocsResponseBody>\n >(\n \"api/gateway/llm.aiops_service.LLMEmbeddingDeleteDocs/api/v1/llm/aiops_service/delete_docs\",\n data,\n options\n )\n ).data;\n"],"mappings":"AAAA,SAASA,IAAI,QAAqB,iBAAiB;AAmBnD;AACA;AACA;AACA;AACA,OAAO,MAAMC,sCAAsC,GAAG,MAAAA,CACpDC,IAAuD,EACvDC,OAAqB,KAErB,4EAA6E,CAC3E,MAAMH,IAAI,CAACI,IAAI,CAGb,2FAA2F,EAC3FF,IAAI,EACJC,OACF,CAAC,EACDD,IAAI","ignoreList":[]}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { http } from "@next-core/http";
|
2
|
+
/**
|
3
|
+
* @description 向向量数据库中导入知识库文档
|
4
|
+
* @endpoint POST /api/v1/llm/aiops_service/import_url
|
5
|
+
*/
|
6
|
+
export const AiopsServiceApi_llmEmbeddingImportUrl = async (data, options) => /**! @contract easyops.api.llm.aiops_service.LLMEmbeddingImportUrl@1.0.0 */(await http.post("api/gateway/llm.aiops_service.LLMEmbeddingImportUrl/api/v1/llm/aiops_service/import_url", data, options)).data;
|
7
|
+
//# sourceMappingURL=llmEmbeddingImportUrl.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"llmEmbeddingImportUrl.js","names":["http","AiopsServiceApi_llmEmbeddingImportUrl","data","options","post"],"sources":["../../../../../src/api/llm/aiops_service/llmEmbeddingImportUrl.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ModelLlmDocument } from \"../../../model/llm/index.js\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AiopsServiceApi_LlmEmbeddingImportUrlRequestBody {\n /** 知识库id,同search中的命名空间 */\n knowledgeId?: string;\n\n /** 文档id */\n docId?: string;\n\n /** 文档链接 */\n url?: string;\n\n /** 优先使用openapiUrl,上面的url目前不生效 */\n openapiUrl?: string;\n\n /** 文档类型,为file或者url */\n docType?: string;\n\n /** 是否为append */\n append?: boolean;\n}\n\nexport interface AiopsServiceApi_LlmEmbeddingImportUrlResponseBody {\n /** 解析的文档内容 */\n docs?: Partial<ModelLlmDocument>[];\n}\n\n/**\n * @description 向向量数据库中导入知识库文档\n * @endpoint POST /api/v1/llm/aiops_service/import_url\n */\nexport const AiopsServiceApi_llmEmbeddingImportUrl = async (\n data: AiopsServiceApi_LlmEmbeddingImportUrlRequestBody,\n options?: HttpOptions\n): Promise<AiopsServiceApi_LlmEmbeddingImportUrlResponseBody> =>\n /**! @contract easyops.api.llm.aiops_service.LLMEmbeddingImportUrl@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsServiceApi_LlmEmbeddingImportUrlResponseBody>\n >(\n \"api/gateway/llm.aiops_service.LLMEmbeddingImportUrl/api/v1/llm/aiops_service/import_url\",\n data,\n options\n )\n ).data;\n"],"mappings":"AAAA,SAASA,IAAI,QAAqB,iBAAiB;AA6BnD;AACA;AACA;AACA;AACA,OAAO,MAAMC,qCAAqC,GAAG,MAAAA,CACnDC,IAAsD,EACtDC,OAAqB,KAErB,2EAA4E,CAC1E,MAAMH,IAAI,CAACI,IAAI,CAGb,yFAAyF,EACzFF,IAAI,EACJC,OACF,CAAC,EACDD,IAAI","ignoreList":[]}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { http } from "@next-core/http";
|
2
|
+
/**
|
3
|
+
* @description 从向量数据库查询匹配的文档
|
4
|
+
* @endpoint POST /api/v1/llm/aiops_service/embedding/search_doc
|
5
|
+
*/
|
6
|
+
export const AiopsServiceApi_llmEmbeddingSearch = async (data, options) => /**! @contract easyops.api.llm.aiops_service.LLMEmbeddingSearch@1.0.0 */(await http.post("api/gateway/llm.aiops_service.LLMEmbeddingSearch/api/v1/llm/aiops_service/embedding/search_doc", data, options)).data;
|
7
|
+
//# sourceMappingURL=llmEmbeddingSearch.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"llmEmbeddingSearch.js","names":["http","AiopsServiceApi_llmEmbeddingSearch","data","options","post"],"sources":["../../../../../src/api/llm/aiops_service/llmEmbeddingSearch.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ModelLlmDocument } from \"../../../model/llm/index.js\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AiopsServiceApi_LlmEmbeddingSearchRequestBody {\n /** 命名空间 */\n namespace?: string;\n\n /** 查询的句子 */\n query?: string;\n\n /** 过滤条件 */\n filter?: Record<string, any>;\n\n /** 返回topk条记录 */\n topk?: number;\n}\n\nexport interface AiopsServiceApi_LlmEmbeddingSearchResponseBody {\n /** 相似查询结果 */\n matchedDocs?: Partial<ModelLlmDocument>[];\n}\n\n/**\n * @description 从向量数据库查询匹配的文档\n * @endpoint POST /api/v1/llm/aiops_service/embedding/search_doc\n */\nexport const AiopsServiceApi_llmEmbeddingSearch = async (\n data: AiopsServiceApi_LlmEmbeddingSearchRequestBody,\n options?: HttpOptions\n): Promise<AiopsServiceApi_LlmEmbeddingSearchResponseBody> =>\n /**! @contract easyops.api.llm.aiops_service.LLMEmbeddingSearch@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsServiceApi_LlmEmbeddingSearchResponseBody>\n >(\n \"api/gateway/llm.aiops_service.LLMEmbeddingSearch/api/v1/llm/aiops_service/embedding/search_doc\",\n data,\n options\n )\n ).data;\n"],"mappings":"AAAA,SAASA,IAAI,QAAqB,iBAAiB;AAuBnD;AACA;AACA;AACA;AACA,OAAO,MAAMC,kCAAkC,GAAG,MAAAA,CAChDC,IAAmD,EACnDC,OAAqB,KAErB,wEAAyE,CACvE,MAAMH,IAAI,CAACI,IAAI,CAGb,gGAAgG,EAChGF,IAAI,EACJC,OACF,CAAC,EACDD,IAAI","ignoreList":[]}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { http } from "@next-core/http";
|
2
|
+
/**
|
3
|
+
* @description 大模型执行工具
|
4
|
+
* @endpoint POST /api/v1/llm/aiops_service/tools/exec
|
5
|
+
*/
|
6
|
+
export const AiopsServiceApi_llmExecTools = async (data, options) => /**! @contract easyops.api.llm.aiops_service.LLMExecTools@1.0.0 */(await http.post("api/gateway/llm.aiops_service.LLMExecTools/api/v1/llm/aiops_service/tools/exec", data, options)).data;
|
7
|
+
//# sourceMappingURL=llmExecTools.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"llmExecTools.js","names":["http","AiopsServiceApi_llmExecTools","data","options","post"],"sources":["../../../../../src/api/llm/aiops_service/llmExecTools.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AiopsServiceApi_LlmExecToolsRequestBody {\n /** 工具id */\n toolId: string;\n\n /** 输入的参数 */\n parameters?: Record<string, any>;\n\n /** 当前任务上下文的id */\n conversationId?: string;\n\n /** 在多agent场景,指定使用哪个agent */\n agentId?: string;\n\n /** 执行工具的过程id */\n callId?: string;\n}\n\nexport interface AiopsServiceApi_LlmExecToolsResponseBody {\n /** 执行工具的结果 */\n data?: any;\n\n /** 执行工具的过程id */\n callId?: string;\n}\n\n/**\n * @description 大模型执行工具\n * @endpoint POST /api/v1/llm/aiops_service/tools/exec\n */\nexport const AiopsServiceApi_llmExecTools = async (\n data: AiopsServiceApi_LlmExecToolsRequestBody,\n options?: HttpOptions\n): Promise<AiopsServiceApi_LlmExecToolsResponseBody> =>\n /**! @contract easyops.api.llm.aiops_service.LLMExecTools@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsServiceApi_LlmExecToolsResponseBody>\n >(\n \"api/gateway/llm.aiops_service.LLMExecTools/api/v1/llm/aiops_service/tools/exec\",\n data,\n options\n )\n ).data;\n"],"mappings":"AAAA,SAASA,IAAI,QAAqB,iBAAiB;AA4BnD;AACA;AACA;AACA;AACA,OAAO,MAAMC,4BAA4B,GAAG,MAAAA,CAC1CC,IAA6C,EAC7CC,OAAqB,KAErB,kEAAmE,CACjE,MAAMH,IAAI,CAACI,IAAI,CAGb,gFAAgF,EAChFF,IAAI,EACJC,OACF,CAAC,EACDD,IAAI","ignoreList":[]}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { http } from "@next-core/http";
|
2
|
+
|
3
|
+
/** 接口返回,有两种格式,流式返回为delta, 非流式返回为message
|
4
|
+
*/
|
5
|
+
|
6
|
+
/**
|
7
|
+
* @description 大模型助手聊天
|
8
|
+
* @endpoint POST /api/v1/llm/aiops_service/robot/chat
|
9
|
+
*/
|
10
|
+
export const AiopsServiceApi_llmRobotChat = async (data, options) => /**! @contract easyops.api.llm.aiops_service.LLMRobotChat@1.2.0 */(await http.post("api/gateway/llm.aiops_service.LLMRobotChat/api/v1/llm/aiops_service/robot/chat", data, options)).data;
|
11
|
+
//# sourceMappingURL=llmRobotChat.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"llmRobotChat.js","names":["http","AiopsServiceApi_llmRobotChat","data","options","post"],"sources":["../../../../../src/api/llm/aiops_service/llmRobotChat.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport {\n ModelLlmChatAgentTaskRequest,\n ModelLlmChatAgentTaskResponse,\n} from \"../../../model/aiops_service/index.js\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport type AiopsServiceApi_LlmRobotChatRequestBody =\n Partial<ModelLlmChatAgentTaskRequest>;\n\n/** 接口返回,有两种格式,流式返回为delta, 非流式返回为message\n */\nexport type AiopsServiceApi_LlmRobotChatResponseBody =\n Partial<ModelLlmChatAgentTaskResponse>;\n\n/**\n * @description 大模型助手聊天\n * @endpoint POST /api/v1/llm/aiops_service/robot/chat\n */\nexport const AiopsServiceApi_llmRobotChat = async (\n data: AiopsServiceApi_LlmRobotChatRequestBody,\n options?: HttpOptions\n): Promise<AiopsServiceApi_LlmRobotChatResponseBody> =>\n /**! @contract easyops.api.llm.aiops_service.LLMRobotChat@1.2.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsServiceApi_LlmRobotChatResponseBody>\n >(\n \"api/gateway/llm.aiops_service.LLMRobotChat/api/v1/llm/aiops_service/robot/chat\",\n data,\n options\n )\n ).data;\n"],"mappings":"AAAA,SAASA,IAAI,QAAqB,iBAAiB;;AAUnD;AACA;;AAIA;AACA;AACA;AACA;AACA,OAAO,MAAMC,4BAA4B,GAAG,MAAAA,CAC1CC,IAA6C,EAC7CC,OAAqB,KAErB,kEAAmE,CACjE,MAAMH,IAAI,CAACI,IAAI,CAGb,gFAAgF,EAChFF,IAAI,EACJC,OACF,CAAC,EACDD,IAAI","ignoreList":[]}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { http } from "@next-core/http";
|
2
|
+
/**
|
3
|
+
* @description 大模型聊天流式接口
|
4
|
+
* @endpoint POST /api/v1/llm/aiops_service/stream_chat_service
|
5
|
+
*/
|
6
|
+
export const AiopsServiceApi_llmStreamChatService = (data, options) => /**! @contract easyops.api.llm.aiops_service.LLMStreamChatService@1.0.0 */http.post("api/gateway/llm.aiops_service.LLMStreamChatService/api/v1/llm/aiops_service/stream_chat_service", data, options);
|
7
|
+
//# sourceMappingURL=llmStreamChatService.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"llmStreamChatService.js","names":["http","AiopsServiceApi_llmStreamChatService","data","options","post"],"sources":["../../../../../src/api/llm/aiops_service/llmStreamChatService.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ModelLlmChatRequest } from \"../../../model/aiops_service/index.js\";\n\nexport type AiopsServiceApi_LlmStreamChatServiceRequestBody =\n Partial<ModelLlmChatRequest>;\n\nexport interface AiopsServiceApi_LlmStreamChatServiceResponseBody {\n /** 流式接口,返回的是一个数组。fb会做后置校验,这里最好先声明为value格式且name为data。这个返回的为:{\"role\":\"assistant\",\"content\":\"土\"} */\n data?: any[];\n}\n\n/**\n * @description 大模型聊天流式接口\n * @endpoint POST /api/v1/llm/aiops_service/stream_chat_service\n */\nexport const AiopsServiceApi_llmStreamChatService = (\n data: AiopsServiceApi_LlmStreamChatServiceRequestBody,\n options?: HttpOptions\n): Promise<AiopsServiceApi_LlmStreamChatServiceResponseBody> =>\n /**! @contract easyops.api.llm.aiops_service.LLMStreamChatService@1.0.0 */ http.post<AiopsServiceApi_LlmStreamChatServiceResponseBody>(\n \"api/gateway/llm.aiops_service.LLMStreamChatService/api/v1/llm/aiops_service/stream_chat_service\",\n data,\n options\n );\n"],"mappings":"AAAA,SAASA,IAAI,QAAqB,iBAAiB;AAWnD;AACA;AACA;AACA;AACA,OAAO,MAAMC,oCAAoC,GAAGA,CAClDC,IAAqD,EACrDC,OAAqB,KAErB,0EAA2EH,IAAI,CAACI,IAAI,CAClF,iGAAiG,EACjGF,IAAI,EACJC,OACF,CAAC","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/api/llm/aiops_tools/index.ts"],"sourcesContent":["export * from \"./summaryQuestionV2.js\";\nexport * from \"./templateLlmChatV2.js\";\n"],"mappings":"AAAA,cAAc,wBAAwB;AACtC,cAAc,wBAAwB","ignoreList":[]}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { http } from "@next-core/http";
|
2
|
+
/**
|
3
|
+
* @description 根据模板与大模型对话,总结用户问题
|
4
|
+
* @endpoint POST /api/v1/llm/tools/summary_question_v2
|
5
|
+
*/
|
6
|
+
export const AiopsToolsApi_summaryQuestionV2 = async (data, options) => /**! @contract easyops.api.llm.aiops_tools.SummaryQuestionV2@1.0.0 */(await http.post("api/gateway/llm.aiops_tools.SummaryQuestionV2/api/v1/llm/tools/summary_question_v2", data, options)).data;
|
7
|
+
//# sourceMappingURL=summaryQuestionV2.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"summaryQuestionV2.js","names":["http","AiopsToolsApi_summaryQuestionV2","data","options","post"],"sources":["../../../../../src/api/llm/aiops_tools/summaryQuestionV2.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ModelLlmChatMessage } from \"../../../model/aiops_service/index.js\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AiopsToolsApi_SummaryQuestionV2RequestBody {\n /** 总结提示词模版引擎,为空时,使用默认模板 */\n template?: string;\n\n /** 模板引擎的数据,默认会注入 input 变量 */\n variables?: Record<string, any>;\n\n /** 大模型id */\n model?: string;\n\n /** 历史对话消息 */\n historyMessages?: Partial<ModelLlmChatMessage>[];\n\n /** 输入的问题 */\n input?: string;\n\n /** system角色的提示词模板 */\n systemTemplate?: string;\n\n /** system模板所需要的数据 */\n systemVariables?: Record<string, any>;\n\n /** 输入的图片url */\n images?: string[];\n}\n\nexport interface AiopsToolsApi_SummaryQuestionV2ResponseBody {\n /** 总结后的新问题 */\n data?: string;\n}\n\n/**\n * @description 根据模板与大模型对话,总结用户问题\n * @endpoint POST /api/v1/llm/tools/summary_question_v2\n */\nexport const AiopsToolsApi_summaryQuestionV2 = async (\n data: AiopsToolsApi_SummaryQuestionV2RequestBody,\n options?: HttpOptions\n): Promise<AiopsToolsApi_SummaryQuestionV2ResponseBody> =>\n /**! @contract easyops.api.llm.aiops_tools.SummaryQuestionV2@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsToolsApi_SummaryQuestionV2ResponseBody>\n >(\n \"api/gateway/llm.aiops_tools.SummaryQuestionV2/api/v1/llm/tools/summary_question_v2\",\n data,\n options\n )\n ).data;\n"],"mappings":"AAAA,SAASA,IAAI,QAAqB,iBAAiB;AAmCnD;AACA;AACA;AACA;AACA,OAAO,MAAMC,+BAA+B,GAAG,MAAAA,CAC7CC,IAAgD,EAChDC,OAAqB,KAErB,qEAAsE,CACpE,MAAMH,IAAI,CAACI,IAAI,CAGb,oFAAoF,EACpFF,IAAI,EACJC,OACF,CAAC,EACDD,IAAI","ignoreList":[]}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { http } from "@next-core/http";
|
2
|
+
/**
|
3
|
+
* @description 根据模板与大模型对话,返回json
|
4
|
+
* @endpoint POST /api/v1/llm/tools/template_llm_chat_v2
|
5
|
+
*/
|
6
|
+
export const AiopsToolsApi_templateLlmChatV2 = async (data, options) => /**! @contract easyops.api.llm.aiops_tools.TemplateLlmChatV2@1.0.0 */(await http.post("api/gateway/llm.aiops_tools.TemplateLlmChatV2/api/v1/llm/tools/template_llm_chat_v2", data, options)).data;
|
7
|
+
//# sourceMappingURL=templateLlmChatV2.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"templateLlmChatV2.js","names":["http","AiopsToolsApi_templateLlmChatV2","data","options","post"],"sources":["../../../../../src/api/llm/aiops_tools/templateLlmChatV2.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport {\n ModelLlmChatAgentTaskResponse,\n ModelLlmChatMessage,\n} from \"../../../model/aiops_service/index.js\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AiopsToolsApi_TemplateLlmChatV2RequestBody {\n /** 模板,为空时,不使用默认引擎 */\n template?: string;\n\n /** 模板引擎的数据 */\n variables?: Record<string, any>;\n\n /** 大模型id */\n model?: string;\n\n /** 历史对话消息 */\n historyMessages?: Partial<ModelLlmChatMessage>[];\n\n /** 输入对话,模板为空时才生效 */\n input?: string;\n\n /** 输出格式,默认json */\n outputType?: string;\n\n /** 取值范围是:(0.0, 1.0],不能等于 0,默认值为 0.1,值越大,会使输出更随机,更具创造性;值越小,输出会更加稳定或确定 */\n temperature?: number;\n\n /** 是否是调试模式,为true时,返回debug_resp */\n debug?: boolean;\n\n /** 是否是流式 */\n stream?: boolean;\n\n /** system角色的提示词模板 */\n systemTemplate?: string;\n\n /** system模板所需要的数据 */\n systemVariables?: Record<string, any>;\n\n /** 任务id */\n taskId?: string;\n\n /** 输入的图片url */\n images?: string[];\n}\n\nexport type AiopsToolsApi_TemplateLlmChatV2ResponseBody =\n Partial<ModelLlmChatAgentTaskResponse> &\n AiopsToolsApi_TemplateLlmChatV2ResponseBody_2;\n\n/**\n * @description 根据模板与大模型对话,返回json\n * @endpoint POST /api/v1/llm/tools/template_llm_chat_v2\n */\nexport const AiopsToolsApi_templateLlmChatV2 = async (\n data: AiopsToolsApi_TemplateLlmChatV2RequestBody,\n options?: HttpOptions\n): Promise<AiopsToolsApi_TemplateLlmChatV2ResponseBody> =>\n /**! @contract easyops.api.llm.aiops_tools.TemplateLlmChatV2@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsToolsApi_TemplateLlmChatV2ResponseBody>\n >(\n \"api/gateway/llm.aiops_tools.TemplateLlmChatV2/api/v1/llm/tools/template_llm_chat_v2\",\n data,\n options\n )\n ).data;\n\nexport interface AiopsToolsApi_TemplateLlmChatV2ResponseBody_2 {\n /** 提取返回的数据 */\n data?: any;\n\n /** 调试时大模型返回值 */\n debug_resp?: string;\n\n /** 如果解析不到正确的数据格式,则将大模型返回的数据塞到这里 */\n errorOutput?: string;\n}\n"],"mappings":"AAAA,SAASA,IAAI,QAAqB,iBAAiB;AAoDnD;AACA;AACA;AACA;AACA,OAAO,MAAMC,+BAA+B,GAAG,MAAAA,CAC7CC,IAAgD,EAChDC,OAAqB,KAErB,qEAAsE,CACpE,MAAMH,IAAI,CAACI,IAAI,CAGb,qFAAqF,EACrFF,IAAI,EACJC,OACF,CAAC,EACDD,IAAI","ignoreList":[]}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { http } from "@next-core/http";
|
2
|
+
/**
|
3
|
+
* @description 自动生成brick
|
4
|
+
* @endpoint POST /api/v1/llm/virtual_builder/generate_storyboard
|
5
|
+
*/
|
6
|
+
export const VirtualBuilderApi_generateStoryboard = async (data, options) => /**! @contract easyops.api.llm.virtual_builder.GenerateStoryboard@1.0.0 */(await http.post("api/gateway/llm.virtual_builder.GenerateStoryboard/api/v1/llm/virtual_builder/generate_storyboard", data, options)).data;
|
7
|
+
//# sourceMappingURL=generateStoryboard.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"generateStoryboard.js","names":["http","VirtualBuilderApi_generateStoryboard","data","options","post"],"sources":["../../../../../src/api/llm/virtual_builder/generateStoryboard.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface VirtualBuilderApi_GenerateStoryboardRequestBody {\n /** 用户输入 */\n userInput: string;\n\n /** 会话id */\n sessionId?: string;\n}\n\nexport interface VirtualBuilderApi_GenerateStoryboardResponseBody {\n /** llm的输出 */\n outputs?: VirtualBuilderApi_GenerateStoryboardResponseBody_outputs_item[];\n\n /** 会话id */\n sessionId?: string;\n}\n\n/**\n * @description 自动生成brick\n * @endpoint POST /api/v1/llm/virtual_builder/generate_storyboard\n */\nexport const VirtualBuilderApi_generateStoryboard = async (\n data: VirtualBuilderApi_GenerateStoryboardRequestBody,\n options?: HttpOptions\n): Promise<VirtualBuilderApi_GenerateStoryboardResponseBody> =>\n /**! @contract easyops.api.llm.virtual_builder.GenerateStoryboard@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<VirtualBuilderApi_GenerateStoryboardResponseBody>\n >(\n \"api/gateway/llm.virtual_builder.GenerateStoryboard/api/v1/llm/virtual_builder/generate_storyboard\",\n data,\n options\n )\n ).data;\n\nexport interface VirtualBuilderApi_GenerateStoryboardResponseBody_outputs_item {\n /** 输出内容的类型,markdown或者storyboard */\n type?: \"markdown\" | \"storyboard\";\n\n /** 输出内容 */\n content?: string;\n}\n"],"mappings":"AAAA,SAASA,IAAI,QAAqB,iBAAiB;AAmBnD;AACA;AACA;AACA;AACA,OAAO,MAAMC,oCAAoC,GAAG,MAAAA,CAClDC,IAAqD,EACrDC,OAAqB,KAErB,0EAA2E,CACzE,MAAMH,IAAI,CAACI,IAAI,CAGb,mGAAmG,EACnGF,IAAI,EACJC,OACF,CAAC,EACDD,IAAI","ignoreList":[]}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { http } from "@next-core/http";
|
2
|
+
/**
|
3
|
+
* @description 流式自动生成brick
|
4
|
+
* @endpoint POST /api/v1/llm/virtual_builder/generate_storyboard/stream
|
5
|
+
*/
|
6
|
+
export const VirtualBuilderApi_generateStoryboardStream = async (data, options) => /**! @contract easyops.api.llm.virtual_builder.GenerateStoryboardStream@1.0.0 */(await http.post("api/gateway/llm.virtual_builder.GenerateStoryboardStream/api/v1/llm/virtual_builder/generate_storyboard/stream", data, options)).data;
|
7
|
+
//# sourceMappingURL=generateStoryboardStream.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"generateStoryboardStream.js","names":["http","VirtualBuilderApi_generateStoryboardStream","data","options","post"],"sources":["../../../../../src/api/llm/virtual_builder/generateStoryboardStream.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface VirtualBuilderApi_GenerateStoryboardStreamRequestBody {\n /** 用户输入 */\n userInput: string;\n\n /** 会话id */\n sessionId?: string;\n}\n\nexport interface VirtualBuilderApi_GenerateStoryboardStreamResponseBody {\n /** websocket消息信息 */\n websocket?: VirtualBuilderApi_GenerateStoryboardStreamResponseBody_websocket;\n\n /** 会话id */\n sessionId?: string;\n}\n\n/**\n * @description 流式自动生成brick\n * @endpoint POST /api/v1/llm/virtual_builder/generate_storyboard/stream\n */\nexport const VirtualBuilderApi_generateStoryboardStream = async (\n data: VirtualBuilderApi_GenerateStoryboardStreamRequestBody,\n options?: HttpOptions\n): Promise<VirtualBuilderApi_GenerateStoryboardStreamResponseBody> =>\n /**! @contract easyops.api.llm.virtual_builder.GenerateStoryboardStream@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<VirtualBuilderApi_GenerateStoryboardStreamResponseBody>\n >(\n \"api/gateway/llm.virtual_builder.GenerateStoryboardStream/api/v1/llm/virtual_builder/generate_storyboard/stream\",\n data,\n options\n )\n ).data;\n\nexport interface VirtualBuilderApi_GenerateStoryboardStreamResponseBody_websocket {\n /** websocket消息的system */\n system?: string;\n\n /** websocket消息的topic */\n topic?: string;\n}\n"],"mappings":"AAAA,SAASA,IAAI,QAAqB,iBAAiB;AAmBnD;AACA;AACA;AACA;AACA,OAAO,MAAMC,0CAA0C,GAAG,MAAAA,CACxDC,IAA2D,EAC3DC,OAAqB,KAErB,gFAAiF,CAC/E,MAAMH,IAAI,CAACI,IAAI,CAGb,gHAAgH,EAChHF,IAAI,EACJC,OACF,CAAC,EACDD,IAAI","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/api/llm/virtual_builder/index.ts"],"sourcesContent":["export * from \"./generateStoryboard.js\";\nexport * from \"./generateStoryboardStream.js\";\n"],"mappings":"AAAA,cAAc,yBAAyB;AACvC,cAAc,+BAA+B","ignoreList":[]}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export * from "./api/llm/agent/index.js";
|
2
|
+
export * from "./api/llm/aiops_base/index.js";
|
3
|
+
export * from "./api/llm/aiops_memory/index.js";
|
4
|
+
export * from "./api/llm/aiops_prompt/index.js";
|
5
|
+
export * from "./api/llm/aiops_rag/index.js";
|
6
|
+
export * from "./api/llm/aiops_service/index.js";
|
7
|
+
export * from "./api/llm/aiops_tools/index.js";
|
8
|
+
export * from "./api/llm/virtual_builder/index.js";
|
9
|
+
import * as _AiopsServiceModels from "./model/aiops_service/index.js";
|
10
|
+
export { _AiopsServiceModels as AiopsServiceModels };
|
11
|
+
import * as _LlmModels from "./model/llm/index.js";
|
12
|
+
export { _LlmModels as LlmModels };
|
13
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","names":["_AiopsServiceModels","AiopsServiceModels","_LlmModels","LlmModels"],"sources":["../../src/index.ts"],"sourcesContent":["export * from \"./api/llm/agent/index.js\";\nexport * from \"./api/llm/aiops_base/index.js\";\nexport * from \"./api/llm/aiops_memory/index.js\";\nexport * from \"./api/llm/aiops_prompt/index.js\";\nexport * from \"./api/llm/aiops_rag/index.js\";\nexport * from \"./api/llm/aiops_service/index.js\";\nexport * from \"./api/llm/aiops_tools/index.js\";\nexport * from \"./api/llm/virtual_builder/index.js\";\nexport * as AiopsServiceModels from \"./model/aiops_service/index.js\";\nexport * as LlmModels from \"./model/llm/index.js\";\n"],"mappings":"AAAA,cAAc,0BAA0B;AACxC,cAAc,+BAA+B;AAC7C,cAAc,iCAAiC;AAC/C,cAAc,iCAAiC;AAC/C,cAAc,8BAA8B;AAC5C,cAAc,kCAAkC;AAChD,cAAc,gCAAgC;AAC9C,cAAc,oCAAoC;AAAC,YAAAA,mBAAA,MACf,gCAAgC;AAAA,SAAAA,mBAAA,IAAxDC,kBAAkB;AAAA,YAAAC,UAAA,MACH,sBAAsB;AAAA,SAAAA,UAAA,IAArCC,SAAS","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModelLlmChatAgentTaskRequest.js","names":[],"sources":["../../../../src/model/aiops_service/ModelLlmChatAgentTaskRequest.ts"],"sourcesContent":["import { ModelLlmChatMessage } from \"./index.js\";\n\n/** 聊天机器人,处理agent任务的请求 */\nexport interface ModelLlmChatAgentTaskRequest {\n /** 任务需求 */\n input: string;\n\n /** 图片的url,支持多个图片 */\n images: string[];\n\n /** 任务配置 */\n config: Record<string, any>;\n\n /** 当前任务上下文的id */\n conversationId: string;\n\n /** 在多agent场景,指定使用哪个agent */\n agentId: string;\n\n /** 当前任务Id */\n taskId: string;\n\n /** 已经提取的表单数据 */\n formData: any;\n\n /** 助手id */\n robotId: string;\n\n /** 是否流式返回 */\n stream: boolean;\n\n /** 历史会话消息,适用支持多轮会话的agent */\n historyMessages: Partial<ModelLlmChatMessage>[];\n\n /** 流式数据列表(占位符,防止flow builder自动清理流式返回的数据) */\n sseDataList: any[];\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModelLlmChatAgentTaskResponse.js","names":[],"sources":["../../../../src/model/aiops_service/ModelLlmChatAgentTaskResponse.ts"],"sourcesContent":["import { ModelLlmChatMessage } from \"./index.js\";\n\n/** 聊天机器人,选择处理agent的请求返回值 */\nexport interface ModelLlmChatAgentTaskResponse {\n /** 任务id */\n taskId: string;\n\n /** 任务完成的时间戳 */\n created: number;\n\n /** 非流式输出时返回的消息 */\n message: Partial<ModelLlmChatMessage>;\n\n /** sse流式返回时的数据格式 */\n delta: Partial<ModelLlmChatMessage>;\n\n /** 当前任务上下文的id */\n conversationId: string;\n\n /** 流式数据列表(占位符,防止flow builder自动清理流式返回的数据) */\n sseDataList: any;\n\n /** 额外信息。ignoreSave: bool, 忽略保存信息,只通过sse发送消息 */\n extInfo: Record<string, any>;\n\n /** 内容类型,决定该接口返回的内容是什么类型。可选:TEXT,RELATED_QUESTIONS */\n type: string;\n\n /** 消息名称。llm_response, related_questions */\n name: string;\n\n /** agentId */\n agentId: string;\n\n /** 助手id */\n robotId: string;\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModelLlmChatMessage.js","names":[],"sources":["../../../../src/model/aiops_service/ModelLlmChatMessage.ts"],"sourcesContent":["/** 调用语言模型时,将当前对话信息列表作为提示输入给模型, 按照 {\"role\": \"user\", \"content\": \"你好\"} 的json 数组形式进行传参; 可能的消息类型包括 System message、User message、Assistant message 和 Tool message。 */\nexport interface ModelLlmChatMessage {\n /** 消息的角色信息, system, user, assistant, tool */\n role: string;\n\n /** 消息内容。其中包括了tool_calls字段,content字段为空。角色为tool时,tool_message消息内容,为工具被调用后返回的结果 */\n content: string;\n\n /** 模型产生的工具调用消息 */\n tool_calls: ModelLlmChatMessage_tool_calls_item[];\n\n /** tool的调用记录 */\n tool_call_id: string;\n\n /** 图片的url,支持多个图片 */\n images: string[];\n}\n\nexport interface ModelLlmChatMessage_tool_calls_item {\n /** 工具id */\n id?: string;\n\n /** 工具类型,支持web_search、retrieval、function */\n type?: string;\n\n /** type为\"function\"时不为空 */\n function?: ModelLlmChatMessage_tool_calls_item_function;\n}\n\nexport interface ModelLlmChatMessage_tool_calls_item_function {\n /** 函数名称 */\n name?: string;\n\n /** 模型生成的调用函数的参数列表,json 格式。请注意,模型可能会生成无效的JSON,也可能会虚构一些不在您的函数规范中的参数。在调用函数之前,请在代码中验证这些参数是否有效。 */\n arguments?: string;\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModelLlmChatRequest.js","names":[],"sources":["../../../../src/model/aiops_service/ModelLlmChatRequest.ts"],"sourcesContent":["import { ModelLlmChatMessage, ModelLlmChatTools } from \"./index.js\";\n\n/** 聊天机器人,聊天请求 */\nexport interface ModelLlmChatRequest {\n /** 是否需要启用敏感词过滤,默认true */\n enableSensitiveWordsFilter: boolean;\n\n /** 大模型服务名字,支持:zhipu */\n service_name: string;\n\n /** 所要调用的模型编码,例如:glm-4 */\n model: string;\n\n /** 对话列表 */\n messages: Partial<ModelLlmChatMessage>[];\n\n /** 由用户端传参,需保证唯一性;用于区分每次请求的唯一标识,用户端不传时平台会默认生成。 */\n request_id: string;\n\n /** do_sample 为 true 时启用采样策略,do_sample 为 false 时采样策略 temperature、top_p 将不生效 */\n do_sample: boolean;\n\n /** 采样温度,控制输出的随机性,必须为正数\n取值范围是:(0.0, 1.0),不能等于 0,默认值为 0.95,值越大,会使输出更随机,更具创造性;值越小,输出会更加稳定或确定\n建议您根据应用场景调整 top_p 或 temperature 参数,但不要同时调整两个参数 */\n temperature: number;\n\n /** 模型输出最大 tokens,最大输入为8192,默认值为1024 */\n max_tokens: number;\n\n /** 可供模型调用的工具列表,tools 字段会计算 tokens ,同样受到 tokens 长度的限制 */\n tools: Partial<ModelLlmChatTools>[];\n\n /** 字符串或者对象,none means the model will not call any tool and instead generates a message. auto means the model can pick between generating a message or calling one or more tools. required means the model must call one or more tools.Specifying a particular tool via {\"type\": \"function\", \"function\": {\"name\": \"my_function\"}} forces the model to call that tool. */\n tool_choice: any;\n\n /** 是否使用流式 */\n stream: boolean;\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModelLlmChatResponse.js","names":[],"sources":["../../../../src/model/aiops_service/ModelLlmChatResponse.ts"],"sourcesContent":["import { ModelLlmChatMessage } from \"./index.js\";\n\n/** 聊天机器人,聊天请求 */\nexport interface ModelLlmChatResponse {\n /** 模型名称,消息内容。目前先只返回这个 */\n content: string;\n\n /** 任务ID */\n id: string;\n\n /** 请求创建时间,是以秒为单位的 Unix 时间戳 */\n created: number;\n\n /** 模型名称 */\n model: string;\n\n /** 当前对话的模型输出内容 */\n choices: ModelLlmChatResponse_choices_item[];\n\n /** 结束时返回本次模型调用的 tokens 数量统计。 */\n usage: ModelLlmChatResponse_usage;\n}\n\nexport interface ModelLlmChatResponse_choices_item {\n /** 结果下标 */\n index?: number;\n\n /** 模型推理终止的原因。stop代表推理自然结束或触发停止词。tool_calls 代表模型命中函数。length代表到达,tokens长度上限。 */\n finish_reason?: string;\n\n /** 模型返回的文本信息 */\n message?: Partial<ModelLlmChatMessage>;\n}\n\nexport interface ModelLlmChatResponse_usage {\n /** 用户输入的 tokens 数量 */\n prompt_tokens?: number;\n\n /** 模型输入的 tokens 数量 */\n completion_tokens?: number;\n\n /** 总 tokens 数量 */\n total_tokens?: number;\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModelLlmChatSelectAgentRequest.js","names":[],"sources":["../../../../src/model/aiops_service/ModelLlmChatSelectAgentRequest.ts"],"sourcesContent":["/** 聊天机器人,选择处理agent的请求参数 */\nexport interface ModelLlmChatSelectAgentRequest {\n /** 任务需求 */\n input: string;\n\n /** 任务配置 */\n config: Record<string, any>;\n\n /** 当前任务上下文的id */\n conversationId: string;\n\n /** 在多agent场景,指定使用哪个agent */\n agentId: string;\n\n /** 当前任务Id */\n taskId: string;\n\n /** 已经提取的表单数据 */\n formData: any;\n\n /** 助手id */\n robotId: string;\n\n /** 返回历史数据的数据量 */\n historyLimit: number;\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModelLlmChatSelectAgentResponse.js","names":[],"sources":["../../../../src/model/aiops_service/ModelLlmChatSelectAgentResponse.ts"],"sourcesContent":["import { ModelLlmChatMessage } from \"./index.js\";\n\n/** 聊天机器人,选择处理agent的请求返回值 */\nexport interface ModelLlmChatSelectAgentResponse {\n /** 历史数据 */\n historyMessages: Partial<ModelLlmChatMessage>[];\n\n /** 当前任务上下文的id */\n conversationId: string;\n\n /** 中断消息,不再进行转发 */\n breakMsg: string;\n\n /** 在多agent场景,指定使用哪个agent */\n agentId: string;\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModelLlmChatTools.js","names":[],"sources":["../../../../src/model/aiops_service/ModelLlmChatTools.ts"],"sourcesContent":["/** 外部工具信息 */\nexport interface ModelLlmChatTools {\n /** 工具类型,目前支持function、retrieval(智谱知识库)、web_search */\n type: string;\n\n /** 仅当工具类型为function时补充 */\n function: ModelLlmChatTools_function;\n\n /** 仅当工具类型为retrieval时补充 */\n retrieval: ModelLlmChatTools_retrieval;\n\n /** 仅当工具类型为web_search时补充,如果tools中存在类型retrieval,此时web_search不生效。 */\n web_search: ModelLlmChatTools_web_search;\n}\n\nexport interface ModelLlmChatTools_function {\n /** 函数名称,只能包含a-z,A-Z,0-9,下划线和中横线。最大长度限制为64 */\n name?: string;\n\n /** 用于描述函数功能。模型会根据这段描述决定函数调用方式。 */\n description?: string;\n\n /** parameter 字段需要传入一个 Json Schema 对象,以准确地定义函数所接受的参数。若调用函数时不需要传入参数 */\n parameters?: Record<string, any>;\n}\n\nexport interface ModelLlmChatTools_retrieval {\n /** 当涉及到知识库ID时,请前往开放平台的知识库模块进行创建或获取。 */\n knowledge_id?: string;\n\n /** 请求模型时的知识库模板 */\n prompt_template?: string;\n}\n\nexport interface ModelLlmChatTools_web_search {\n /** 默认启用搜索 */\n enable?: boolean;\n\n /** 强制搜索自定义关键内容,此时模型会根据自定义搜索关键内容返回的结果作为背景知识来回答用户发起的对话。 */\n search_query?: string;\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export * from "./ModelLlmChatMessage.js";
|
2
|
+
export * from "./ModelLlmChatAgentTaskRequest.js";
|
3
|
+
export * from "./ModelLlmChatAgentTaskResponse.js";
|
4
|
+
export * from "./ModelLlmChatTools.js";
|
5
|
+
export * from "./ModelLlmChatRequest.js";
|
6
|
+
export * from "./ModelLlmChatResponse.js";
|
7
|
+
export * from "./ModelLlmChatSelectAgentRequest.js";
|
8
|
+
export * from "./ModelLlmChatSelectAgentResponse.js";
|
9
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/model/aiops_service/index.ts"],"sourcesContent":["export * from \"./ModelLlmChatMessage.js\";\nexport * from \"./ModelLlmChatAgentTaskRequest.js\";\nexport * from \"./ModelLlmChatAgentTaskResponse.js\";\nexport * from \"./ModelLlmChatTools.js\";\nexport * from \"./ModelLlmChatRequest.js\";\nexport * from \"./ModelLlmChatResponse.js\";\nexport * from \"./ModelLlmChatSelectAgentRequest.js\";\nexport * from \"./ModelLlmChatSelectAgentResponse.js\";\n"],"mappings":"AAAA,cAAc,0BAA0B;AACxC,cAAc,mCAAmC;AACjD,cAAc,oCAAoC;AAClD,cAAc,wBAAwB;AACtC,cAAc,0BAA0B;AACxC,cAAc,2BAA2B;AACzC,cAAc,qCAAqC;AACnD,cAAc,sCAAsC","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModelLlmDocument.js","names":[],"sources":["../../../../src/model/llm/ModelLlmDocument.ts"],"sourcesContent":["/** document */\nexport interface ModelLlmDocument {\n /** page_content */\n pageContent: string;\n\n /** id */\n id: string;\n\n /** metadata */\n metadata: Record<string, any>;\n\n /** pageContent length */\n len: number;\n\n /** 与输入的相似度 */\n score: number;\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModelLlmMemory.js","names":[],"sources":["../../../../src/model/llm/ModelLlmMemory.ts"],"sourcesContent":["/** 大模型记忆 */\nexport interface ModelLlmMemory {\n /** 会话id */\n conversationId: string;\n\n /** 记忆的key */\n memKey: string;\n\n /** 记忆的描述信息 */\n description: string;\n\n /** 记忆的值 */\n memValue: string;\n\n /** 记忆的修改时间,例如:2024-09-04 15:21:20 */\n mtime: string;\n\n /** 记忆只用于保存,不会给到大模型 */\n onlySave: boolean;\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModelLlmMemoryEnv.js","names":[],"sources":["../../../../src/model/llm/ModelLlmMemoryEnv.ts"],"sourcesContent":["/** 大模型记忆环境 */\nexport interface ModelLlmMemoryEnv {\n /** 唯一key,创建时不需要传 */\n _row_id: string;\n\n /** 环境名称 */\n name: string;\n\n /** 会话id */\n conversationId: string;\n\n /** 备注信息 */\n remark: string;\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/model/llm/index.ts"],"sourcesContent":["export * from \"./ModelLlmDocument.js\";\nexport * from \"./ModelLlmMemoryEnv.js\";\nexport * from \"./ModelLlmMemory.js\";\n"],"mappings":"AAAA,cAAc,uBAAuB;AACrC,cAAc,wBAAwB;AACtC,cAAc,qBAAqB","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"wrapper.js","names":[],"sources":["../../src/wrapper.ts"],"sourcesContent":["export interface ResponseBodyWrapper<T> {\n code: number;\n data: T;\n error?: string;\n message?: string;\n}\n\nexport interface ResponseListWrapper<T> {\n list: T[];\n page: number;\n page_size: number;\n total: number;\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
import { ModelLlmChatAgentTaskRequest, ModelLlmChatAgentTaskResponse } from "../../../model/aiops_service/index.js";
|
3
|
+
export type AgentApi_BaseGeneralAgentRequestBody = Partial<ModelLlmChatAgentTaskRequest>;
|
4
|
+
/** 接口返回,有两种格式,流式返回为delta, 非流式返回为message
|
5
|
+
*/
|
6
|
+
export type AgentApi_BaseGeneralAgentResponseBody = Partial<ModelLlmChatAgentTaskResponse>;
|
7
|
+
/**
|
8
|
+
* @description 基础agent,支持知识库、执行工具
|
9
|
+
* @endpoint POST /api/v1/llm/agent/base
|
10
|
+
*/
|
11
|
+
export declare const AgentApi_baseGeneralAgent: (data: AgentApi_BaseGeneralAgentRequestBody, options?: HttpOptions) => Promise<AgentApi_BaseGeneralAgentResponseBody>;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
import { ModelLlmChatAgentTaskRequest, ModelLlmChatAgentTaskResponse } from "../../../model/aiops_service/index.js";
|
3
|
+
export type AgentApi_WebSearchAgentRequestBody = Partial<ModelLlmChatAgentTaskRequest>;
|
4
|
+
/** 接口返回,有两种格式,流式返回为delta, 非流式返回为message
|
5
|
+
*/
|
6
|
+
export type AgentApi_WebSearchAgentResponseBody = Partial<ModelLlmChatAgentTaskResponse>;
|
7
|
+
/**
|
8
|
+
* @description 网络搜索的agent
|
9
|
+
* @endpoint POST /api/v1/llm/agent/web_search
|
10
|
+
*/
|
11
|
+
export declare const AgentApi_webSearchAgent: (data: AgentApi_WebSearchAgentRequestBody, options?: HttpOptions) => Promise<AgentApi_WebSearchAgentResponseBody>;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
export interface AiopsBaseApi_DeleteEmbeddingRequestBody {
|
3
|
+
/** 知识库id,同search中的命名空间(废弃) */
|
4
|
+
namespace?: string;
|
5
|
+
/** 是否删除整个知识库(废弃) */
|
6
|
+
deleteKnowledge?: boolean;
|
7
|
+
/** 文档所包含的id列表(废弃) */
|
8
|
+
ids?: string[];
|
9
|
+
/** 文档的instanceId */
|
10
|
+
instanceIds?: string[];
|
11
|
+
}
|
12
|
+
/**
|
13
|
+
* @description 删除向量数据库中的向量
|
14
|
+
* @endpoint POST /api/v1/llm/aiops_base/embedding/delete
|
15
|
+
*/
|
16
|
+
export declare const AiopsBaseApi_deleteEmbedding: (data: AiopsBaseApi_DeleteEmbeddingRequestBody, options?: HttpOptions) => Promise<void>;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
export interface AiopsBaseApi_DeleteKnowledgeRequestBody {
|
3
|
+
/** 知识库的instanceId */
|
4
|
+
instanceId?: string;
|
5
|
+
}
|
6
|
+
/**
|
7
|
+
* @description 删除知识库
|
8
|
+
* @endpoint POST /api/v1/llm/aiops_base/knowledge/delete
|
9
|
+
*/
|
10
|
+
export declare const AiopsBaseApi_deleteKnowledge: (data: AiopsBaseApi_DeleteKnowledgeRequestBody, options?: HttpOptions) => Promise<void>;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
import { ModelLlmDocument } from "../../../model/llm/index.js";
|
3
|
+
export interface AiopsBaseApi_ImportDocumentEmbeddingsRequestBody {
|
4
|
+
/** 导入的namespace */
|
5
|
+
namespace?: string;
|
6
|
+
/** doc id */
|
7
|
+
docId?: string;
|
8
|
+
/** 导入的document */
|
9
|
+
docList?: AiopsBaseApi_ImportDocumentEmbeddingsRequestBody_docList_item[];
|
10
|
+
/** 是否append */
|
11
|
+
append?: boolean;
|
12
|
+
}
|
13
|
+
export interface AiopsBaseApi_ImportDocumentEmbeddingsResponseBody {
|
14
|
+
/** 解析的文档内容 */
|
15
|
+
docs?: Partial<ModelLlmDocument>[];
|
16
|
+
}
|
17
|
+
/**
|
18
|
+
* @description 导入document
|
19
|
+
* @endpoint POST /api/v1/llm/aiops_base/import_doc
|
20
|
+
*/
|
21
|
+
export declare const AiopsBaseApi_importDocumentEmbeddings: (data: AiopsBaseApi_ImportDocumentEmbeddingsRequestBody, options?: HttpOptions) => Promise<AiopsBaseApi_ImportDocumentEmbeddingsResponseBody>;
|
22
|
+
export interface AiopsBaseApi_ImportDocumentEmbeddingsRequestBody_docList_item {
|
23
|
+
/** 内容 */
|
24
|
+
pageContent?: string;
|
25
|
+
/** metadata */
|
26
|
+
metadata?: Record<string, any>;
|
27
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export * from "./deleteEmbedding.js";
|
2
|
+
export * from "./deleteKnowledge.js";
|
3
|
+
export * from "./importDocumentEmbeddings.js";
|
4
|
+
export * from "./llmChatServiceV1.js";
|
5
|
+
export * from "./openaiChat.js";
|
6
|
+
export * from "./searchEmbedding.js";
|
7
|
+
export * from "./upsertDocument.js";
|
8
|
+
export * from "./upsertWithDocId.js";
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
import { ModelLlmChatRequest, ModelLlmChatResponse } from "../../../model/aiops_service/index.js";
|
3
|
+
export type AiopsBaseApi_LlmChatServiceV1RequestBody = Partial<ModelLlmChatRequest>;
|
4
|
+
/** 接口返回,有两种格式,流式返回为sseDataList:[{"role":"assistant","content":"abc"}],非流式返回为LLMChatResponse */
|
5
|
+
export type AiopsBaseApi_LlmChatServiceV1ResponseBody = Partial<ModelLlmChatResponse> & AiopsBaseApi_LlmChatServiceV1ResponseBody_2;
|
6
|
+
/**
|
7
|
+
* @description 大模型聊天接口
|
8
|
+
* @endpoint POST /api/v1/llm/aiops_base/chat_service
|
9
|
+
*/
|
10
|
+
export declare const AiopsBaseApi_llmChatServiceV1: (data: AiopsBaseApi_LlmChatServiceV1RequestBody, options?: HttpOptions) => Promise<AiopsBaseApi_LlmChatServiceV1ResponseBody>;
|
11
|
+
export interface AiopsBaseApi_LlmChatServiceV1ResponseBody_2 {
|
12
|
+
/** 流式数据列表 */
|
13
|
+
sseDataList?: any[];
|
14
|
+
}
|