@next-api-sdk/llm-sdk 1.1.1 → 1.3.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 +2 -1
- package/contracts.json +248 -0
- package/dist/cjs/api/llm/agent/baseGeneralAgent.js +1 -1
- package/dist/cjs/api/llm/agent/baseGeneralAgent.js.map +1 -1
- package/dist/cjs/api/llm/agent/webSearchAgent.js +1 -1
- package/dist/cjs/api/llm/agent/webSearchAgent.js.map +1 -1
- package/dist/cjs/api/llm/agent_flow/addJobMessageForAgentFlow.js +14 -0
- package/dist/cjs/api/llm/agent_flow/addJobMessageForAgentFlow.js.map +1 -0
- package/dist/cjs/api/llm/agent_flow/createTaskForAgentFlow.js +14 -0
- package/dist/cjs/api/llm/agent_flow/createTaskForAgentFlow.js.map +1 -0
- package/dist/cjs/api/llm/agent_flow/getTaskDetailForAgentFlow.js +16 -0
- package/dist/cjs/api/llm/agent_flow/getTaskDetailForAgentFlow.js.map +1 -0
- package/dist/cjs/api/llm/agent_flow/index.js +39 -0
- package/dist/cjs/api/llm/agent_flow/index.js.map +1 -0
- package/dist/cjs/api/llm/aiops_base/deleteEmbedding.js +1 -1
- package/dist/cjs/api/llm/aiops_base/deleteEmbedding.js.map +1 -1
- package/dist/cjs/api/llm/aiops_base/deleteKnowledge.js +1 -1
- package/dist/cjs/api/llm/aiops_base/deleteKnowledge.js.map +1 -1
- package/dist/cjs/api/llm/aiops_base/importDocumentEmbeddings.js +1 -1
- package/dist/cjs/api/llm/aiops_base/importDocumentEmbeddings.js.map +1 -1
- package/dist/cjs/api/llm/aiops_base/llmChatServiceV1.js +1 -1
- package/dist/cjs/api/llm/aiops_base/llmChatServiceV1.js.map +1 -1
- package/dist/cjs/api/llm/aiops_base/openaiChat.js +1 -1
- package/dist/cjs/api/llm/aiops_base/openaiChat.js.map +1 -1
- package/dist/cjs/api/llm/aiops_base/searchEmbedding.js +1 -1
- package/dist/cjs/api/llm/aiops_base/searchEmbedding.js.map +1 -1
- package/dist/cjs/api/llm/aiops_base/upsertDocument.js +1 -1
- package/dist/cjs/api/llm/aiops_base/upsertDocument.js.map +1 -1
- package/dist/cjs/api/llm/aiops_base/upsertWithDocId.js +1 -1
- package/dist/cjs/api/llm/aiops_base/upsertWithDocId.js.map +1 -1
- package/dist/cjs/api/llm/aiops_memory/createMemoryEnv.js +1 -1
- package/dist/cjs/api/llm/aiops_memory/createMemoryEnv.js.map +1 -1
- package/dist/cjs/api/llm/aiops_memory/deleteLlmMemoryWithConversationId.js +1 -1
- package/dist/cjs/api/llm/aiops_memory/deleteLlmMemoryWithConversationId.js.map +1 -1
- package/dist/cjs/api/llm/aiops_memory/deleteLlmMemoryWithConversationIdAndKey.js +1 -1
- package/dist/cjs/api/llm/aiops_memory/deleteLlmMemoryWithConversationIdAndKey.js.map +1 -1
- package/dist/cjs/api/llm/aiops_memory/deleteMemoryEnv.js +1 -1
- package/dist/cjs/api/llm/aiops_memory/deleteMemoryEnv.js.map +1 -1
- package/dist/cjs/api/llm/aiops_memory/getLlmMemoryWithConversationId.js +1 -1
- package/dist/cjs/api/llm/aiops_memory/getLlmMemoryWithConversationId.js.map +1 -1
- package/dist/cjs/api/llm/aiops_memory/getLlmMemoryWithConversationIdAndKey.js +1 -1
- package/dist/cjs/api/llm/aiops_memory/getLlmMemoryWithConversationIdAndKey.js.map +1 -1
- package/dist/cjs/api/llm/aiops_memory/searchMemoryEnv.js +1 -1
- package/dist/cjs/api/llm/aiops_memory/searchMemoryEnv.js.map +1 -1
- package/dist/cjs/api/llm/aiops_memory/updateMemoryEnv.js +1 -1
- package/dist/cjs/api/llm/aiops_memory/updateMemoryEnv.js.map +1 -1
- package/dist/cjs/api/llm/aiops_memory/upsertLlmMemoryWithConversationIdAndKey.js +1 -1
- package/dist/cjs/api/llm/aiops_memory/upsertLlmMemoryWithConversationIdAndKey.js.map +1 -1
- package/dist/cjs/api/llm/aiops_prompt/llmDeletePrompt.js +1 -1
- package/dist/cjs/api/llm/aiops_prompt/llmDeletePrompt.js.map +1 -1
- package/dist/cjs/api/llm/aiops_prompt/llmGetPrompt.js +1 -1
- package/dist/cjs/api/llm/aiops_prompt/llmGetPrompt.js.map +1 -1
- package/dist/cjs/api/llm/aiops_prompt/llmUpsertPrompt.js +1 -1
- package/dist/cjs/api/llm/aiops_prompt/llmUpsertPrompt.js.map +1 -1
- package/dist/cjs/api/llm/aiops_rag/addSynonymsWords.js +1 -1
- package/dist/cjs/api/llm/aiops_rag/addSynonymsWords.js.map +1 -1
- package/dist/cjs/api/llm/aiops_rag/importConfluenceEmbedding.js +1 -1
- package/dist/cjs/api/llm/aiops_rag/importConfluenceEmbedding.js.map +1 -1
- package/dist/cjs/api/llm/aiops_rag/importUrlEmbedding.js +1 -1
- package/dist/cjs/api/llm/aiops_rag/importUrlEmbedding.js.map +1 -1
- package/dist/cjs/api/llm/aiops_rag/upsertKnowledgeDocument.js +1 -1
- package/dist/cjs/api/llm/aiops_rag/upsertKnowledgeDocument.js.map +1 -1
- package/dist/cjs/api/llm/aiops_service/exportAgents.js +1 -1
- package/dist/cjs/api/llm/aiops_service/exportAgents.js.map +1 -1
- package/dist/cjs/api/llm/aiops_service/exportConversation.js +1 -1
- package/dist/cjs/api/llm/aiops_service/exportConversation.js.map +1 -1
- package/dist/cjs/api/llm/aiops_service/exportRobots.js +1 -1
- package/dist/cjs/api/llm/aiops_service/exportRobots.js.map +1 -1
- package/dist/cjs/api/llm/aiops_service/exportTools.js +1 -1
- package/dist/cjs/api/llm/aiops_service/exportTools.js.map +1 -1
- package/dist/cjs/api/llm/aiops_service/importAgents.js +1 -1
- package/dist/cjs/api/llm/aiops_service/importAgents.js.map +1 -1
- package/dist/cjs/api/llm/aiops_service/importConfluenceEmbedding.js +1 -1
- package/dist/cjs/api/llm/aiops_service/importConfluenceEmbedding.js.map +1 -1
- package/dist/cjs/api/llm/aiops_service/importDocumentEmbedding.js +1 -1
- package/dist/cjs/api/llm/aiops_service/importDocumentEmbedding.js.map +1 -1
- package/dist/cjs/api/llm/aiops_service/importRobots.js +1 -1
- package/dist/cjs/api/llm/aiops_service/importRobots.js.map +1 -1
- package/dist/cjs/api/llm/aiops_service/importTools.js +1 -1
- package/dist/cjs/api/llm/aiops_service/importTools.js.map +1 -1
- package/dist/cjs/api/llm/aiops_service/llmAgentChat.js +1 -1
- package/dist/cjs/api/llm/aiops_service/llmAgentChat.js.map +1 -1
- package/dist/cjs/api/llm/aiops_service/llmChatSelectAgent.js +1 -1
- package/dist/cjs/api/llm/aiops_service/llmChatSelectAgent.js.map +1 -1
- package/dist/cjs/api/llm/aiops_service/llmChatService.js +1 -1
- package/dist/cjs/api/llm/aiops_service/llmChatService.js.map +1 -1
- package/dist/cjs/api/llm/aiops_service/llmCreateConversation.js +1 -1
- package/dist/cjs/api/llm/aiops_service/llmCreateConversation.js.map +1 -1
- package/dist/cjs/api/llm/aiops_service/llmEmbeddingDeleteDocs.js +1 -1
- package/dist/cjs/api/llm/aiops_service/llmEmbeddingDeleteDocs.js.map +1 -1
- package/dist/cjs/api/llm/aiops_service/llmEmbeddingImportUrl.js +1 -1
- package/dist/cjs/api/llm/aiops_service/llmEmbeddingImportUrl.js.map +1 -1
- package/dist/cjs/api/llm/aiops_service/llmEmbeddingSearch.js +1 -1
- package/dist/cjs/api/llm/aiops_service/llmEmbeddingSearch.js.map +1 -1
- package/dist/cjs/api/llm/aiops_service/llmExecTools.js +1 -1
- package/dist/cjs/api/llm/aiops_service/llmExecTools.js.map +1 -1
- package/dist/cjs/api/llm/aiops_service/llmRobotChat.js +1 -1
- package/dist/cjs/api/llm/aiops_service/llmRobotChat.js.map +1 -1
- package/dist/cjs/api/llm/aiops_service/llmStreamChatService.js +1 -1
- package/dist/cjs/api/llm/aiops_service/llmStreamChatService.js.map +1 -1
- package/dist/cjs/api/llm/aiops_tools/execLlmTools.js +14 -0
- package/dist/cjs/api/llm/aiops_tools/execLlmTools.js.map +1 -0
- package/dist/cjs/api/llm/aiops_tools/index.js +11 -0
- package/dist/cjs/api/llm/aiops_tools/index.js.map +1 -1
- package/dist/cjs/api/llm/aiops_tools/summaryQuestionV2.js +1 -1
- package/dist/cjs/api/llm/aiops_tools/summaryQuestionV2.js.map +1 -1
- package/dist/cjs/api/llm/aiops_tools/templateLlmChatV2.js +1 -1
- package/dist/cjs/api/llm/aiops_tools/templateLlmChatV2.js.map +1 -1
- package/dist/cjs/api/llm/virtual_builder/generateStoryboard.js +1 -1
- package/dist/cjs/api/llm/virtual_builder/generateStoryboard.js.map +1 -1
- package/dist/cjs/api/llm/virtual_builder/generateStoryboardStream.js +1 -1
- package/dist/cjs/api/llm/virtual_builder/generateStoryboardStream.js.map +1 -1
- package/dist/cjs/index.js +19 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/model/llm/ModelFlowAgentTaskMessage.js +6 -0
- package/dist/cjs/model/llm/ModelFlowAgentTaskMessage.js.map +1 -0
- package/dist/cjs/model/llm/ModelFlowAgentTaskResponse.js +6 -0
- package/dist/cjs/model/llm/ModelFlowAgentTaskResponse.js.map +1 -0
- package/dist/cjs/model/llm/index.js +22 -0
- package/dist/cjs/model/llm/index.js.map +1 -1
- package/dist/esm/api/llm/agent/baseGeneralAgent.js +1 -1
- package/dist/esm/api/llm/agent/baseGeneralAgent.js.map +1 -1
- package/dist/esm/api/llm/agent/webSearchAgent.js +1 -1
- package/dist/esm/api/llm/agent/webSearchAgent.js.map +1 -1
- package/dist/esm/api/llm/agent_flow/addJobMessageForAgentFlow.js +7 -0
- package/dist/esm/api/llm/agent_flow/addJobMessageForAgentFlow.js.map +1 -0
- package/dist/esm/api/llm/agent_flow/createTaskForAgentFlow.js +7 -0
- package/dist/esm/api/llm/agent_flow/createTaskForAgentFlow.js.map +1 -0
- package/dist/esm/api/llm/agent_flow/getTaskDetailForAgentFlow.js +10 -0
- package/dist/esm/api/llm/agent_flow/getTaskDetailForAgentFlow.js.map +1 -0
- package/dist/esm/api/llm/agent_flow/index.js +4 -0
- package/dist/esm/api/llm/agent_flow/index.js.map +1 -0
- package/dist/esm/api/llm/aiops_base/deleteEmbedding.js +1 -1
- package/dist/esm/api/llm/aiops_base/deleteEmbedding.js.map +1 -1
- package/dist/esm/api/llm/aiops_base/deleteKnowledge.js +1 -1
- package/dist/esm/api/llm/aiops_base/deleteKnowledge.js.map +1 -1
- package/dist/esm/api/llm/aiops_base/importDocumentEmbeddings.js +1 -1
- package/dist/esm/api/llm/aiops_base/importDocumentEmbeddings.js.map +1 -1
- package/dist/esm/api/llm/aiops_base/llmChatServiceV1.js +1 -1
- package/dist/esm/api/llm/aiops_base/llmChatServiceV1.js.map +1 -1
- package/dist/esm/api/llm/aiops_base/openaiChat.js +1 -1
- package/dist/esm/api/llm/aiops_base/openaiChat.js.map +1 -1
- package/dist/esm/api/llm/aiops_base/searchEmbedding.js +1 -1
- package/dist/esm/api/llm/aiops_base/searchEmbedding.js.map +1 -1
- package/dist/esm/api/llm/aiops_base/upsertDocument.js +1 -1
- package/dist/esm/api/llm/aiops_base/upsertDocument.js.map +1 -1
- package/dist/esm/api/llm/aiops_base/upsertWithDocId.js +1 -1
- package/dist/esm/api/llm/aiops_base/upsertWithDocId.js.map +1 -1
- package/dist/esm/api/llm/aiops_memory/createMemoryEnv.js +1 -1
- package/dist/esm/api/llm/aiops_memory/createMemoryEnv.js.map +1 -1
- package/dist/esm/api/llm/aiops_memory/deleteLlmMemoryWithConversationId.js +1 -1
- package/dist/esm/api/llm/aiops_memory/deleteLlmMemoryWithConversationId.js.map +1 -1
- package/dist/esm/api/llm/aiops_memory/deleteLlmMemoryWithConversationIdAndKey.js +1 -1
- package/dist/esm/api/llm/aiops_memory/deleteLlmMemoryWithConversationIdAndKey.js.map +1 -1
- package/dist/esm/api/llm/aiops_memory/deleteMemoryEnv.js +1 -1
- package/dist/esm/api/llm/aiops_memory/deleteMemoryEnv.js.map +1 -1
- package/dist/esm/api/llm/aiops_memory/getLlmMemoryWithConversationId.js +1 -1
- package/dist/esm/api/llm/aiops_memory/getLlmMemoryWithConversationId.js.map +1 -1
- package/dist/esm/api/llm/aiops_memory/getLlmMemoryWithConversationIdAndKey.js +1 -1
- package/dist/esm/api/llm/aiops_memory/getLlmMemoryWithConversationIdAndKey.js.map +1 -1
- package/dist/esm/api/llm/aiops_memory/searchMemoryEnv.js +1 -1
- package/dist/esm/api/llm/aiops_memory/searchMemoryEnv.js.map +1 -1
- package/dist/esm/api/llm/aiops_memory/updateMemoryEnv.js +1 -1
- package/dist/esm/api/llm/aiops_memory/updateMemoryEnv.js.map +1 -1
- package/dist/esm/api/llm/aiops_memory/upsertLlmMemoryWithConversationIdAndKey.js +1 -1
- package/dist/esm/api/llm/aiops_memory/upsertLlmMemoryWithConversationIdAndKey.js.map +1 -1
- package/dist/esm/api/llm/aiops_prompt/llmDeletePrompt.js +1 -1
- package/dist/esm/api/llm/aiops_prompt/llmDeletePrompt.js.map +1 -1
- package/dist/esm/api/llm/aiops_prompt/llmGetPrompt.js +1 -1
- package/dist/esm/api/llm/aiops_prompt/llmGetPrompt.js.map +1 -1
- package/dist/esm/api/llm/aiops_prompt/llmUpsertPrompt.js +1 -1
- package/dist/esm/api/llm/aiops_prompt/llmUpsertPrompt.js.map +1 -1
- package/dist/esm/api/llm/aiops_rag/addSynonymsWords.js +1 -1
- package/dist/esm/api/llm/aiops_rag/addSynonymsWords.js.map +1 -1
- package/dist/esm/api/llm/aiops_rag/importConfluenceEmbedding.js +1 -1
- package/dist/esm/api/llm/aiops_rag/importConfluenceEmbedding.js.map +1 -1
- package/dist/esm/api/llm/aiops_rag/importUrlEmbedding.js +1 -1
- package/dist/esm/api/llm/aiops_rag/importUrlEmbedding.js.map +1 -1
- package/dist/esm/api/llm/aiops_rag/upsertKnowledgeDocument.js +1 -1
- package/dist/esm/api/llm/aiops_rag/upsertKnowledgeDocument.js.map +1 -1
- package/dist/esm/api/llm/aiops_service/exportAgents.js +1 -1
- package/dist/esm/api/llm/aiops_service/exportAgents.js.map +1 -1
- package/dist/esm/api/llm/aiops_service/exportConversation.js +1 -1
- package/dist/esm/api/llm/aiops_service/exportConversation.js.map +1 -1
- package/dist/esm/api/llm/aiops_service/exportRobots.js +1 -1
- package/dist/esm/api/llm/aiops_service/exportRobots.js.map +1 -1
- package/dist/esm/api/llm/aiops_service/exportTools.js +1 -1
- package/dist/esm/api/llm/aiops_service/exportTools.js.map +1 -1
- package/dist/esm/api/llm/aiops_service/importAgents.js +1 -1
- package/dist/esm/api/llm/aiops_service/importAgents.js.map +1 -1
- package/dist/esm/api/llm/aiops_service/importConfluenceEmbedding.js +1 -1
- package/dist/esm/api/llm/aiops_service/importConfluenceEmbedding.js.map +1 -1
- package/dist/esm/api/llm/aiops_service/importDocumentEmbedding.js +1 -1
- package/dist/esm/api/llm/aiops_service/importDocumentEmbedding.js.map +1 -1
- package/dist/esm/api/llm/aiops_service/importRobots.js +1 -1
- package/dist/esm/api/llm/aiops_service/importRobots.js.map +1 -1
- package/dist/esm/api/llm/aiops_service/importTools.js +1 -1
- package/dist/esm/api/llm/aiops_service/importTools.js.map +1 -1
- package/dist/esm/api/llm/aiops_service/llmAgentChat.js +1 -1
- package/dist/esm/api/llm/aiops_service/llmAgentChat.js.map +1 -1
- package/dist/esm/api/llm/aiops_service/llmChatSelectAgent.js +1 -1
- package/dist/esm/api/llm/aiops_service/llmChatSelectAgent.js.map +1 -1
- package/dist/esm/api/llm/aiops_service/llmChatService.js +1 -1
- package/dist/esm/api/llm/aiops_service/llmChatService.js.map +1 -1
- package/dist/esm/api/llm/aiops_service/llmCreateConversation.js +1 -1
- package/dist/esm/api/llm/aiops_service/llmCreateConversation.js.map +1 -1
- package/dist/esm/api/llm/aiops_service/llmEmbeddingDeleteDocs.js +1 -1
- package/dist/esm/api/llm/aiops_service/llmEmbeddingDeleteDocs.js.map +1 -1
- package/dist/esm/api/llm/aiops_service/llmEmbeddingImportUrl.js +1 -1
- package/dist/esm/api/llm/aiops_service/llmEmbeddingImportUrl.js.map +1 -1
- package/dist/esm/api/llm/aiops_service/llmEmbeddingSearch.js +1 -1
- package/dist/esm/api/llm/aiops_service/llmEmbeddingSearch.js.map +1 -1
- package/dist/esm/api/llm/aiops_service/llmExecTools.js +1 -1
- package/dist/esm/api/llm/aiops_service/llmExecTools.js.map +1 -1
- package/dist/esm/api/llm/aiops_service/llmRobotChat.js +1 -1
- package/dist/esm/api/llm/aiops_service/llmRobotChat.js.map +1 -1
- package/dist/esm/api/llm/aiops_service/llmStreamChatService.js +1 -1
- package/dist/esm/api/llm/aiops_service/llmStreamChatService.js.map +1 -1
- package/dist/esm/api/llm/aiops_tools/execLlmTools.js +7 -0
- package/dist/esm/api/llm/aiops_tools/execLlmTools.js.map +1 -0
- package/dist/esm/api/llm/aiops_tools/index.js +1 -0
- package/dist/esm/api/llm/aiops_tools/index.js.map +1 -1
- package/dist/esm/api/llm/aiops_tools/summaryQuestionV2.js +1 -1
- package/dist/esm/api/llm/aiops_tools/summaryQuestionV2.js.map +1 -1
- package/dist/esm/api/llm/aiops_tools/templateLlmChatV2.js +1 -1
- package/dist/esm/api/llm/aiops_tools/templateLlmChatV2.js.map +1 -1
- package/dist/esm/api/llm/virtual_builder/generateStoryboard.js +1 -1
- package/dist/esm/api/llm/virtual_builder/generateStoryboard.js.map +1 -1
- package/dist/esm/api/llm/virtual_builder/generateStoryboardStream.js +1 -1
- package/dist/esm/api/llm/virtual_builder/generateStoryboardStream.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/model/llm/ModelFlowAgentTaskMessage.js +2 -0
- package/dist/esm/model/llm/ModelFlowAgentTaskMessage.js.map +1 -0
- package/dist/esm/model/llm/ModelFlowAgentTaskResponse.js +2 -0
- package/dist/esm/model/llm/ModelFlowAgentTaskResponse.js.map +1 -0
- package/dist/esm/model/llm/index.js +2 -0
- package/dist/esm/model/llm/index.js.map +1 -1
- package/dist/types/api/llm/agent_flow/addJobMessageForAgentFlow.d.ts +10 -0
- package/dist/types/api/llm/agent_flow/createTaskForAgentFlow.d.ts +16 -0
- package/dist/types/api/llm/agent_flow/getTaskDetailForAgentFlow.d.ts +13 -0
- package/dist/types/api/llm/agent_flow/index.d.ts +3 -0
- package/dist/types/api/llm/aiops_tools/execLlmTools.d.ts +20 -0
- package/dist/types/api/llm/aiops_tools/index.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/model/llm/ModelFlowAgentTaskMessage.d.ts +27 -0
- package/dist/types/model/llm/ModelFlowAgentTaskResponse.d.ts +42 -0
- package/dist/types/model/llm/index.d.ts +2 -0
- package/package.json +4 -4
package/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# @next-api-sdk/llm-sdk
|
2
2
|
|
3
3
|
**DO NOT MODIFY THIS PACKAGE MANUALLY.**
|
4
|
-
**IT IS AUTO GENERATED BY [@next-core/create-api-sdk] v1.0.
|
4
|
+
**IT IS AUTO GENERATED BY [@next-core/create-api-sdk] v1.0.33**
|
5
5
|
|
6
6
|
Llm SDK.
|
7
7
|
|
@@ -16,3 +16,4 @@ import * as LlmSdk from "@next-api-sdk/llm-sdk";
|
|
16
16
|
```
|
17
17
|
|
18
18
|
[@next-core/create-api-sdk]: https://github.com/easyops-cn/next-core/tree/master/packages/create-api-sdk
|
19
|
+
|
package/contracts.json
CHANGED
@@ -133,6 +133,181 @@
|
|
133
133
|
}
|
134
134
|
]
|
135
135
|
},
|
136
|
+
{
|
137
|
+
"contract": "llm.agent_flow.AddJobMessageForAgentFlow",
|
138
|
+
"name": "AddJobMessageForAgentFlow",
|
139
|
+
"version": "1.0.0",
|
140
|
+
"description": "flow agent补充消息",
|
141
|
+
"endpoint": {
|
142
|
+
"method": "POST",
|
143
|
+
"uri": "/api/v1/llm/agent/flow/:taskId/job/:jobId"
|
144
|
+
},
|
145
|
+
"request": {
|
146
|
+
"type": "object",
|
147
|
+
"fields": [
|
148
|
+
{
|
149
|
+
"name": "taskId",
|
150
|
+
"type": "string",
|
151
|
+
"description": "总任务id"
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"name": "jobId",
|
155
|
+
"type": "string",
|
156
|
+
"description": "job id,子任务id"
|
157
|
+
},
|
158
|
+
{
|
159
|
+
"name": "input",
|
160
|
+
"type": "string",
|
161
|
+
"description": "补充输入"
|
162
|
+
}
|
163
|
+
]
|
164
|
+
},
|
165
|
+
"response": null,
|
166
|
+
"examples": [
|
167
|
+
{
|
168
|
+
"description": {
|
169
|
+
"zh": "flow agent补充消息"
|
170
|
+
},
|
171
|
+
"request": {
|
172
|
+
"method": "POST",
|
173
|
+
"uri": "http://ip:port/api/v1/llm/agent/8239375684858666781/job/job_1546111",
|
174
|
+
"headers": {
|
175
|
+
"Content-Type": "application/json",
|
176
|
+
"user": "linus",
|
177
|
+
"org": 1234
|
178
|
+
},
|
179
|
+
"body": "{\n \"input\": \"确认\"\n}"
|
180
|
+
},
|
181
|
+
"response": {
|
182
|
+
"headers": {
|
183
|
+
"Content-Type": "application/json; charset=utf-8"
|
184
|
+
},
|
185
|
+
"status_code": 200,
|
186
|
+
"body": "{ }"
|
187
|
+
}
|
188
|
+
}
|
189
|
+
]
|
190
|
+
},
|
191
|
+
{
|
192
|
+
"contract": "llm.agent_flow.CreateTaskForAgentFlow",
|
193
|
+
"name": "CreateTaskForAgentFlow",
|
194
|
+
"version": "1.0.0",
|
195
|
+
"description": "创建agent flow的任务",
|
196
|
+
"endpoint": {
|
197
|
+
"method": "POST",
|
198
|
+
"uri": "/api/v1/llm/agent/flow/create"
|
199
|
+
},
|
200
|
+
"request": {
|
201
|
+
"type": "object",
|
202
|
+
"fields": [
|
203
|
+
{
|
204
|
+
"name": "input",
|
205
|
+
"type": "string",
|
206
|
+
"description": "用户输入"
|
207
|
+
},
|
208
|
+
{
|
209
|
+
"name": "agentId",
|
210
|
+
"type": "string",
|
211
|
+
"description": "指定处理任务的agent"
|
212
|
+
}
|
213
|
+
]
|
214
|
+
},
|
215
|
+
"response": {
|
216
|
+
"type": "object",
|
217
|
+
"fields": [
|
218
|
+
{
|
219
|
+
"name": "taskId",
|
220
|
+
"type": "string",
|
221
|
+
"description": "任务id"
|
222
|
+
}
|
223
|
+
]
|
224
|
+
},
|
225
|
+
"examples": [
|
226
|
+
{
|
227
|
+
"description": {
|
228
|
+
"zh": "创建agent flow的任务"
|
229
|
+
},
|
230
|
+
"request": {
|
231
|
+
"method": "POST",
|
232
|
+
"uri": "http://ip:port/api/v1/llm/agent/flow/create",
|
233
|
+
"headers": {
|
234
|
+
"Content-Type": "application/json",
|
235
|
+
"user": "linus",
|
236
|
+
"org": 1234
|
237
|
+
},
|
238
|
+
"body": "{\n \"input\": \"今天深圳天气\",\n \"agentId\": \"general-helper\"\n}"
|
239
|
+
},
|
240
|
+
"response": {
|
241
|
+
"headers": {
|
242
|
+
"Content-Type": "application/json; charset=utf-8"
|
243
|
+
},
|
244
|
+
"status_code": 200,
|
245
|
+
"body": "{\n \"taskId\": \"8239375684858666781\"\n}"
|
246
|
+
}
|
247
|
+
}
|
248
|
+
]
|
249
|
+
},
|
250
|
+
{
|
251
|
+
"contract": "llm.agent_flow.GetTaskDetailForAgentFlow",
|
252
|
+
"name": "GetTaskDetailForAgentFlow",
|
253
|
+
"version": "1.0.0",
|
254
|
+
"description": "获取agent flow任务详情,流式返回",
|
255
|
+
"endpoint": {
|
256
|
+
"method": "GET",
|
257
|
+
"uri": "/api/v1/llm/agent/flow/:taskId"
|
258
|
+
},
|
259
|
+
"import": [
|
260
|
+
"easyops/model/llm/flow_agent_task_response"
|
261
|
+
],
|
262
|
+
"request": {
|
263
|
+
"type": "object",
|
264
|
+
"fields": [
|
265
|
+
{
|
266
|
+
"name": "taskId",
|
267
|
+
"type": "string",
|
268
|
+
"description": "任务id"
|
269
|
+
}
|
270
|
+
]
|
271
|
+
},
|
272
|
+
"response": {
|
273
|
+
"type": "object",
|
274
|
+
"description": "流式返回的数据",
|
275
|
+
"fields": [
|
276
|
+
{
|
277
|
+
"ref": "FlowAgentTaskResponse.*"
|
278
|
+
},
|
279
|
+
{
|
280
|
+
"name": "sseDataList",
|
281
|
+
"type": "value[]",
|
282
|
+
"description": "流式数据列表"
|
283
|
+
}
|
284
|
+
]
|
285
|
+
},
|
286
|
+
"examples": [
|
287
|
+
{
|
288
|
+
"description": {
|
289
|
+
"zh": "获取agent flow的详情"
|
290
|
+
},
|
291
|
+
"request": {
|
292
|
+
"method": "GET",
|
293
|
+
"uri": "http://ip:port/api/v1/llm/agent/flow/a8239375684858666781",
|
294
|
+
"headers": {
|
295
|
+
"Content-Type": "application/json",
|
296
|
+
"user": "linus",
|
297
|
+
"org": 1234
|
298
|
+
},
|
299
|
+
"body": "{ }"
|
300
|
+
},
|
301
|
+
"response": {
|
302
|
+
"headers": {
|
303
|
+
"Content-Type": "application/json; charset=utf-8"
|
304
|
+
},
|
305
|
+
"status_code": 200,
|
306
|
+
"body": "data: {\"id\":\"a8239375684858666781\", \"state\":\"working\",\"plan\":[{\"id\":\"job_1\",\"instruction\":\"查询城市码\"},{\"id\":\"job_2\",\"instruction\":\"通过城市码查询城市天气\"}]}\\n\\n data: {\"jobs\":[{\"id\":\"job_1\",\"instruction\":\"查询城市码\",\"state\":\"working\",\"toolCall\":{\"name\":\"search_city_code\",\"arguments\":{\"city\":\"深圳\"}}}]}\\n\\n data: {\"jobs\":[{\"id\":\"job_1\",\"state\":\"completed\",\"messages\":[{\"role\":\"assistant\",\"parts\":[{\"type\":\"text\",\"text\":\"SZX\"}]}]}]}\\n\\n data: {\"jobs\":[{\"id\":\"job_2\",\"instruction\":\"通过城市码查询城市天气\",\"state\":\"working\",\"toolCall\":{\"name\":\"search_weather\",\"arguments\":{\"city\":\"SZX\"}}}]}\\n\\n\ndata: [DONE]"
|
307
|
+
}
|
308
|
+
}
|
309
|
+
]
|
310
|
+
},
|
136
311
|
{
|
137
312
|
"contract": "llm.aiops_base.DeleteEmbedding",
|
138
313
|
"name": "DeleteEmbedding",
|
@@ -3089,6 +3264,79 @@
|
|
3089
3264
|
}
|
3090
3265
|
]
|
3091
3266
|
},
|
3267
|
+
{
|
3268
|
+
"contract": "llm.aiops_tools.ExecLlmTools",
|
3269
|
+
"name": "ExecLlmTools",
|
3270
|
+
"version": "1.0.0",
|
3271
|
+
"description": "执行大模型工具,非MCP协议的一部分",
|
3272
|
+
"endpoint": {
|
3273
|
+
"method": "POST",
|
3274
|
+
"uri": "/api/v1/llm/tools/exec"
|
3275
|
+
},
|
3276
|
+
"request": {
|
3277
|
+
"fields": [
|
3278
|
+
{
|
3279
|
+
"description": "要执行的工具名称,也是id",
|
3280
|
+
"name": "name",
|
3281
|
+
"type": "string"
|
3282
|
+
},
|
3283
|
+
{
|
3284
|
+
"description": "执行工具的参数",
|
3285
|
+
"name": "arguments",
|
3286
|
+
"type": "map"
|
3287
|
+
},
|
3288
|
+
{
|
3289
|
+
"description": "执行工具的配置,例如agentId,\"agentId\":\"cmdb_search_agent\"",
|
3290
|
+
"name": "config",
|
3291
|
+
"type": "map"
|
3292
|
+
}
|
3293
|
+
],
|
3294
|
+
"required": [
|
3295
|
+
"name"
|
3296
|
+
],
|
3297
|
+
"type": "object"
|
3298
|
+
},
|
3299
|
+
"response": {
|
3300
|
+
"default": {},
|
3301
|
+
"fields": [
|
3302
|
+
{
|
3303
|
+
"description": "执行结果,返回类型,目前只支持text",
|
3304
|
+
"name": "type",
|
3305
|
+
"type": "string"
|
3306
|
+
},
|
3307
|
+
{
|
3308
|
+
"description": "执行工具的结果",
|
3309
|
+
"name": "result",
|
3310
|
+
"type": "value"
|
3311
|
+
}
|
3312
|
+
],
|
3313
|
+
"type": "object"
|
3314
|
+
},
|
3315
|
+
"examples": [
|
3316
|
+
{
|
3317
|
+
"description": {
|
3318
|
+
"zh": "执行大模型工具"
|
3319
|
+
},
|
3320
|
+
"request": {
|
3321
|
+
"method": "POST",
|
3322
|
+
"uri": "http://localhost:8320/api/v1/llm/tools/exec",
|
3323
|
+
"headers": {
|
3324
|
+
"Content-Type": "application/json",
|
3325
|
+
"user": "linus",
|
3326
|
+
"org": 1234
|
3327
|
+
},
|
3328
|
+
"body": "{\n \"name\": \"web_search\",\n \"arguments\": {\n \"query\": \"什么是MCP\"\n },\n \"config\":{\n \"agentId\": \"cmdb_search_agent\",\n \"conversationId\": \"xxxxxxx\",\n }\n}"
|
3329
|
+
},
|
3330
|
+
"response": {
|
3331
|
+
"headers": {
|
3332
|
+
"Content-Type": "application/json; charset=utf-8"
|
3333
|
+
},
|
3334
|
+
"status_code": 200,
|
3335
|
+
"body": "{\n \"code\": 0,\n \"error\": \"\",\n \"data\": {\n \"type\": \"text\",\n \"result\": \"MCP 是一种开放协议\", \"content\":\"什么是MCP? MCP 是一种开放协议,通过标准化的服务器实现,使AI 模型能够安全地与本地和远程资源进行交互。 此列表重点关注可用于生产和实验性的MCP 服务器,这些服务器通过文件访问、数据库连接、API 集成和其他上下文服务来扩展AI 功能。\"\n }\n}"
|
3336
|
+
}
|
3337
|
+
}
|
3338
|
+
]
|
3339
|
+
},
|
3092
3340
|
{
|
3093
3341
|
"contract": "llm.aiops_tools.SummaryQuestionV2",
|
3094
3342
|
"name": "SummaryQuestionV2",
|
@@ -12,6 +12,6 @@ var _http = require("@next-core/http");
|
|
12
12
|
* @description 基础agent,支持知识库、执行工具
|
13
13
|
* @endpoint POST /api/v1/llm/agent/base
|
14
14
|
*/
|
15
|
-
const AgentApi_baseGeneralAgent = async (data, options) => /**! @contract easyops.api.llm.agent.BaseGeneralAgent@1.0.0 */(await _http.http.post("api/gateway/llm.
|
15
|
+
const AgentApi_baseGeneralAgent = async (data, options) => /**! @contract easyops.api.llm.agent.BaseGeneralAgent@1.0.0 */(await _http.http.post("api/gateway/logic.llm.aiops_service/api/v1/llm/agent/base", data, options)).data;
|
16
16
|
exports.AgentApi_baseGeneralAgent = AgentApi_baseGeneralAgent;
|
17
17
|
//# sourceMappingURL=baseGeneralAgent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"baseGeneralAgent.js","names":["_http","require","AgentApi_baseGeneralAgent","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/agent/baseGeneralAgent.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 AgentApi_BaseGeneralAgentRequestBody =\n Partial<ModelLlmChatAgentTaskRequest>;\n\n/** 接口返回,有两种格式,流式返回为delta, 非流式返回为message\n */\nexport type AgentApi_BaseGeneralAgentResponseBody =\n Partial<ModelLlmChatAgentTaskResponse>;\n\n/**\n * @description 基础agent,支持知识库、执行工具\n * @endpoint POST /api/v1/llm/agent/base\n */\nexport const AgentApi_baseGeneralAgent = async (\n data: AgentApi_BaseGeneralAgentRequestBody,\n options?: HttpOptions\n): Promise<AgentApi_BaseGeneralAgentResponseBody> =>\n /**! @contract easyops.api.llm.agent.BaseGeneralAgent@1.0.0 */ (\n await http.post<ResponseBodyWrapper<AgentApi_BaseGeneralAgentResponseBody>>(\n \"api/gateway/llm.
|
1
|
+
{"version":3,"file":"baseGeneralAgent.js","names":["_http","require","AgentApi_baseGeneralAgent","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/agent/baseGeneralAgent.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 AgentApi_BaseGeneralAgentRequestBody =\n Partial<ModelLlmChatAgentTaskRequest>;\n\n/** 接口返回,有两种格式,流式返回为delta, 非流式返回为message\n */\nexport type AgentApi_BaseGeneralAgentResponseBody =\n Partial<ModelLlmChatAgentTaskResponse>;\n\n/**\n * @description 基础agent,支持知识库、执行工具\n * @endpoint POST /api/v1/llm/agent/base\n */\nexport const AgentApi_baseGeneralAgent = async (\n data: AgentApi_BaseGeneralAgentRequestBody,\n options?: HttpOptions\n): Promise<AgentApi_BaseGeneralAgentResponseBody> =>\n /**! @contract easyops.api.llm.agent.BaseGeneralAgent@1.0.0 */ (\n await http.post<ResponseBodyWrapper<AgentApi_BaseGeneralAgentResponseBody>>(\n \"api/gateway/logic.llm.aiops_service/api/v1/llm/agent/base\",\n data,\n options\n )\n ).data;\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAUA;AACA;;AAIA;AACA;AACA;AACA;AACO,MAAMC,yBAAyB,GAAG,MAAAA,CACvCC,IAA0C,EAC1CC,OAAqB,KAErB,8DAA+D,CAC7D,MAAMC,UAAI,CAACC,IAAI,CACb,2DAA2D,EAC3DH,IAAI,EACJC,OACF,CAAC,EACDD,IAAI;AAACI,OAAA,CAAAL,yBAAA,GAAAA,yBAAA","ignoreList":[]}
|
@@ -12,6 +12,6 @@ var _http = require("@next-core/http");
|
|
12
12
|
* @description 网络搜索的agent
|
13
13
|
* @endpoint POST /api/v1/llm/agent/web_search
|
14
14
|
*/
|
15
|
-
const AgentApi_webSearchAgent = async (data, options) => /**! @contract easyops.api.llm.agent.WebSearchAgent@1.0.0 */(await _http.http.post("api/gateway/llm.
|
15
|
+
const AgentApi_webSearchAgent = async (data, options) => /**! @contract easyops.api.llm.agent.WebSearchAgent@1.0.0 */(await _http.http.post("api/gateway/logic.llm.aiops_service/api/v1/llm/agent/web_search", data, options)).data;
|
16
16
|
exports.AgentApi_webSearchAgent = AgentApi_webSearchAgent;
|
17
17
|
//# sourceMappingURL=webSearchAgent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"webSearchAgent.js","names":["_http","require","AgentApi_webSearchAgent","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/agent/webSearchAgent.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 AgentApi_WebSearchAgentRequestBody =\n Partial<ModelLlmChatAgentTaskRequest>;\n\n/** 接口返回,有两种格式,流式返回为delta, 非流式返回为message\n */\nexport type AgentApi_WebSearchAgentResponseBody =\n Partial<ModelLlmChatAgentTaskResponse>;\n\n/**\n * @description 网络搜索的agent\n * @endpoint POST /api/v1/llm/agent/web_search\n */\nexport const AgentApi_webSearchAgent = async (\n data: AgentApi_WebSearchAgentRequestBody,\n options?: HttpOptions\n): Promise<AgentApi_WebSearchAgentResponseBody> =>\n /**! @contract easyops.api.llm.agent.WebSearchAgent@1.0.0 */ (\n await http.post<ResponseBodyWrapper<AgentApi_WebSearchAgentResponseBody>>(\n \"api/gateway/llm.
|
1
|
+
{"version":3,"file":"webSearchAgent.js","names":["_http","require","AgentApi_webSearchAgent","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/agent/webSearchAgent.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 AgentApi_WebSearchAgentRequestBody =\n Partial<ModelLlmChatAgentTaskRequest>;\n\n/** 接口返回,有两种格式,流式返回为delta, 非流式返回为message\n */\nexport type AgentApi_WebSearchAgentResponseBody =\n Partial<ModelLlmChatAgentTaskResponse>;\n\n/**\n * @description 网络搜索的agent\n * @endpoint POST /api/v1/llm/agent/web_search\n */\nexport const AgentApi_webSearchAgent = async (\n data: AgentApi_WebSearchAgentRequestBody,\n options?: HttpOptions\n): Promise<AgentApi_WebSearchAgentResponseBody> =>\n /**! @contract easyops.api.llm.agent.WebSearchAgent@1.0.0 */ (\n await http.post<ResponseBodyWrapper<AgentApi_WebSearchAgentResponseBody>>(\n \"api/gateway/logic.llm.aiops_service/api/v1/llm/agent/web_search\",\n data,\n options\n )\n ).data;\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAUA;AACA;;AAIA;AACA;AACA;AACA;AACO,MAAMC,uBAAuB,GAAG,MAAAA,CACrCC,IAAwC,EACxCC,OAAqB,KAErB,4DAA6D,CAC3D,MAAMC,UAAI,CAACC,IAAI,CACb,iEAAiE,EACjEH,IAAI,EACJC,OACF,CAAC,EACDD,IAAI;AAACI,OAAA,CAAAL,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.AgentFlowApi_addJobMessageForAgentFlow = void 0;
|
7
|
+
var _http = require("@next-core/http");
|
8
|
+
/**
|
9
|
+
* @description flow agent补充消息
|
10
|
+
* @endpoint POST /api/v1/llm/agent/flow/:taskId/job/:jobId
|
11
|
+
*/
|
12
|
+
const AgentFlowApi_addJobMessageForAgentFlow = (taskId, jobId, data, options) => /**! @contract easyops.api.llm.agent_flow.AddJobMessageForAgentFlow@1.0.0 */_http.http.post(`api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/${taskId}/job/${jobId}`, data, options);
|
13
|
+
exports.AgentFlowApi_addJobMessageForAgentFlow = AgentFlowApi_addJobMessageForAgentFlow;
|
14
|
+
//# sourceMappingURL=addJobMessageForAgentFlow.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"addJobMessageForAgentFlow.js","names":["_http","require","AgentFlowApi_addJobMessageForAgentFlow","taskId","jobId","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/agent_flow/addJobMessageForAgentFlow.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\n\nexport interface AgentFlowApi_AddJobMessageForAgentFlowRequestBody {\n /** 补充输入 */\n input?: string;\n}\n\n/**\n * @description flow agent补充消息\n * @endpoint POST /api/v1/llm/agent/flow/:taskId/job/:jobId\n */\nexport const AgentFlowApi_addJobMessageForAgentFlow = (\n taskId: string | number,\n jobId: string | number,\n data: AgentFlowApi_AddJobMessageForAgentFlowRequestBody,\n options?: HttpOptions\n): Promise<void> =>\n /**! @contract easyops.api.llm.agent_flow.AddJobMessageForAgentFlow@1.0.0 */ http.post<void>(\n `api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/${taskId}/job/${jobId}`,\n data,\n options\n );\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAOA;AACA;AACA;AACA;AACO,MAAMC,sCAAsC,GAAGA,CACpDC,MAAuB,EACvBC,KAAsB,EACtBC,IAAuD,EACvDC,OAAqB,KAErB,4EAA6EC,UAAI,CAACC,IAAI,CACpF,6DAA6DL,MAAM,QAAQC,KAAK,EAAE,EAClFC,IAAI,EACJC,OACF,CAAC;AAACG,OAAA,CAAAP,sCAAA,GAAAA,sCAAA","ignoreList":[]}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.AgentFlowApi_createTaskForAgentFlow = void 0;
|
7
|
+
var _http = require("@next-core/http");
|
8
|
+
/**
|
9
|
+
* @description 创建agent flow的任务
|
10
|
+
* @endpoint POST /api/v1/llm/agent/flow/create
|
11
|
+
*/
|
12
|
+
const AgentFlowApi_createTaskForAgentFlow = async (data, options) => /**! @contract easyops.api.llm.agent_flow.CreateTaskForAgentFlow@1.0.0 */(await _http.http.post("api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/create", data, options)).data;
|
13
|
+
exports.AgentFlowApi_createTaskForAgentFlow = AgentFlowApi_createTaskForAgentFlow;
|
14
|
+
//# sourceMappingURL=createTaskForAgentFlow.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"createTaskForAgentFlow.js","names":["_http","require","AgentFlowApi_createTaskForAgentFlow","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/agent_flow/createTaskForAgentFlow.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AgentFlowApi_CreateTaskForAgentFlowRequestBody {\n /** 用户输入 */\n input?: string;\n\n /** 指定处理任务的agent */\n agentId?: string;\n}\n\nexport interface AgentFlowApi_CreateTaskForAgentFlowResponseBody {\n /** 任务id */\n taskId?: string;\n}\n\n/**\n * @description 创建agent flow的任务\n * @endpoint POST /api/v1/llm/agent/flow/create\n */\nexport const AgentFlowApi_createTaskForAgentFlow = async (\n data: AgentFlowApi_CreateTaskForAgentFlowRequestBody,\n options?: HttpOptions\n): Promise<AgentFlowApi_CreateTaskForAgentFlowResponseBody> =>\n /**! @contract easyops.api.llm.agent_flow.CreateTaskForAgentFlow@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AgentFlowApi_CreateTaskForAgentFlowResponseBody>\n >(\n \"api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/create\",\n data,\n options\n )\n ).data;\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAgBA;AACA;AACA;AACA;AACO,MAAMC,mCAAmC,GAAG,MAAAA,CACjDC,IAAoD,EACpDC,OAAqB,KAErB,yEAA0E,CACxE,MAAMC,UAAI,CAACC,IAAI,CAGb,kEAAkE,EAClEH,IAAI,EACJC,OACF,CAAC,EACDD,IAAI;AAACI,OAAA,CAAAL,mCAAA,GAAAA,mCAAA","ignoreList":[]}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.AgentFlowApi_getTaskDetailForAgentFlow = void 0;
|
7
|
+
var _http = require("@next-core/http");
|
8
|
+
/** 流式返回的数据 */
|
9
|
+
|
10
|
+
/**
|
11
|
+
* @description 获取agent flow任务详情,流式返回
|
12
|
+
* @endpoint GET /api/v1/llm/agent/flow/:taskId
|
13
|
+
*/
|
14
|
+
const AgentFlowApi_getTaskDetailForAgentFlow = async (taskId, options) => /**! @contract easyops.api.llm.agent_flow.GetTaskDetailForAgentFlow@1.0.0 */(await _http.http.get(`api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/${taskId}`, options)).data;
|
15
|
+
exports.AgentFlowApi_getTaskDetailForAgentFlow = AgentFlowApi_getTaskDetailForAgentFlow;
|
16
|
+
//# sourceMappingURL=getTaskDetailForAgentFlow.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getTaskDetailForAgentFlow.js","names":["_http","require","AgentFlowApi_getTaskDetailForAgentFlow","taskId","options","http","get","data","exports"],"sources":["../../../../../src/api/llm/agent_flow/getTaskDetailForAgentFlow.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ModelFlowAgentTaskResponse } from \"../../../model/llm/index.js\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\n/** 流式返回的数据 */\nexport type AgentFlowApi_GetTaskDetailForAgentFlowResponseBody =\n Partial<ModelFlowAgentTaskResponse> &\n AgentFlowApi_GetTaskDetailForAgentFlowResponseBody_2;\n\n/**\n * @description 获取agent flow任务详情,流式返回\n * @endpoint GET /api/v1/llm/agent/flow/:taskId\n */\nexport const AgentFlowApi_getTaskDetailForAgentFlow = async (\n taskId: string | number,\n options?: HttpOptions\n): Promise<AgentFlowApi_GetTaskDetailForAgentFlowResponseBody> =>\n /**! @contract easyops.api.llm.agent_flow.GetTaskDetailForAgentFlow@1.0.0 */ (\n await http.get<\n ResponseBodyWrapper<AgentFlowApi_GetTaskDetailForAgentFlowResponseBody>\n >(\n `api/gateway/logic.llm.aiops_service/api/v1/llm/agent/flow/${taskId}`,\n options\n )\n ).data;\n\nexport interface AgentFlowApi_GetTaskDetailForAgentFlowResponseBody_2 {\n /** 流式数据列表 */\n sseDataList?: any[];\n}\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAIA;;AAKA;AACA;AACA;AACA;AACO,MAAMC,sCAAsC,GAAG,MAAAA,CACpDC,MAAuB,EACvBC,OAAqB,KAErB,4EAA6E,CAC3E,MAAMC,UAAI,CAACC,GAAG,CAGZ,6DAA6DH,MAAM,EAAE,EACrEC,OACF,CAAC,EACDG,IAAI;AAACC,OAAA,CAAAN,sCAAA,GAAAA,sCAAA","ignoreList":[]}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
var _addJobMessageForAgentFlow = require("./addJobMessageForAgentFlow.js");
|
7
|
+
Object.keys(_addJobMessageForAgentFlow).forEach(function (key) {
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
9
|
+
if (key in exports && exports[key] === _addJobMessageForAgentFlow[key]) return;
|
10
|
+
Object.defineProperty(exports, key, {
|
11
|
+
enumerable: true,
|
12
|
+
get: function () {
|
13
|
+
return _addJobMessageForAgentFlow[key];
|
14
|
+
}
|
15
|
+
});
|
16
|
+
});
|
17
|
+
var _createTaskForAgentFlow = require("./createTaskForAgentFlow.js");
|
18
|
+
Object.keys(_createTaskForAgentFlow).forEach(function (key) {
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
20
|
+
if (key in exports && exports[key] === _createTaskForAgentFlow[key]) return;
|
21
|
+
Object.defineProperty(exports, key, {
|
22
|
+
enumerable: true,
|
23
|
+
get: function () {
|
24
|
+
return _createTaskForAgentFlow[key];
|
25
|
+
}
|
26
|
+
});
|
27
|
+
});
|
28
|
+
var _getTaskDetailForAgentFlow = require("./getTaskDetailForAgentFlow.js");
|
29
|
+
Object.keys(_getTaskDetailForAgentFlow).forEach(function (key) {
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
31
|
+
if (key in exports && exports[key] === _getTaskDetailForAgentFlow[key]) return;
|
32
|
+
Object.defineProperty(exports, key, {
|
33
|
+
enumerable: true,
|
34
|
+
get: function () {
|
35
|
+
return _getTaskDetailForAgentFlow[key];
|
36
|
+
}
|
37
|
+
});
|
38
|
+
});
|
39
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","names":["_addJobMessageForAgentFlow","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_createTaskForAgentFlow","_getTaskDetailForAgentFlow"],"sources":["../../../../../src/api/llm/agent_flow/index.ts"],"sourcesContent":["export * from \"./addJobMessageForAgentFlow.js\";\nexport * from \"./createTaskForAgentFlow.js\";\nexport * from \"./getTaskDetailForAgentFlow.js\";\n"],"mappings":";;;;;AAAA,IAAAA,0BAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,0BAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,0BAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,0BAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,uBAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,uBAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,uBAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,uBAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,0BAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,0BAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,0BAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,0BAAA,CAAAN,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
@@ -9,6 +9,6 @@ var _http = require("@next-core/http");
|
|
9
9
|
* @description 删除向量数据库中的向量
|
10
10
|
* @endpoint POST /api/v1/llm/aiops_base/embedding/delete
|
11
11
|
*/
|
12
|
-
const AiopsBaseApi_deleteEmbedding = (data, options) => /**! @contract easyops.api.llm.aiops_base.DeleteEmbedding@1.1.0 */_http.http.post("api/gateway/llm.
|
12
|
+
const AiopsBaseApi_deleteEmbedding = (data, options) => /**! @contract easyops.api.llm.aiops_base.DeleteEmbedding@1.1.0 */_http.http.post("api/gateway/logic.llm.aiops_service/api/v1/llm/aiops_base/embedding/delete", data, options);
|
13
13
|
exports.AiopsBaseApi_deleteEmbedding = AiopsBaseApi_deleteEmbedding;
|
14
14
|
//# sourceMappingURL=deleteEmbedding.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"deleteEmbedding.js","names":["_http","require","AiopsBaseApi_deleteEmbedding","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/aiops_base/deleteEmbedding.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\n\nexport interface AiopsBaseApi_DeleteEmbeddingRequestBody {\n /** 知识库id,同search中的命名空间(废弃) */\n namespace?: string;\n\n /** 是否删除整个知识库(废弃) */\n deleteKnowledge?: boolean;\n\n /** 文档所包含的id列表(废弃) */\n ids?: string[];\n\n /** 文档的instanceId */\n instanceIds?: string[];\n}\n\n/**\n * @description 删除向量数据库中的向量\n * @endpoint POST /api/v1/llm/aiops_base/embedding/delete\n */\nexport const AiopsBaseApi_deleteEmbedding = (\n data: AiopsBaseApi_DeleteEmbeddingRequestBody,\n options?: HttpOptions\n): Promise<void> =>\n /**! @contract easyops.api.llm.aiops_base.DeleteEmbedding@1.1.0 */ http.post<void>(\n \"api/gateway/llm.
|
1
|
+
{"version":3,"file":"deleteEmbedding.js","names":["_http","require","AiopsBaseApi_deleteEmbedding","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/aiops_base/deleteEmbedding.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\n\nexport interface AiopsBaseApi_DeleteEmbeddingRequestBody {\n /** 知识库id,同search中的命名空间(废弃) */\n namespace?: string;\n\n /** 是否删除整个知识库(废弃) */\n deleteKnowledge?: boolean;\n\n /** 文档所包含的id列表(废弃) */\n ids?: string[];\n\n /** 文档的instanceId */\n instanceIds?: string[];\n}\n\n/**\n * @description 删除向量数据库中的向量\n * @endpoint POST /api/v1/llm/aiops_base/embedding/delete\n */\nexport const AiopsBaseApi_deleteEmbedding = (\n data: AiopsBaseApi_DeleteEmbeddingRequestBody,\n options?: HttpOptions\n): Promise<void> =>\n /**! @contract easyops.api.llm.aiops_base.DeleteEmbedding@1.1.0 */ http.post<void>(\n \"api/gateway/logic.llm.aiops_service/api/v1/llm/aiops_base/embedding/delete\",\n data,\n options\n );\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAgBA;AACA;AACA;AACA;AACO,MAAMC,4BAA4B,GAAGA,CAC1CC,IAA6C,EAC7CC,OAAqB,KAErB,kEAAmEC,UAAI,CAACC,IAAI,CAC1E,4EAA4E,EAC5EH,IAAI,EACJC,OACF,CAAC;AAACG,OAAA,CAAAL,4BAAA,GAAAA,4BAAA","ignoreList":[]}
|
@@ -9,6 +9,6 @@ var _http = require("@next-core/http");
|
|
9
9
|
* @description 删除知识库
|
10
10
|
* @endpoint POST /api/v1/llm/aiops_base/knowledge/delete
|
11
11
|
*/
|
12
|
-
const AiopsBaseApi_deleteKnowledge = (data, options) => /**! @contract easyops.api.llm.aiops_base.DeleteKnowledge@1.0.0 */_http.http.post("api/gateway/llm.
|
12
|
+
const AiopsBaseApi_deleteKnowledge = (data, options) => /**! @contract easyops.api.llm.aiops_base.DeleteKnowledge@1.0.0 */_http.http.post("api/gateway/logic.llm.aiops_service/api/v1/llm/aiops_base/knowledge/delete", data, options);
|
13
13
|
exports.AiopsBaseApi_deleteKnowledge = AiopsBaseApi_deleteKnowledge;
|
14
14
|
//# sourceMappingURL=deleteKnowledge.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"deleteKnowledge.js","names":["_http","require","AiopsBaseApi_deleteKnowledge","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/aiops_base/deleteKnowledge.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\n\nexport interface AiopsBaseApi_DeleteKnowledgeRequestBody {\n /** 知识库的instanceId */\n instanceId?: string;\n}\n\n/**\n * @description 删除知识库\n * @endpoint POST /api/v1/llm/aiops_base/knowledge/delete\n */\nexport const AiopsBaseApi_deleteKnowledge = (\n data: AiopsBaseApi_DeleteKnowledgeRequestBody,\n options?: HttpOptions\n): Promise<void> =>\n /**! @contract easyops.api.llm.aiops_base.DeleteKnowledge@1.0.0 */ http.post<void>(\n \"api/gateway/llm.
|
1
|
+
{"version":3,"file":"deleteKnowledge.js","names":["_http","require","AiopsBaseApi_deleteKnowledge","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/aiops_base/deleteKnowledge.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\n\nexport interface AiopsBaseApi_DeleteKnowledgeRequestBody {\n /** 知识库的instanceId */\n instanceId?: string;\n}\n\n/**\n * @description 删除知识库\n * @endpoint POST /api/v1/llm/aiops_base/knowledge/delete\n */\nexport const AiopsBaseApi_deleteKnowledge = (\n data: AiopsBaseApi_DeleteKnowledgeRequestBody,\n options?: HttpOptions\n): Promise<void> =>\n /**! @contract easyops.api.llm.aiops_base.DeleteKnowledge@1.0.0 */ http.post<void>(\n \"api/gateway/logic.llm.aiops_service/api/v1/llm/aiops_base/knowledge/delete\",\n data,\n options\n );\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAOA;AACA;AACA;AACA;AACO,MAAMC,4BAA4B,GAAGA,CAC1CC,IAA6C,EAC7CC,OAAqB,KAErB,kEAAmEC,UAAI,CAACC,IAAI,CAC1E,4EAA4E,EAC5EH,IAAI,EACJC,OACF,CAAC;AAACG,OAAA,CAAAL,4BAAA,GAAAA,4BAAA","ignoreList":[]}
|
@@ -9,6 +9,6 @@ var _http = require("@next-core/http");
|
|
9
9
|
* @description 导入document
|
10
10
|
* @endpoint POST /api/v1/llm/aiops_base/import_doc
|
11
11
|
*/
|
12
|
-
const AiopsBaseApi_importDocumentEmbeddings = async (data, options) => /**! @contract easyops.api.llm.aiops_base.ImportDocumentEmbeddings@1.0.0 */(await _http.http.post("api/gateway/llm.
|
12
|
+
const AiopsBaseApi_importDocumentEmbeddings = async (data, options) => /**! @contract easyops.api.llm.aiops_base.ImportDocumentEmbeddings@1.0.0 */(await _http.http.post("api/gateway/logic.llm.aiops_service/api/v1/llm/aiops_base/import_doc", data, options)).data;
|
13
13
|
exports.AiopsBaseApi_importDocumentEmbeddings = AiopsBaseApi_importDocumentEmbeddings;
|
14
14
|
//# sourceMappingURL=importDocumentEmbeddings.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"importDocumentEmbeddings.js","names":["_http","require","AiopsBaseApi_importDocumentEmbeddings","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/aiops_base/importDocumentEmbeddings.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ModelLlmDocument } from \"../../../model/llm/index.js\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AiopsBaseApi_ImportDocumentEmbeddingsRequestBody {\n /** 导入的namespace */\n namespace?: string;\n\n /** doc id */\n docId?: string;\n\n /** 导入的document */\n docList?: AiopsBaseApi_ImportDocumentEmbeddingsRequestBody_docList_item[];\n\n /** 是否append */\n append?: boolean;\n}\n\nexport interface AiopsBaseApi_ImportDocumentEmbeddingsResponseBody {\n /** 解析的文档内容 */\n docs?: Partial<ModelLlmDocument>[];\n}\n\n/**\n * @description 导入document\n * @endpoint POST /api/v1/llm/aiops_base/import_doc\n */\nexport const AiopsBaseApi_importDocumentEmbeddings = async (\n data: AiopsBaseApi_ImportDocumentEmbeddingsRequestBody,\n options?: HttpOptions\n): Promise<AiopsBaseApi_ImportDocumentEmbeddingsResponseBody> =>\n /**! @contract easyops.api.llm.aiops_base.ImportDocumentEmbeddings@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsBaseApi_ImportDocumentEmbeddingsResponseBody>\n >(\n \"api/gateway/llm.
|
1
|
+
{"version":3,"file":"importDocumentEmbeddings.js","names":["_http","require","AiopsBaseApi_importDocumentEmbeddings","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/aiops_base/importDocumentEmbeddings.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ModelLlmDocument } from \"../../../model/llm/index.js\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AiopsBaseApi_ImportDocumentEmbeddingsRequestBody {\n /** 导入的namespace */\n namespace?: string;\n\n /** doc id */\n docId?: string;\n\n /** 导入的document */\n docList?: AiopsBaseApi_ImportDocumentEmbeddingsRequestBody_docList_item[];\n\n /** 是否append */\n append?: boolean;\n}\n\nexport interface AiopsBaseApi_ImportDocumentEmbeddingsResponseBody {\n /** 解析的文档内容 */\n docs?: Partial<ModelLlmDocument>[];\n}\n\n/**\n * @description 导入document\n * @endpoint POST /api/v1/llm/aiops_base/import_doc\n */\nexport const AiopsBaseApi_importDocumentEmbeddings = async (\n data: AiopsBaseApi_ImportDocumentEmbeddingsRequestBody,\n options?: HttpOptions\n): Promise<AiopsBaseApi_ImportDocumentEmbeddingsResponseBody> =>\n /**! @contract easyops.api.llm.aiops_base.ImportDocumentEmbeddings@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsBaseApi_ImportDocumentEmbeddingsResponseBody>\n >(\n \"api/gateway/logic.llm.aiops_service/api/v1/llm/aiops_base/import_doc\",\n data,\n options\n )\n ).data;\n\nexport interface AiopsBaseApi_ImportDocumentEmbeddingsRequestBody_docList_item {\n /** 内容 */\n pageContent?: string;\n\n /** metadata */\n metadata?: Record<string, any>;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAuBA;AACA;AACA;AACA;AACO,MAAMC,qCAAqC,GAAG,MAAAA,CACnDC,IAAsD,EACtDC,OAAqB,KAErB,2EAA4E,CAC1E,MAAMC,UAAI,CAACC,IAAI,CAGb,sEAAsE,EACtEH,IAAI,EACJC,OACF,CAAC,EACDD,IAAI;AAACI,OAAA,CAAAL,qCAAA,GAAAA,qCAAA","ignoreList":[]}
|
@@ -11,6 +11,6 @@ var _http = require("@next-core/http");
|
|
11
11
|
* @description 大模型聊天接口
|
12
12
|
* @endpoint POST /api/v1/llm/aiops_base/chat_service
|
13
13
|
*/
|
14
|
-
const AiopsBaseApi_llmChatServiceV1 = async (data, options) => /**! @contract easyops.api.llm.aiops_base.LLMChatServiceV1@1.0.0 */(await _http.http.post("api/gateway/llm.
|
14
|
+
const AiopsBaseApi_llmChatServiceV1 = async (data, options) => /**! @contract easyops.api.llm.aiops_base.LLMChatServiceV1@1.0.0 */(await _http.http.post("api/gateway/logic.llm.aiops_service/api/v1/llm/aiops_base/chat_service", data, options)).data;
|
15
15
|
exports.AiopsBaseApi_llmChatServiceV1 = AiopsBaseApi_llmChatServiceV1;
|
16
16
|
//# sourceMappingURL=llmChatServiceV1.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"llmChatServiceV1.js","names":["_http","require","AiopsBaseApi_llmChatServiceV1","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/aiops_base/llmChatServiceV1.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 AiopsBaseApi_LlmChatServiceV1RequestBody =\n Partial<ModelLlmChatRequest>;\n\n/** 接口返回,有两种格式,流式返回为sseDataList:[{\"role\":\"assistant\",\"content\":\"abc\"}],非流式返回为LLMChatResponse */\nexport type AiopsBaseApi_LlmChatServiceV1ResponseBody =\n Partial<ModelLlmChatResponse> & AiopsBaseApi_LlmChatServiceV1ResponseBody_2;\n\n/**\n * @description 大模型聊天接口\n * @endpoint POST /api/v1/llm/aiops_base/chat_service\n */\nexport const AiopsBaseApi_llmChatServiceV1 = async (\n data: AiopsBaseApi_LlmChatServiceV1RequestBody,\n options?: HttpOptions\n): Promise<AiopsBaseApi_LlmChatServiceV1ResponseBody> =>\n /**! @contract easyops.api.llm.aiops_base.LLMChatServiceV1@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsBaseApi_LlmChatServiceV1ResponseBody>\n >(\n \"api/gateway/llm.
|
1
|
+
{"version":3,"file":"llmChatServiceV1.js","names":["_http","require","AiopsBaseApi_llmChatServiceV1","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/aiops_base/llmChatServiceV1.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 AiopsBaseApi_LlmChatServiceV1RequestBody =\n Partial<ModelLlmChatRequest>;\n\n/** 接口返回,有两种格式,流式返回为sseDataList:[{\"role\":\"assistant\",\"content\":\"abc\"}],非流式返回为LLMChatResponse */\nexport type AiopsBaseApi_LlmChatServiceV1ResponseBody =\n Partial<ModelLlmChatResponse> & AiopsBaseApi_LlmChatServiceV1ResponseBody_2;\n\n/**\n * @description 大模型聊天接口\n * @endpoint POST /api/v1/llm/aiops_base/chat_service\n */\nexport const AiopsBaseApi_llmChatServiceV1 = async (\n data: AiopsBaseApi_LlmChatServiceV1RequestBody,\n options?: HttpOptions\n): Promise<AiopsBaseApi_LlmChatServiceV1ResponseBody> =>\n /**! @contract easyops.api.llm.aiops_base.LLMChatServiceV1@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsBaseApi_LlmChatServiceV1ResponseBody>\n >(\n \"api/gateway/logic.llm.aiops_service/api/v1/llm/aiops_base/chat_service\",\n data,\n options\n )\n ).data;\n\nexport interface AiopsBaseApi_LlmChatServiceV1ResponseBody_2 {\n /** 流式数据列表 */\n sseDataList?: any[];\n}\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAUA;;AAIA;AACA;AACA;AACA;AACO,MAAMC,6BAA6B,GAAG,MAAAA,CAC3CC,IAA8C,EAC9CC,OAAqB,KAErB,mEAAoE,CAClE,MAAMC,UAAI,CAACC,IAAI,CAGb,wEAAwE,EACxEH,IAAI,EACJC,OACF,CAAC,EACDD,IAAI;AAACI,OAAA,CAAAL,6BAAA,GAAAA,6BAAA","ignoreList":[]}
|
@@ -11,6 +11,6 @@ var _http = require("@next-core/http");
|
|
11
11
|
* @description 通用大模型聊天接口, 直接转发返回大模型请求
|
12
12
|
* @endpoint POST /v1/chat/completions
|
13
13
|
*/
|
14
|
-
const AiopsBaseApi_openaiChat = (data, options) => /**! @contract easyops.api.llm.aiops_base.OpenaiChat@1.0.0 */_http.http.post("api/gateway/llm.
|
14
|
+
const AiopsBaseApi_openaiChat = (data, options) => /**! @contract easyops.api.llm.aiops_base.OpenaiChat@1.0.0 */_http.http.post("api/gateway/logic.llm.aiops_service/v1/chat/completions", data, options);
|
15
15
|
exports.AiopsBaseApi_openaiChat = AiopsBaseApi_openaiChat;
|
16
16
|
//# sourceMappingURL=openaiChat.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"openaiChat.js","names":["_http","require","AiopsBaseApi_openaiChat","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/aiops_base/openaiChat.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport {\n ModelLlmChatRequest,\n ModelLlmChatResponse,\n} from \"../../../model/aiops_service/index.js\";\n\nexport type AiopsBaseApi_OpenaiChatRequestBody = Partial<ModelLlmChatRequest>;\n\n/** 接口返回,有两种格式,流式返回为sseDataList:[{\"role\":\"assistant\",\"content\":\"abc\"}],非流式返回为LLMChatResponse */\nexport type AiopsBaseApi_OpenaiChatResponseBody =\n Partial<ModelLlmChatResponse> & AiopsBaseApi_OpenaiChatResponseBody_2;\n\n/**\n * @description 通用大模型聊天接口, 直接转发返回大模型请求\n * @endpoint POST /v1/chat/completions\n */\nexport const AiopsBaseApi_openaiChat = (\n data: AiopsBaseApi_OpenaiChatRequestBody,\n options?: HttpOptions\n): Promise<AiopsBaseApi_OpenaiChatResponseBody> =>\n /**! @contract easyops.api.llm.aiops_base.OpenaiChat@1.0.0 */ http.post<AiopsBaseApi_OpenaiChatResponseBody>(\n \"api/gateway/llm.
|
1
|
+
{"version":3,"file":"openaiChat.js","names":["_http","require","AiopsBaseApi_openaiChat","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/aiops_base/openaiChat.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport {\n ModelLlmChatRequest,\n ModelLlmChatResponse,\n} from \"../../../model/aiops_service/index.js\";\n\nexport type AiopsBaseApi_OpenaiChatRequestBody = Partial<ModelLlmChatRequest>;\n\n/** 接口返回,有两种格式,流式返回为sseDataList:[{\"role\":\"assistant\",\"content\":\"abc\"}],非流式返回为LLMChatResponse */\nexport type AiopsBaseApi_OpenaiChatResponseBody =\n Partial<ModelLlmChatResponse> & AiopsBaseApi_OpenaiChatResponseBody_2;\n\n/**\n * @description 通用大模型聊天接口, 直接转发返回大模型请求\n * @endpoint POST /v1/chat/completions\n */\nexport const AiopsBaseApi_openaiChat = (\n data: AiopsBaseApi_OpenaiChatRequestBody,\n options?: HttpOptions\n): Promise<AiopsBaseApi_OpenaiChatResponseBody> =>\n /**! @contract easyops.api.llm.aiops_base.OpenaiChat@1.0.0 */ http.post<AiopsBaseApi_OpenaiChatResponseBody>(\n \"api/gateway/logic.llm.aiops_service/v1/chat/completions\",\n data,\n options\n );\n\nexport interface AiopsBaseApi_OpenaiChatResponseBody_2 {\n /** 流式数据列表 */\n sseDataList?: any[];\n}\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAQA;;AAIA;AACA;AACA;AACA;AACO,MAAMC,uBAAuB,GAAGA,CACrCC,IAAwC,EACxCC,OAAqB,KAErB,6DAA8DC,UAAI,CAACC,IAAI,CACrE,yDAAyD,EACzDH,IAAI,EACJC,OACF,CAAC;AAACG,OAAA,CAAAL,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
@@ -9,6 +9,6 @@ var _http = require("@next-core/http");
|
|
9
9
|
* @description 向向量数据库做相似查询
|
10
10
|
* @endpoint POST /api/v1/llm/aiops_base/embedding/search
|
11
11
|
*/
|
12
|
-
const AiopsBaseApi_searchEmbedding = async (data, options) => /**! @contract easyops.api.llm.aiops_base.SearchEmbedding@1.0.0 */(await _http.http.post("api/gateway/llm.
|
12
|
+
const AiopsBaseApi_searchEmbedding = async (data, options) => /**! @contract easyops.api.llm.aiops_base.SearchEmbedding@1.0.0 */(await _http.http.post("api/gateway/logic.llm.aiops_service/api/v1/llm/aiops_base/embedding/search", data, options)).data;
|
13
13
|
exports.AiopsBaseApi_searchEmbedding = AiopsBaseApi_searchEmbedding;
|
14
14
|
//# sourceMappingURL=searchEmbedding.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"searchEmbedding.js","names":["_http","require","AiopsBaseApi_searchEmbedding","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/aiops_base/searchEmbedding.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ModelLlmDocument } from \"../../../model/llm/index.js\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AiopsBaseApi_SearchEmbeddingRequestBody {\n /** 命名空间 */\n namespace?: string;\n\n /** 查询的句子 */\n query?: string;\n\n /** 过滤条件 */\n filter?: Record<string, any>;\n\n /** 返回topk条记录 */\n topk?: number;\n\n /** 是否按文档内容去重 */\n uniqWithContent?: boolean;\n}\n\nexport interface AiopsBaseApi_SearchEmbeddingResponseBody {\n /** 相似查询结果 */\n matchedDocs?: Partial<ModelLlmDocument>[];\n}\n\n/**\n * @description 向向量数据库做相似查询\n * @endpoint POST /api/v1/llm/aiops_base/embedding/search\n */\nexport const AiopsBaseApi_searchEmbedding = async (\n data: AiopsBaseApi_SearchEmbeddingRequestBody,\n options?: HttpOptions\n): Promise<AiopsBaseApi_SearchEmbeddingResponseBody> =>\n /**! @contract easyops.api.llm.aiops_base.SearchEmbedding@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsBaseApi_SearchEmbeddingResponseBody>\n >(\n \"api/gateway/llm.
|
1
|
+
{"version":3,"file":"searchEmbedding.js","names":["_http","require","AiopsBaseApi_searchEmbedding","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/aiops_base/searchEmbedding.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ModelLlmDocument } from \"../../../model/llm/index.js\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AiopsBaseApi_SearchEmbeddingRequestBody {\n /** 命名空间 */\n namespace?: string;\n\n /** 查询的句子 */\n query?: string;\n\n /** 过滤条件 */\n filter?: Record<string, any>;\n\n /** 返回topk条记录 */\n topk?: number;\n\n /** 是否按文档内容去重 */\n uniqWithContent?: boolean;\n}\n\nexport interface AiopsBaseApi_SearchEmbeddingResponseBody {\n /** 相似查询结果 */\n matchedDocs?: Partial<ModelLlmDocument>[];\n}\n\n/**\n * @description 向向量数据库做相似查询\n * @endpoint POST /api/v1/llm/aiops_base/embedding/search\n */\nexport const AiopsBaseApi_searchEmbedding = async (\n data: AiopsBaseApi_SearchEmbeddingRequestBody,\n options?: HttpOptions\n): Promise<AiopsBaseApi_SearchEmbeddingResponseBody> =>\n /**! @contract easyops.api.llm.aiops_base.SearchEmbedding@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsBaseApi_SearchEmbeddingResponseBody>\n >(\n \"api/gateway/logic.llm.aiops_service/api/v1/llm/aiops_base/embedding/search\",\n data,\n options\n )\n ).data;\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AA0BA;AACA;AACA;AACA;AACO,MAAMC,4BAA4B,GAAG,MAAAA,CAC1CC,IAA6C,EAC7CC,OAAqB,KAErB,kEAAmE,CACjE,MAAMC,UAAI,CAACC,IAAI,CAGb,4EAA4E,EAC5EH,IAAI,EACJC,OACF,CAAC,EACDD,IAAI;AAACI,OAAA,CAAAL,4BAAA,GAAAA,4BAAA","ignoreList":[]}
|
@@ -9,6 +9,6 @@ var _http = require("@next-core/http");
|
|
9
9
|
* @description 更新或者插入文档
|
10
10
|
* @endpoint POST /api/v1/llm/aiops_base/upsert_doc
|
11
11
|
*/
|
12
|
-
const AiopsBaseApi_upsertDocument = async (data, options) => /**! @contract easyops.api.llm.aiops_base.UpsertDocument@1.0.0 */(await _http.http.post("api/gateway/llm.
|
12
|
+
const AiopsBaseApi_upsertDocument = async (data, options) => /**! @contract easyops.api.llm.aiops_base.UpsertDocument@1.0.0 */(await _http.http.post("api/gateway/logic.llm.aiops_service/api/v1/llm/aiops_base/upsert_doc", data, options)).data;
|
13
13
|
exports.AiopsBaseApi_upsertDocument = AiopsBaseApi_upsertDocument;
|
14
14
|
//# sourceMappingURL=upsertDocument.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"upsertDocument.js","names":["_http","require","AiopsBaseApi_upsertDocument","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/aiops_base/upsertDocument.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ModelLlmDocument } from \"../../../model/llm/index.js\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AiopsBaseApi_UpsertDocumentRequestBody {\n /** 导入的namespace */\n namespace?: string;\n\n /** 过滤条件 */\n filter?: Record<string, any>;\n\n /** 导入的document */\n docList?: AiopsBaseApi_UpsertDocumentRequestBody_docList_item[];\n}\n\nexport interface AiopsBaseApi_UpsertDocumentResponseBody {\n /** 解析的文档内容 */\n docs?: Partial<ModelLlmDocument>[];\n}\n\n/**\n * @description 更新或者插入文档\n * @endpoint POST /api/v1/llm/aiops_base/upsert_doc\n */\nexport const AiopsBaseApi_upsertDocument = async (\n data: AiopsBaseApi_UpsertDocumentRequestBody,\n options?: HttpOptions\n): Promise<AiopsBaseApi_UpsertDocumentResponseBody> =>\n /**! @contract easyops.api.llm.aiops_base.UpsertDocument@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsBaseApi_UpsertDocumentResponseBody>\n >(\n \"api/gateway/llm.
|
1
|
+
{"version":3,"file":"upsertDocument.js","names":["_http","require","AiopsBaseApi_upsertDocument","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/aiops_base/upsertDocument.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ModelLlmDocument } from \"../../../model/llm/index.js\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AiopsBaseApi_UpsertDocumentRequestBody {\n /** 导入的namespace */\n namespace?: string;\n\n /** 过滤条件 */\n filter?: Record<string, any>;\n\n /** 导入的document */\n docList?: AiopsBaseApi_UpsertDocumentRequestBody_docList_item[];\n}\n\nexport interface AiopsBaseApi_UpsertDocumentResponseBody {\n /** 解析的文档内容 */\n docs?: Partial<ModelLlmDocument>[];\n}\n\n/**\n * @description 更新或者插入文档\n * @endpoint POST /api/v1/llm/aiops_base/upsert_doc\n */\nexport const AiopsBaseApi_upsertDocument = async (\n data: AiopsBaseApi_UpsertDocumentRequestBody,\n options?: HttpOptions\n): Promise<AiopsBaseApi_UpsertDocumentResponseBody> =>\n /**! @contract easyops.api.llm.aiops_base.UpsertDocument@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsBaseApi_UpsertDocumentResponseBody>\n >(\n \"api/gateway/logic.llm.aiops_service/api/v1/llm/aiops_base/upsert_doc\",\n data,\n options\n )\n ).data;\n\nexport interface AiopsBaseApi_UpsertDocumentRequestBody_docList_item {\n /** 内容 */\n pageContent?: string;\n\n /** metadata */\n metadata?: Record<string, any>;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAoBA;AACA;AACA;AACA;AACO,MAAMC,2BAA2B,GAAG,MAAAA,CACzCC,IAA4C,EAC5CC,OAAqB,KAErB,iEAAkE,CAChE,MAAMC,UAAI,CAACC,IAAI,CAGb,sEAAsE,EACtEH,IAAI,EACJC,OACF,CAAC,EACDD,IAAI;AAACI,OAAA,CAAAL,2BAAA,GAAAA,2BAAA","ignoreList":[]}
|
@@ -9,6 +9,6 @@ var _http = require("@next-core/http");
|
|
9
9
|
* @description 根据DocId更新或者插入文档
|
10
10
|
* @endpoint POST /api/v1/llm/aiops_base/upsert_with_doc_id
|
11
11
|
*/
|
12
|
-
const AiopsBaseApi_upsertWithDocId = async (data, options) => /**! @contract easyops.api.llm.aiops_base.UpsertWithDocId@1.0.0 */(await _http.http.post("api/gateway/llm.
|
12
|
+
const AiopsBaseApi_upsertWithDocId = async (data, options) => /**! @contract easyops.api.llm.aiops_base.UpsertWithDocId@1.0.0 */(await _http.http.post("api/gateway/logic.llm.aiops_service/api/v1/llm/aiops_base/upsert_with_doc_id", data, options)).data;
|
13
13
|
exports.AiopsBaseApi_upsertWithDocId = AiopsBaseApi_upsertWithDocId;
|
14
14
|
//# sourceMappingURL=upsertWithDocId.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"upsertWithDocId.js","names":["_http","require","AiopsBaseApi_upsertWithDocId","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/aiops_base/upsertWithDocId.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ModelLlmDocument } from \"../../../model/llm/index.js\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AiopsBaseApi_UpsertWithDocIdRequestBody {\n /** 导入的namespace */\n namespace?: string;\n\n /** 文档id */\n docId?: string;\n\n /** 导入的document */\n docList?: AiopsBaseApi_UpsertWithDocIdRequestBody_docList_item[];\n}\n\nexport interface AiopsBaseApi_UpsertWithDocIdResponseBody {\n /** 解析的文档内容 */\n docs?: Partial<ModelLlmDocument>[];\n}\n\n/**\n * @description 根据DocId更新或者插入文档\n * @endpoint POST /api/v1/llm/aiops_base/upsert_with_doc_id\n */\nexport const AiopsBaseApi_upsertWithDocId = async (\n data: AiopsBaseApi_UpsertWithDocIdRequestBody,\n options?: HttpOptions\n): Promise<AiopsBaseApi_UpsertWithDocIdResponseBody> =>\n /**! @contract easyops.api.llm.aiops_base.UpsertWithDocId@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsBaseApi_UpsertWithDocIdResponseBody>\n >(\n \"api/gateway/llm.
|
1
|
+
{"version":3,"file":"upsertWithDocId.js","names":["_http","require","AiopsBaseApi_upsertWithDocId","data","options","http","post","exports"],"sources":["../../../../../src/api/llm/aiops_base/upsertWithDocId.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ModelLlmDocument } from \"../../../model/llm/index.js\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AiopsBaseApi_UpsertWithDocIdRequestBody {\n /** 导入的namespace */\n namespace?: string;\n\n /** 文档id */\n docId?: string;\n\n /** 导入的document */\n docList?: AiopsBaseApi_UpsertWithDocIdRequestBody_docList_item[];\n}\n\nexport interface AiopsBaseApi_UpsertWithDocIdResponseBody {\n /** 解析的文档内容 */\n docs?: Partial<ModelLlmDocument>[];\n}\n\n/**\n * @description 根据DocId更新或者插入文档\n * @endpoint POST /api/v1/llm/aiops_base/upsert_with_doc_id\n */\nexport const AiopsBaseApi_upsertWithDocId = async (\n data: AiopsBaseApi_UpsertWithDocIdRequestBody,\n options?: HttpOptions\n): Promise<AiopsBaseApi_UpsertWithDocIdResponseBody> =>\n /**! @contract easyops.api.llm.aiops_base.UpsertWithDocId@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsBaseApi_UpsertWithDocIdResponseBody>\n >(\n \"api/gateway/logic.llm.aiops_service/api/v1/llm/aiops_base/upsert_with_doc_id\",\n data,\n options\n )\n ).data;\n\nexport interface AiopsBaseApi_UpsertWithDocIdRequestBody_docList_item {\n /** 内容 */\n pageContent?: string;\n\n /** metadata */\n metadata?: Record<string, any>;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAoBA;AACA;AACA;AACA;AACO,MAAMC,4BAA4B,GAAG,MAAAA,CAC1CC,IAA6C,EAC7CC,OAAqB,KAErB,kEAAmE,CACjE,MAAMC,UAAI,CAACC,IAAI,CAGb,8EAA8E,EAC9EH,IAAI,EACJC,OACF,CAAC,EACDD,IAAI;AAACI,OAAA,CAAAL,4BAAA,GAAAA,4BAAA","ignoreList":[]}
|