@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,46 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
import { ModelLlmChatAgentTaskResponse, ModelLlmChatMessage } from "../../../model/aiops_service/index.js";
|
3
|
+
export interface AiopsServiceApi_LlmAgentChatRequestBody {
|
4
|
+
/** 任务需求, 支持模板引擎 */
|
5
|
+
inputTemplate?: string;
|
6
|
+
/** 模板所需要的数据 */
|
7
|
+
inputVariables?: Record<string, any>;
|
8
|
+
/** system角色的提示词模板 */
|
9
|
+
systemTemplate?: string;
|
10
|
+
/** system模板所需要的数据 */
|
11
|
+
systemVariables?: Record<string, any>;
|
12
|
+
/** 任务配置 */
|
13
|
+
config?: Record<string, any>;
|
14
|
+
/** 当前任务上下文的id */
|
15
|
+
conversationId?: string;
|
16
|
+
/** 在多agent场景,指定使用哪个agent */
|
17
|
+
agentId?: string;
|
18
|
+
/** 当前任务Id */
|
19
|
+
taskId?: string;
|
20
|
+
/** 已经提取的表单数据 */
|
21
|
+
formData?: any;
|
22
|
+
/** 输出格式,默认json */
|
23
|
+
outputType?: string;
|
24
|
+
/** 是否流式返回 */
|
25
|
+
stream?: boolean;
|
26
|
+
/** 历史会话消息,适用支持多轮会话的agent */
|
27
|
+
historyMessages?: Partial<ModelLlmChatMessage>[];
|
28
|
+
/** 图片的url,支持多个图片 */
|
29
|
+
images?: string[];
|
30
|
+
}
|
31
|
+
/** 接口返回,有两种格式,流式返回为delta, 非流式返回为message
|
32
|
+
*/
|
33
|
+
export type AiopsServiceApi_LlmAgentChatResponseBody = Partial<ModelLlmChatAgentTaskResponse> & AiopsServiceApi_LlmAgentChatResponseBody_2;
|
34
|
+
/**
|
35
|
+
* @description 大模型agent对话,不会记录会话历史
|
36
|
+
* @endpoint POST /api/v1/llm/aiops_service/agent/chat
|
37
|
+
*/
|
38
|
+
export declare const AiopsServiceApi_llmAgentChat: (data: AiopsServiceApi_LlmAgentChatRequestBody, options?: HttpOptions) => Promise<AiopsServiceApi_LlmAgentChatResponseBody>;
|
39
|
+
export interface AiopsServiceApi_LlmAgentChatResponseBody_2 {
|
40
|
+
/** 提取返回的数据 */
|
41
|
+
data?: any;
|
42
|
+
/** 调试时大模型返回值 */
|
43
|
+
debug_resp?: string;
|
44
|
+
/** 如果解析不到正确的数据格式,则将大模型返回的数据塞到这里 */
|
45
|
+
errorOutput?: string;
|
46
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
import { ModelLlmChatSelectAgentRequest, ModelLlmChatSelectAgentResponse } from "../../../model/aiops_service/index.js";
|
3
|
+
export type AiopsServiceApi_LlmChatSelectAgentRequestBody = Partial<ModelLlmChatSelectAgentRequest>;
|
4
|
+
/** 接口返回选择agent的结果,有breakMsg时,需要中断 */
|
5
|
+
export type AiopsServiceApi_LlmChatSelectAgentResponseBody = Partial<ModelLlmChatSelectAgentResponse>;
|
6
|
+
/**
|
7
|
+
* @description 大模型选择处理的agent
|
8
|
+
* @endpoint POST /api/v1/llm/aiops_service/agent/select
|
9
|
+
*/
|
10
|
+
export declare const AiopsServiceApi_llmChatSelectAgent: (data: AiopsServiceApi_LlmChatSelectAgentRequestBody, options?: HttpOptions) => Promise<AiopsServiceApi_LlmChatSelectAgentResponseBody>;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
import { ModelLlmChatRequest, ModelLlmChatResponse } from "../../../model/aiops_service/index.js";
|
3
|
+
export type AiopsServiceApi_LlmChatServiceRequestBody = Partial<ModelLlmChatRequest>;
|
4
|
+
/** 接口返回,有两种格式,流式返回为sseDataList:[{"role":"assistant","content":"abc"}],非流式返回为LLMChatResponse */
|
5
|
+
export type AiopsServiceApi_LlmChatServiceResponseBody = Partial<ModelLlmChatResponse> & AiopsServiceApi_LlmChatServiceResponseBody_2;
|
6
|
+
/**
|
7
|
+
* @description 大模型聊天接口
|
8
|
+
* @endpoint POST /api/v1/llm/aiops_service/chat_service
|
9
|
+
*/
|
10
|
+
export declare const AiopsServiceApi_llmChatService: (data: AiopsServiceApi_LlmChatServiceRequestBody, options?: HttpOptions) => Promise<AiopsServiceApi_LlmChatServiceResponseBody>;
|
11
|
+
export interface AiopsServiceApi_LlmChatServiceResponseBody_2 {
|
12
|
+
/** 流式数据列表 */
|
13
|
+
sseDataList?: any[];
|
14
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
export interface AiopsServiceApi_LlmCreateConversationRequestBody {
|
3
|
+
/** sessionId */
|
4
|
+
sessionId?: string;
|
5
|
+
/** 会话标题 */
|
6
|
+
conversationTitle?: string;
|
7
|
+
/** 助手id */
|
8
|
+
robotId?: string;
|
9
|
+
}
|
10
|
+
export interface AiopsServiceApi_LlmCreateConversationResponseBody {
|
11
|
+
/** 会话ID */
|
12
|
+
conversationId?: string;
|
13
|
+
}
|
14
|
+
/**
|
15
|
+
* @description 大模型新建会话
|
16
|
+
* @endpoint POST /api/v1/llm/aiops_service/conversation/create
|
17
|
+
*/
|
18
|
+
export declare const AiopsServiceApi_llmCreateConversation: (data: AiopsServiceApi_LlmCreateConversationRequestBody, options?: HttpOptions) => Promise<AiopsServiceApi_LlmCreateConversationResponseBody>;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
export interface AiopsServiceApi_LlmEmbeddingDeleteDocsRequestBody {
|
3
|
+
/** 知识库id,同search中的命名空间 */
|
4
|
+
knowledgeId?: string;
|
5
|
+
/** 是否删除整个知识库 */
|
6
|
+
deleteKnowledge?: boolean;
|
7
|
+
/** 文档所包含的id列表 */
|
8
|
+
ids?: string[];
|
9
|
+
}
|
10
|
+
export type AiopsServiceApi_LlmEmbeddingDeleteDocsResponseBody = Record<string, any>;
|
11
|
+
/**
|
12
|
+
* @description 向量数据库中删除知识库中的文档
|
13
|
+
* @endpoint POST /api/v1/llm/aiops_service/delete_docs
|
14
|
+
*/
|
15
|
+
export declare const AiopsServiceApi_llmEmbeddingDeleteDocs: (data: AiopsServiceApi_LlmEmbeddingDeleteDocsRequestBody, options?: HttpOptions) => Promise<AiopsServiceApi_LlmEmbeddingDeleteDocsResponseBody>;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
import { ModelLlmDocument } from "../../../model/llm/index.js";
|
3
|
+
export interface AiopsServiceApi_LlmEmbeddingImportUrlRequestBody {
|
4
|
+
/** 知识库id,同search中的命名空间 */
|
5
|
+
knowledgeId?: string;
|
6
|
+
/** 文档id */
|
7
|
+
docId?: string;
|
8
|
+
/** 文档链接 */
|
9
|
+
url?: string;
|
10
|
+
/** 优先使用openapiUrl,上面的url目前不生效 */
|
11
|
+
openapiUrl?: string;
|
12
|
+
/** 文档类型,为file或者url */
|
13
|
+
docType?: string;
|
14
|
+
/** 是否为append */
|
15
|
+
append?: boolean;
|
16
|
+
}
|
17
|
+
export interface AiopsServiceApi_LlmEmbeddingImportUrlResponseBody {
|
18
|
+
/** 解析的文档内容 */
|
19
|
+
docs?: Partial<ModelLlmDocument>[];
|
20
|
+
}
|
21
|
+
/**
|
22
|
+
* @description 向向量数据库中导入知识库文档
|
23
|
+
* @endpoint POST /api/v1/llm/aiops_service/import_url
|
24
|
+
*/
|
25
|
+
export declare const AiopsServiceApi_llmEmbeddingImportUrl: (data: AiopsServiceApi_LlmEmbeddingImportUrlRequestBody, options?: HttpOptions) => Promise<AiopsServiceApi_LlmEmbeddingImportUrlResponseBody>;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
import { ModelLlmDocument } from "../../../model/llm/index.js";
|
3
|
+
export interface AiopsServiceApi_LlmEmbeddingSearchRequestBody {
|
4
|
+
/** 命名空间 */
|
5
|
+
namespace?: string;
|
6
|
+
/** 查询的句子 */
|
7
|
+
query?: string;
|
8
|
+
/** 过滤条件 */
|
9
|
+
filter?: Record<string, any>;
|
10
|
+
/** 返回topk条记录 */
|
11
|
+
topk?: number;
|
12
|
+
}
|
13
|
+
export interface AiopsServiceApi_LlmEmbeddingSearchResponseBody {
|
14
|
+
/** 相似查询结果 */
|
15
|
+
matchedDocs?: Partial<ModelLlmDocument>[];
|
16
|
+
}
|
17
|
+
/**
|
18
|
+
* @description 从向量数据库查询匹配的文档
|
19
|
+
* @endpoint POST /api/v1/llm/aiops_service/embedding/search_doc
|
20
|
+
*/
|
21
|
+
export declare const AiopsServiceApi_llmEmbeddingSearch: (data: AiopsServiceApi_LlmEmbeddingSearchRequestBody, options?: HttpOptions) => Promise<AiopsServiceApi_LlmEmbeddingSearchResponseBody>;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
export interface AiopsServiceApi_LlmExecToolsRequestBody {
|
3
|
+
/** 工具id */
|
4
|
+
toolId: string;
|
5
|
+
/** 输入的参数 */
|
6
|
+
parameters?: Record<string, any>;
|
7
|
+
/** 当前任务上下文的id */
|
8
|
+
conversationId?: string;
|
9
|
+
/** 在多agent场景,指定使用哪个agent */
|
10
|
+
agentId?: string;
|
11
|
+
/** 执行工具的过程id */
|
12
|
+
callId?: string;
|
13
|
+
}
|
14
|
+
export interface AiopsServiceApi_LlmExecToolsResponseBody {
|
15
|
+
/** 执行工具的结果 */
|
16
|
+
data?: any;
|
17
|
+
/** 执行工具的过程id */
|
18
|
+
callId?: string;
|
19
|
+
}
|
20
|
+
/**
|
21
|
+
* @description 大模型执行工具
|
22
|
+
* @endpoint POST /api/v1/llm/aiops_service/tools/exec
|
23
|
+
*/
|
24
|
+
export declare const AiopsServiceApi_llmExecTools: (data: AiopsServiceApi_LlmExecToolsRequestBody, options?: HttpOptions) => Promise<AiopsServiceApi_LlmExecToolsResponseBody>;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
import { ModelLlmChatAgentTaskRequest, ModelLlmChatAgentTaskResponse } from "../../../model/aiops_service/index.js";
|
3
|
+
export type AiopsServiceApi_LlmRobotChatRequestBody = Partial<ModelLlmChatAgentTaskRequest>;
|
4
|
+
/** 接口返回,有两种格式,流式返回为delta, 非流式返回为message
|
5
|
+
*/
|
6
|
+
export type AiopsServiceApi_LlmRobotChatResponseBody = Partial<ModelLlmChatAgentTaskResponse>;
|
7
|
+
/**
|
8
|
+
* @description 大模型助手聊天
|
9
|
+
* @endpoint POST /api/v1/llm/aiops_service/robot/chat
|
10
|
+
*/
|
11
|
+
export declare const AiopsServiceApi_llmRobotChat: (data: AiopsServiceApi_LlmRobotChatRequestBody, options?: HttpOptions) => Promise<AiopsServiceApi_LlmRobotChatResponseBody>;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
import { ModelLlmChatRequest } from "../../../model/aiops_service/index.js";
|
3
|
+
export type AiopsServiceApi_LlmStreamChatServiceRequestBody = Partial<ModelLlmChatRequest>;
|
4
|
+
export interface AiopsServiceApi_LlmStreamChatServiceResponseBody {
|
5
|
+
/** 流式接口,返回的是一个数组。fb会做后置校验,这里最好先声明为value格式且name为data。这个返回的为:{"role":"assistant","content":"土"} */
|
6
|
+
data?: any[];
|
7
|
+
}
|
8
|
+
/**
|
9
|
+
* @description 大模型聊天流式接口
|
10
|
+
* @endpoint POST /api/v1/llm/aiops_service/stream_chat_service
|
11
|
+
*/
|
12
|
+
export declare const AiopsServiceApi_llmStreamChatService: (data: AiopsServiceApi_LlmStreamChatServiceRequestBody, options?: HttpOptions) => Promise<AiopsServiceApi_LlmStreamChatServiceResponseBody>;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
import { ModelLlmChatMessage } from "../../../model/aiops_service/index.js";
|
3
|
+
export interface AiopsToolsApi_SummaryQuestionV2RequestBody {
|
4
|
+
/** 总结提示词模版引擎,为空时,使用默认模板 */
|
5
|
+
template?: string;
|
6
|
+
/** 模板引擎的数据,默认会注入 input 变量 */
|
7
|
+
variables?: Record<string, any>;
|
8
|
+
/** 大模型id */
|
9
|
+
model?: string;
|
10
|
+
/** 历史对话消息 */
|
11
|
+
historyMessages?: Partial<ModelLlmChatMessage>[];
|
12
|
+
/** 输入的问题 */
|
13
|
+
input?: string;
|
14
|
+
/** system角色的提示词模板 */
|
15
|
+
systemTemplate?: string;
|
16
|
+
/** system模板所需要的数据 */
|
17
|
+
systemVariables?: Record<string, any>;
|
18
|
+
/** 输入的图片url */
|
19
|
+
images?: string[];
|
20
|
+
}
|
21
|
+
export interface AiopsToolsApi_SummaryQuestionV2ResponseBody {
|
22
|
+
/** 总结后的新问题 */
|
23
|
+
data?: string;
|
24
|
+
}
|
25
|
+
/**
|
26
|
+
* @description 根据模板与大模型对话,总结用户问题
|
27
|
+
* @endpoint POST /api/v1/llm/tools/summary_question_v2
|
28
|
+
*/
|
29
|
+
export declare const AiopsToolsApi_summaryQuestionV2: (data: AiopsToolsApi_SummaryQuestionV2RequestBody, options?: HttpOptions) => Promise<AiopsToolsApi_SummaryQuestionV2ResponseBody>;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
import { ModelLlmChatAgentTaskResponse, ModelLlmChatMessage } from "../../../model/aiops_service/index.js";
|
3
|
+
export interface AiopsToolsApi_TemplateLlmChatV2RequestBody {
|
4
|
+
/** 模板,为空时,不使用默认引擎 */
|
5
|
+
template?: string;
|
6
|
+
/** 模板引擎的数据 */
|
7
|
+
variables?: Record<string, any>;
|
8
|
+
/** 大模型id */
|
9
|
+
model?: string;
|
10
|
+
/** 历史对话消息 */
|
11
|
+
historyMessages?: Partial<ModelLlmChatMessage>[];
|
12
|
+
/** 输入对话,模板为空时才生效 */
|
13
|
+
input?: string;
|
14
|
+
/** 输出格式,默认json */
|
15
|
+
outputType?: string;
|
16
|
+
/** 取值范围是:(0.0, 1.0],不能等于 0,默认值为 0.1,值越大,会使输出更随机,更具创造性;值越小,输出会更加稳定或确定 */
|
17
|
+
temperature?: number;
|
18
|
+
/** 是否是调试模式,为true时,返回debug_resp */
|
19
|
+
debug?: boolean;
|
20
|
+
/** 是否是流式 */
|
21
|
+
stream?: boolean;
|
22
|
+
/** system角色的提示词模板 */
|
23
|
+
systemTemplate?: string;
|
24
|
+
/** system模板所需要的数据 */
|
25
|
+
systemVariables?: Record<string, any>;
|
26
|
+
/** 任务id */
|
27
|
+
taskId?: string;
|
28
|
+
/** 输入的图片url */
|
29
|
+
images?: string[];
|
30
|
+
}
|
31
|
+
export type AiopsToolsApi_TemplateLlmChatV2ResponseBody = Partial<ModelLlmChatAgentTaskResponse> & AiopsToolsApi_TemplateLlmChatV2ResponseBody_2;
|
32
|
+
/**
|
33
|
+
* @description 根据模板与大模型对话,返回json
|
34
|
+
* @endpoint POST /api/v1/llm/tools/template_llm_chat_v2
|
35
|
+
*/
|
36
|
+
export declare const AiopsToolsApi_templateLlmChatV2: (data: AiopsToolsApi_TemplateLlmChatV2RequestBody, options?: HttpOptions) => Promise<AiopsToolsApi_TemplateLlmChatV2ResponseBody>;
|
37
|
+
export interface AiopsToolsApi_TemplateLlmChatV2ResponseBody_2 {
|
38
|
+
/** 提取返回的数据 */
|
39
|
+
data?: any;
|
40
|
+
/** 调试时大模型返回值 */
|
41
|
+
debug_resp?: string;
|
42
|
+
/** 如果解析不到正确的数据格式,则将大模型返回的数据塞到这里 */
|
43
|
+
errorOutput?: string;
|
44
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
export interface VirtualBuilderApi_GenerateStoryboardRequestBody {
|
3
|
+
/** 用户输入 */
|
4
|
+
userInput: string;
|
5
|
+
/** 会话id */
|
6
|
+
sessionId?: string;
|
7
|
+
}
|
8
|
+
export interface VirtualBuilderApi_GenerateStoryboardResponseBody {
|
9
|
+
/** llm的输出 */
|
10
|
+
outputs?: VirtualBuilderApi_GenerateStoryboardResponseBody_outputs_item[];
|
11
|
+
/** 会话id */
|
12
|
+
sessionId?: string;
|
13
|
+
}
|
14
|
+
/**
|
15
|
+
* @description 自动生成brick
|
16
|
+
* @endpoint POST /api/v1/llm/virtual_builder/generate_storyboard
|
17
|
+
*/
|
18
|
+
export declare const VirtualBuilderApi_generateStoryboard: (data: VirtualBuilderApi_GenerateStoryboardRequestBody, options?: HttpOptions) => Promise<VirtualBuilderApi_GenerateStoryboardResponseBody>;
|
19
|
+
export interface VirtualBuilderApi_GenerateStoryboardResponseBody_outputs_item {
|
20
|
+
/** 输出内容的类型,markdown或者storyboard */
|
21
|
+
type?: "markdown" | "storyboard";
|
22
|
+
/** 输出内容 */
|
23
|
+
content?: string;
|
24
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
export interface VirtualBuilderApi_GenerateStoryboardStreamRequestBody {
|
3
|
+
/** 用户输入 */
|
4
|
+
userInput: string;
|
5
|
+
/** 会话id */
|
6
|
+
sessionId?: string;
|
7
|
+
}
|
8
|
+
export interface VirtualBuilderApi_GenerateStoryboardStreamResponseBody {
|
9
|
+
/** websocket消息信息 */
|
10
|
+
websocket?: VirtualBuilderApi_GenerateStoryboardStreamResponseBody_websocket;
|
11
|
+
/** 会话id */
|
12
|
+
sessionId?: string;
|
13
|
+
}
|
14
|
+
/**
|
15
|
+
* @description 流式自动生成brick
|
16
|
+
* @endpoint POST /api/v1/llm/virtual_builder/generate_storyboard/stream
|
17
|
+
*/
|
18
|
+
export declare const VirtualBuilderApi_generateStoryboardStream: (data: VirtualBuilderApi_GenerateStoryboardStreamRequestBody, options?: HttpOptions) => Promise<VirtualBuilderApi_GenerateStoryboardStreamResponseBody>;
|
19
|
+
export interface VirtualBuilderApi_GenerateStoryboardStreamResponseBody_websocket {
|
20
|
+
/** websocket消息的system */
|
21
|
+
system?: string;
|
22
|
+
/** websocket消息的topic */
|
23
|
+
topic?: string;
|
24
|
+
}
|
@@ -0,0 +1,10 @@
|
|
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
|
+
export * as AiopsServiceModels from "./model/aiops_service/index.js";
|
10
|
+
export * as LlmModels from "./model/llm/index.js";
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { ModelLlmChatMessage } from "./index.js";
|
2
|
+
/** 聊天机器人,处理agent任务的请求 */
|
3
|
+
export interface ModelLlmChatAgentTaskRequest {
|
4
|
+
/** 任务需求 */
|
5
|
+
input: string;
|
6
|
+
/** 图片的url,支持多个图片 */
|
7
|
+
images: string[];
|
8
|
+
/** 任务配置 */
|
9
|
+
config: Record<string, any>;
|
10
|
+
/** 当前任务上下文的id */
|
11
|
+
conversationId: string;
|
12
|
+
/** 在多agent场景,指定使用哪个agent */
|
13
|
+
agentId: string;
|
14
|
+
/** 当前任务Id */
|
15
|
+
taskId: string;
|
16
|
+
/** 已经提取的表单数据 */
|
17
|
+
formData: any;
|
18
|
+
/** 助手id */
|
19
|
+
robotId: string;
|
20
|
+
/** 是否流式返回 */
|
21
|
+
stream: boolean;
|
22
|
+
/** 历史会话消息,适用支持多轮会话的agent */
|
23
|
+
historyMessages: Partial<ModelLlmChatMessage>[];
|
24
|
+
/** 流式数据列表(占位符,防止flow builder自动清理流式返回的数据) */
|
25
|
+
sseDataList: any[];
|
26
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { ModelLlmChatMessage } from "./index.js";
|
2
|
+
/** 聊天机器人,选择处理agent的请求返回值 */
|
3
|
+
export interface ModelLlmChatAgentTaskResponse {
|
4
|
+
/** 任务id */
|
5
|
+
taskId: string;
|
6
|
+
/** 任务完成的时间戳 */
|
7
|
+
created: number;
|
8
|
+
/** 非流式输出时返回的消息 */
|
9
|
+
message: Partial<ModelLlmChatMessage>;
|
10
|
+
/** sse流式返回时的数据格式 */
|
11
|
+
delta: Partial<ModelLlmChatMessage>;
|
12
|
+
/** 当前任务上下文的id */
|
13
|
+
conversationId: string;
|
14
|
+
/** 流式数据列表(占位符,防止flow builder自动清理流式返回的数据) */
|
15
|
+
sseDataList: any;
|
16
|
+
/** 额外信息。ignoreSave: bool, 忽略保存信息,只通过sse发送消息 */
|
17
|
+
extInfo: Record<string, any>;
|
18
|
+
/** 内容类型,决定该接口返回的内容是什么类型。可选:TEXT,RELATED_QUESTIONS */
|
19
|
+
type: string;
|
20
|
+
/** 消息名称。llm_response, related_questions */
|
21
|
+
name: string;
|
22
|
+
/** agentId */
|
23
|
+
agentId: string;
|
24
|
+
/** 助手id */
|
25
|
+
robotId: string;
|
26
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/** 调用语言模型时,将当前对话信息列表作为提示输入给模型, 按照 {"role": "user", "content": "你好"} 的json 数组形式进行传参; 可能的消息类型包括 System message、User message、Assistant message 和 Tool message。 */
|
2
|
+
export interface ModelLlmChatMessage {
|
3
|
+
/** 消息的角色信息, system, user, assistant, tool */
|
4
|
+
role: string;
|
5
|
+
/** 消息内容。其中包括了tool_calls字段,content字段为空。角色为tool时,tool_message消息内容,为工具被调用后返回的结果 */
|
6
|
+
content: string;
|
7
|
+
/** 模型产生的工具调用消息 */
|
8
|
+
tool_calls: ModelLlmChatMessage_tool_calls_item[];
|
9
|
+
/** tool的调用记录 */
|
10
|
+
tool_call_id: string;
|
11
|
+
/** 图片的url,支持多个图片 */
|
12
|
+
images: string[];
|
13
|
+
}
|
14
|
+
export interface ModelLlmChatMessage_tool_calls_item {
|
15
|
+
/** 工具id */
|
16
|
+
id?: string;
|
17
|
+
/** 工具类型,支持web_search、retrieval、function */
|
18
|
+
type?: string;
|
19
|
+
/** type为"function"时不为空 */
|
20
|
+
function?: ModelLlmChatMessage_tool_calls_item_function;
|
21
|
+
}
|
22
|
+
export interface ModelLlmChatMessage_tool_calls_item_function {
|
23
|
+
/** 函数名称 */
|
24
|
+
name?: string;
|
25
|
+
/** 模型生成的调用函数的参数列表,json 格式。请注意,模型可能会生成无效的JSON,也可能会虚构一些不在您的函数规范中的参数。在调用函数之前,请在代码中验证这些参数是否有效。 */
|
26
|
+
arguments?: string;
|
27
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { ModelLlmChatMessage, ModelLlmChatTools } from "./index.js";
|
2
|
+
/** 聊天机器人,聊天请求 */
|
3
|
+
export interface ModelLlmChatRequest {
|
4
|
+
/** 是否需要启用敏感词过滤,默认true */
|
5
|
+
enableSensitiveWordsFilter: boolean;
|
6
|
+
/** 大模型服务名字,支持:zhipu */
|
7
|
+
service_name: string;
|
8
|
+
/** 所要调用的模型编码,例如:glm-4 */
|
9
|
+
model: string;
|
10
|
+
/** 对话列表 */
|
11
|
+
messages: Partial<ModelLlmChatMessage>[];
|
12
|
+
/** 由用户端传参,需保证唯一性;用于区分每次请求的唯一标识,用户端不传时平台会默认生成。 */
|
13
|
+
request_id: string;
|
14
|
+
/** do_sample 为 true 时启用采样策略,do_sample 为 false 时采样策略 temperature、top_p 将不生效 */
|
15
|
+
do_sample: boolean;
|
16
|
+
/** 采样温度,控制输出的随机性,必须为正数
|
17
|
+
取值范围是:(0.0, 1.0),不能等于 0,默认值为 0.95,值越大,会使输出更随机,更具创造性;值越小,输出会更加稳定或确定
|
18
|
+
建议您根据应用场景调整 top_p 或 temperature 参数,但不要同时调整两个参数 */
|
19
|
+
temperature: number;
|
20
|
+
/** 模型输出最大 tokens,最大输入为8192,默认值为1024 */
|
21
|
+
max_tokens: number;
|
22
|
+
/** 可供模型调用的工具列表,tools 字段会计算 tokens ,同样受到 tokens 长度的限制 */
|
23
|
+
tools: Partial<ModelLlmChatTools>[];
|
24
|
+
/** 字符串或者对象,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. */
|
25
|
+
tool_choice: any;
|
26
|
+
/** 是否使用流式 */
|
27
|
+
stream: boolean;
|
28
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { ModelLlmChatMessage } from "./index.js";
|
2
|
+
/** 聊天机器人,聊天请求 */
|
3
|
+
export interface ModelLlmChatResponse {
|
4
|
+
/** 模型名称,消息内容。目前先只返回这个 */
|
5
|
+
content: string;
|
6
|
+
/** 任务ID */
|
7
|
+
id: string;
|
8
|
+
/** 请求创建时间,是以秒为单位的 Unix 时间戳 */
|
9
|
+
created: number;
|
10
|
+
/** 模型名称 */
|
11
|
+
model: string;
|
12
|
+
/** 当前对话的模型输出内容 */
|
13
|
+
choices: ModelLlmChatResponse_choices_item[];
|
14
|
+
/** 结束时返回本次模型调用的 tokens 数量统计。 */
|
15
|
+
usage: ModelLlmChatResponse_usage;
|
16
|
+
}
|
17
|
+
export interface ModelLlmChatResponse_choices_item {
|
18
|
+
/** 结果下标 */
|
19
|
+
index?: number;
|
20
|
+
/** 模型推理终止的原因。stop代表推理自然结束或触发停止词。tool_calls 代表模型命中函数。length代表到达,tokens长度上限。 */
|
21
|
+
finish_reason?: string;
|
22
|
+
/** 模型返回的文本信息 */
|
23
|
+
message?: Partial<ModelLlmChatMessage>;
|
24
|
+
}
|
25
|
+
export interface ModelLlmChatResponse_usage {
|
26
|
+
/** 用户输入的 tokens 数量 */
|
27
|
+
prompt_tokens?: number;
|
28
|
+
/** 模型输入的 tokens 数量 */
|
29
|
+
completion_tokens?: number;
|
30
|
+
/** 总 tokens 数量 */
|
31
|
+
total_tokens?: number;
|
32
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/** 聊天机器人,选择处理agent的请求参数 */
|
2
|
+
export interface ModelLlmChatSelectAgentRequest {
|
3
|
+
/** 任务需求 */
|
4
|
+
input: string;
|
5
|
+
/** 任务配置 */
|
6
|
+
config: Record<string, any>;
|
7
|
+
/** 当前任务上下文的id */
|
8
|
+
conversationId: string;
|
9
|
+
/** 在多agent场景,指定使用哪个agent */
|
10
|
+
agentId: string;
|
11
|
+
/** 当前任务Id */
|
12
|
+
taskId: string;
|
13
|
+
/** 已经提取的表单数据 */
|
14
|
+
formData: any;
|
15
|
+
/** 助手id */
|
16
|
+
robotId: string;
|
17
|
+
/** 返回历史数据的数据量 */
|
18
|
+
historyLimit: number;
|
19
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { ModelLlmChatMessage } from "./index.js";
|
2
|
+
/** 聊天机器人,选择处理agent的请求返回值 */
|
3
|
+
export interface ModelLlmChatSelectAgentResponse {
|
4
|
+
/** 历史数据 */
|
5
|
+
historyMessages: Partial<ModelLlmChatMessage>[];
|
6
|
+
/** 当前任务上下文的id */
|
7
|
+
conversationId: string;
|
8
|
+
/** 中断消息,不再进行转发 */
|
9
|
+
breakMsg: string;
|
10
|
+
/** 在多agent场景,指定使用哪个agent */
|
11
|
+
agentId: string;
|
12
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
/** 外部工具信息 */
|
2
|
+
export interface ModelLlmChatTools {
|
3
|
+
/** 工具类型,目前支持function、retrieval(智谱知识库)、web_search */
|
4
|
+
type: string;
|
5
|
+
/** 仅当工具类型为function时补充 */
|
6
|
+
function: ModelLlmChatTools_function;
|
7
|
+
/** 仅当工具类型为retrieval时补充 */
|
8
|
+
retrieval: ModelLlmChatTools_retrieval;
|
9
|
+
/** 仅当工具类型为web_search时补充,如果tools中存在类型retrieval,此时web_search不生效。 */
|
10
|
+
web_search: ModelLlmChatTools_web_search;
|
11
|
+
}
|
12
|
+
export interface ModelLlmChatTools_function {
|
13
|
+
/** 函数名称,只能包含a-z,A-Z,0-9,下划线和中横线。最大长度限制为64 */
|
14
|
+
name?: string;
|
15
|
+
/** 用于描述函数功能。模型会根据这段描述决定函数调用方式。 */
|
16
|
+
description?: string;
|
17
|
+
/** parameter 字段需要传入一个 Json Schema 对象,以准确地定义函数所接受的参数。若调用函数时不需要传入参数 */
|
18
|
+
parameters?: Record<string, any>;
|
19
|
+
}
|
20
|
+
export interface ModelLlmChatTools_retrieval {
|
21
|
+
/** 当涉及到知识库ID时,请前往开放平台的知识库模块进行创建或获取。 */
|
22
|
+
knowledge_id?: string;
|
23
|
+
/** 请求模型时的知识库模板 */
|
24
|
+
prompt_template?: string;
|
25
|
+
}
|
26
|
+
export interface ModelLlmChatTools_web_search {
|
27
|
+
/** 默认启用搜索 */
|
28
|
+
enable?: boolean;
|
29
|
+
/** 强制搜索自定义关键内容,此时模型会根据自定义搜索关键内容返回的结果作为背景知识来回答用户发起的对话。 */
|
30
|
+
search_query?: string;
|
31
|
+
}
|
@@ -0,0 +1,8 @@
|
|
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";
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/** document */
|
2
|
+
export interface ModelLlmDocument {
|
3
|
+
/** page_content */
|
4
|
+
pageContent: string;
|
5
|
+
/** id */
|
6
|
+
id: string;
|
7
|
+
/** metadata */
|
8
|
+
metadata: Record<string, any>;
|
9
|
+
/** pageContent length */
|
10
|
+
len: number;
|
11
|
+
/** 与输入的相似度 */
|
12
|
+
score: number;
|
13
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/** 大模型记忆 */
|
2
|
+
export interface ModelLlmMemory {
|
3
|
+
/** 会话id */
|
4
|
+
conversationId: string;
|
5
|
+
/** 记忆的key */
|
6
|
+
memKey: string;
|
7
|
+
/** 记忆的描述信息 */
|
8
|
+
description: string;
|
9
|
+
/** 记忆的值 */
|
10
|
+
memValue: string;
|
11
|
+
/** 记忆的修改时间,例如:2024-09-04 15:21:20 */
|
12
|
+
mtime: string;
|
13
|
+
/** 记忆只用于保存,不会给到大模型 */
|
14
|
+
onlySave: boolean;
|
15
|
+
}
|