@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
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"summaryQuestionV2.js","names":["http","AiopsToolsApi_summaryQuestionV2","data","options","post"],"sources":["../../../../../src/api/llm/aiops_tools/summaryQuestionV2.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ModelLlmChatMessage } from \"../../../model/aiops_service/index.js\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AiopsToolsApi_SummaryQuestionV2RequestBody {\n /** 总结提示词模版引擎,为空时,使用默认模板 */\n template?: string;\n\n /** 模板引擎的数据,默认会注入 input 变量 */\n variables?: Record<string, any>;\n\n /** 大模型id */\n model?: string;\n\n /** 历史对话消息 */\n historyMessages?: Partial<ModelLlmChatMessage>[];\n\n /** 输入的问题 */\n input?: string;\n\n /** system角色的提示词模板 */\n systemTemplate?: string;\n\n /** system模板所需要的数据 */\n systemVariables?: Record<string, any>;\n\n /** 输入的图片url */\n images?: string[];\n}\n\nexport interface AiopsToolsApi_SummaryQuestionV2ResponseBody {\n /** 总结后的新问题 */\n data?: string;\n}\n\n/**\n * @description 根据模板与大模型对话,总结用户问题\n * @endpoint POST /api/v1/llm/tools/summary_question_v2\n */\nexport const AiopsToolsApi_summaryQuestionV2 = async (\n data: AiopsToolsApi_SummaryQuestionV2RequestBody,\n options?: HttpOptions\n): Promise<AiopsToolsApi_SummaryQuestionV2ResponseBody> =>\n /**! @contract easyops.api.llm.aiops_tools.SummaryQuestionV2@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsToolsApi_SummaryQuestionV2ResponseBody>\n >(\n \"api/gateway/llm.
|
1
|
+
{"version":3,"file":"summaryQuestionV2.js","names":["http","AiopsToolsApi_summaryQuestionV2","data","options","post"],"sources":["../../../../../src/api/llm/aiops_tools/summaryQuestionV2.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ModelLlmChatMessage } from \"../../../model/aiops_service/index.js\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AiopsToolsApi_SummaryQuestionV2RequestBody {\n /** 总结提示词模版引擎,为空时,使用默认模板 */\n template?: string;\n\n /** 模板引擎的数据,默认会注入 input 变量 */\n variables?: Record<string, any>;\n\n /** 大模型id */\n model?: string;\n\n /** 历史对话消息 */\n historyMessages?: Partial<ModelLlmChatMessage>[];\n\n /** 输入的问题 */\n input?: string;\n\n /** system角色的提示词模板 */\n systemTemplate?: string;\n\n /** system模板所需要的数据 */\n systemVariables?: Record<string, any>;\n\n /** 输入的图片url */\n images?: string[];\n}\n\nexport interface AiopsToolsApi_SummaryQuestionV2ResponseBody {\n /** 总结后的新问题 */\n data?: string;\n}\n\n/**\n * @description 根据模板与大模型对话,总结用户问题\n * @endpoint POST /api/v1/llm/tools/summary_question_v2\n */\nexport const AiopsToolsApi_summaryQuestionV2 = async (\n data: AiopsToolsApi_SummaryQuestionV2RequestBody,\n options?: HttpOptions\n): Promise<AiopsToolsApi_SummaryQuestionV2ResponseBody> =>\n /**! @contract easyops.api.llm.aiops_tools.SummaryQuestionV2@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsToolsApi_SummaryQuestionV2ResponseBody>\n >(\n \"api/gateway/logic.llm.aiops_service/api/v1/llm/tools/summary_question_v2\",\n data,\n options\n )\n ).data;\n"],"mappings":"AAAA,SAASA,IAAI,QAAqB,iBAAiB;AAmCnD;AACA;AACA;AACA;AACA,OAAO,MAAMC,+BAA+B,GAAG,MAAAA,CAC7CC,IAAgD,EAChDC,OAAqB,KAErB,qEAAsE,CACpE,MAAMH,IAAI,CAACI,IAAI,CAGb,0EAA0E,EAC1EF,IAAI,EACJC,OACF,CAAC,EACDD,IAAI","ignoreList":[]}
|
@@ -3,5 +3,5 @@ import { http } from "@next-core/http";
|
|
3
3
|
* @description 根据模板与大模型对话,返回json
|
4
4
|
* @endpoint POST /api/v1/llm/tools/template_llm_chat_v2
|
5
5
|
*/
|
6
|
-
export const AiopsToolsApi_templateLlmChatV2 = async (data, options) => /**! @contract easyops.api.llm.aiops_tools.TemplateLlmChatV2@1.0.0 */(await http.post("api/gateway/llm.
|
6
|
+
export const AiopsToolsApi_templateLlmChatV2 = async (data, options) => /**! @contract easyops.api.llm.aiops_tools.TemplateLlmChatV2@1.0.0 */(await http.post("api/gateway/logic.llm.aiops_service/api/v1/llm/tools/template_llm_chat_v2", data, options)).data;
|
7
7
|
//# sourceMappingURL=templateLlmChatV2.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"templateLlmChatV2.js","names":["http","AiopsToolsApi_templateLlmChatV2","data","options","post"],"sources":["../../../../../src/api/llm/aiops_tools/templateLlmChatV2.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport {\n ModelLlmChatAgentTaskResponse,\n ModelLlmChatMessage,\n} from \"../../../model/aiops_service/index.js\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AiopsToolsApi_TemplateLlmChatV2RequestBody {\n /** 模板,为空时,不使用默认引擎 */\n template?: string;\n\n /** 模板引擎的数据 */\n variables?: Record<string, any>;\n\n /** 大模型id */\n model?: string;\n\n /** 历史对话消息 */\n historyMessages?: Partial<ModelLlmChatMessage>[];\n\n /** 输入对话,模板为空时才生效 */\n input?: string;\n\n /** 输出格式,默认json */\n outputType?: string;\n\n /** 取值范围是:(0.0, 1.0],不能等于 0,默认值为 0.1,值越大,会使输出更随机,更具创造性;值越小,输出会更加稳定或确定 */\n temperature?: number;\n\n /** 是否是调试模式,为true时,返回debug_resp */\n debug?: boolean;\n\n /** 是否是流式 */\n stream?: boolean;\n\n /** system角色的提示词模板 */\n systemTemplate?: string;\n\n /** system模板所需要的数据 */\n systemVariables?: Record<string, any>;\n\n /** 任务id */\n taskId?: string;\n\n /** 输入的图片url */\n images?: string[];\n}\n\nexport type AiopsToolsApi_TemplateLlmChatV2ResponseBody =\n Partial<ModelLlmChatAgentTaskResponse> &\n AiopsToolsApi_TemplateLlmChatV2ResponseBody_2;\n\n/**\n * @description 根据模板与大模型对话,返回json\n * @endpoint POST /api/v1/llm/tools/template_llm_chat_v2\n */\nexport const AiopsToolsApi_templateLlmChatV2 = async (\n data: AiopsToolsApi_TemplateLlmChatV2RequestBody,\n options?: HttpOptions\n): Promise<AiopsToolsApi_TemplateLlmChatV2ResponseBody> =>\n /**! @contract easyops.api.llm.aiops_tools.TemplateLlmChatV2@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsToolsApi_TemplateLlmChatV2ResponseBody>\n >(\n \"api/gateway/llm.
|
1
|
+
{"version":3,"file":"templateLlmChatV2.js","names":["http","AiopsToolsApi_templateLlmChatV2","data","options","post"],"sources":["../../../../../src/api/llm/aiops_tools/templateLlmChatV2.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport {\n ModelLlmChatAgentTaskResponse,\n ModelLlmChatMessage,\n} from \"../../../model/aiops_service/index.js\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface AiopsToolsApi_TemplateLlmChatV2RequestBody {\n /** 模板,为空时,不使用默认引擎 */\n template?: string;\n\n /** 模板引擎的数据 */\n variables?: Record<string, any>;\n\n /** 大模型id */\n model?: string;\n\n /** 历史对话消息 */\n historyMessages?: Partial<ModelLlmChatMessage>[];\n\n /** 输入对话,模板为空时才生效 */\n input?: string;\n\n /** 输出格式,默认json */\n outputType?: string;\n\n /** 取值范围是:(0.0, 1.0],不能等于 0,默认值为 0.1,值越大,会使输出更随机,更具创造性;值越小,输出会更加稳定或确定 */\n temperature?: number;\n\n /** 是否是调试模式,为true时,返回debug_resp */\n debug?: boolean;\n\n /** 是否是流式 */\n stream?: boolean;\n\n /** system角色的提示词模板 */\n systemTemplate?: string;\n\n /** system模板所需要的数据 */\n systemVariables?: Record<string, any>;\n\n /** 任务id */\n taskId?: string;\n\n /** 输入的图片url */\n images?: string[];\n}\n\nexport type AiopsToolsApi_TemplateLlmChatV2ResponseBody =\n Partial<ModelLlmChatAgentTaskResponse> &\n AiopsToolsApi_TemplateLlmChatV2ResponseBody_2;\n\n/**\n * @description 根据模板与大模型对话,返回json\n * @endpoint POST /api/v1/llm/tools/template_llm_chat_v2\n */\nexport const AiopsToolsApi_templateLlmChatV2 = async (\n data: AiopsToolsApi_TemplateLlmChatV2RequestBody,\n options?: HttpOptions\n): Promise<AiopsToolsApi_TemplateLlmChatV2ResponseBody> =>\n /**! @contract easyops.api.llm.aiops_tools.TemplateLlmChatV2@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<AiopsToolsApi_TemplateLlmChatV2ResponseBody>\n >(\n \"api/gateway/logic.llm.aiops_service/api/v1/llm/tools/template_llm_chat_v2\",\n data,\n options\n )\n ).data;\n\nexport interface AiopsToolsApi_TemplateLlmChatV2ResponseBody_2 {\n /** 提取返回的数据 */\n data?: any;\n\n /** 调试时大模型返回值 */\n debug_resp?: string;\n\n /** 如果解析不到正确的数据格式,则将大模型返回的数据塞到这里 */\n errorOutput?: string;\n}\n"],"mappings":"AAAA,SAASA,IAAI,QAAqB,iBAAiB;AAoDnD;AACA;AACA;AACA;AACA,OAAO,MAAMC,+BAA+B,GAAG,MAAAA,CAC7CC,IAAgD,EAChDC,OAAqB,KAErB,qEAAsE,CACpE,MAAMH,IAAI,CAACI,IAAI,CAGb,2EAA2E,EAC3EF,IAAI,EACJC,OACF,CAAC,EACDD,IAAI","ignoreList":[]}
|
@@ -3,5 +3,5 @@ import { http } from "@next-core/http";
|
|
3
3
|
* @description 自动生成brick
|
4
4
|
* @endpoint POST /api/v1/llm/virtual_builder/generate_storyboard
|
5
5
|
*/
|
6
|
-
export const VirtualBuilderApi_generateStoryboard = async (data, options) => /**! @contract easyops.api.llm.virtual_builder.GenerateStoryboard@1.0.0 */(await http.post("api/gateway/llm.virtual_builder
|
6
|
+
export const VirtualBuilderApi_generateStoryboard = async (data, options) => /**! @contract easyops.api.llm.virtual_builder.GenerateStoryboard@1.0.0 */(await http.post("api/gateway/logic.llm.virtual_builder/api/v1/llm/virtual_builder/generate_storyboard", data, options)).data;
|
7
7
|
//# sourceMappingURL=generateStoryboard.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"generateStoryboard.js","names":["http","VirtualBuilderApi_generateStoryboard","data","options","post"],"sources":["../../../../../src/api/llm/virtual_builder/generateStoryboard.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface VirtualBuilderApi_GenerateStoryboardRequestBody {\n /** 用户输入 */\n userInput: string;\n\n /** 会话id */\n sessionId?: string;\n}\n\nexport interface VirtualBuilderApi_GenerateStoryboardResponseBody {\n /** llm的输出 */\n outputs?: VirtualBuilderApi_GenerateStoryboardResponseBody_outputs_item[];\n\n /** 会话id */\n sessionId?: string;\n}\n\n/**\n * @description 自动生成brick\n * @endpoint POST /api/v1/llm/virtual_builder/generate_storyboard\n */\nexport const VirtualBuilderApi_generateStoryboard = async (\n data: VirtualBuilderApi_GenerateStoryboardRequestBody,\n options?: HttpOptions\n): Promise<VirtualBuilderApi_GenerateStoryboardResponseBody> =>\n /**! @contract easyops.api.llm.virtual_builder.GenerateStoryboard@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<VirtualBuilderApi_GenerateStoryboardResponseBody>\n >(\n \"api/gateway/llm.virtual_builder
|
1
|
+
{"version":3,"file":"generateStoryboard.js","names":["http","VirtualBuilderApi_generateStoryboard","data","options","post"],"sources":["../../../../../src/api/llm/virtual_builder/generateStoryboard.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface VirtualBuilderApi_GenerateStoryboardRequestBody {\n /** 用户输入 */\n userInput: string;\n\n /** 会话id */\n sessionId?: string;\n}\n\nexport interface VirtualBuilderApi_GenerateStoryboardResponseBody {\n /** llm的输出 */\n outputs?: VirtualBuilderApi_GenerateStoryboardResponseBody_outputs_item[];\n\n /** 会话id */\n sessionId?: string;\n}\n\n/**\n * @description 自动生成brick\n * @endpoint POST /api/v1/llm/virtual_builder/generate_storyboard\n */\nexport const VirtualBuilderApi_generateStoryboard = async (\n data: VirtualBuilderApi_GenerateStoryboardRequestBody,\n options?: HttpOptions\n): Promise<VirtualBuilderApi_GenerateStoryboardResponseBody> =>\n /**! @contract easyops.api.llm.virtual_builder.GenerateStoryboard@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<VirtualBuilderApi_GenerateStoryboardResponseBody>\n >(\n \"api/gateway/logic.llm.virtual_builder/api/v1/llm/virtual_builder/generate_storyboard\",\n data,\n options\n )\n ).data;\n\nexport interface VirtualBuilderApi_GenerateStoryboardResponseBody_outputs_item {\n /** 输出内容的类型,markdown或者storyboard */\n type?: \"markdown\" | \"storyboard\";\n\n /** 输出内容 */\n content?: string;\n}\n"],"mappings":"AAAA,SAASA,IAAI,QAAqB,iBAAiB;AAmBnD;AACA;AACA;AACA;AACA,OAAO,MAAMC,oCAAoC,GAAG,MAAAA,CAClDC,IAAqD,EACrDC,OAAqB,KAErB,0EAA2E,CACzE,MAAMH,IAAI,CAACI,IAAI,CAGb,sFAAsF,EACtFF,IAAI,EACJC,OACF,CAAC,EACDD,IAAI","ignoreList":[]}
|
@@ -3,5 +3,5 @@ import { http } from "@next-core/http";
|
|
3
3
|
* @description 流式自动生成brick
|
4
4
|
* @endpoint POST /api/v1/llm/virtual_builder/generate_storyboard/stream
|
5
5
|
*/
|
6
|
-
export const VirtualBuilderApi_generateStoryboardStream = async (data, options) => /**! @contract easyops.api.llm.virtual_builder.GenerateStoryboardStream@1.0.0 */(await http.post("api/gateway/llm.virtual_builder
|
6
|
+
export const VirtualBuilderApi_generateStoryboardStream = async (data, options) => /**! @contract easyops.api.llm.virtual_builder.GenerateStoryboardStream@1.0.0 */(await http.post("api/gateway/logic.llm.virtual_builder/api/v1/llm/virtual_builder/generate_storyboard/stream", data, options)).data;
|
7
7
|
//# sourceMappingURL=generateStoryboardStream.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"generateStoryboardStream.js","names":["http","VirtualBuilderApi_generateStoryboardStream","data","options","post"],"sources":["../../../../../src/api/llm/virtual_builder/generateStoryboardStream.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface VirtualBuilderApi_GenerateStoryboardStreamRequestBody {\n /** 用户输入 */\n userInput: string;\n\n /** 会话id */\n sessionId?: string;\n}\n\nexport interface VirtualBuilderApi_GenerateStoryboardStreamResponseBody {\n /** websocket消息信息 */\n websocket?: VirtualBuilderApi_GenerateStoryboardStreamResponseBody_websocket;\n\n /** 会话id */\n sessionId?: string;\n}\n\n/**\n * @description 流式自动生成brick\n * @endpoint POST /api/v1/llm/virtual_builder/generate_storyboard/stream\n */\nexport const VirtualBuilderApi_generateStoryboardStream = async (\n data: VirtualBuilderApi_GenerateStoryboardStreamRequestBody,\n options?: HttpOptions\n): Promise<VirtualBuilderApi_GenerateStoryboardStreamResponseBody> =>\n /**! @contract easyops.api.llm.virtual_builder.GenerateStoryboardStream@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<VirtualBuilderApi_GenerateStoryboardStreamResponseBody>\n >(\n \"api/gateway/llm.virtual_builder
|
1
|
+
{"version":3,"file":"generateStoryboardStream.js","names":["http","VirtualBuilderApi_generateStoryboardStream","data","options","post"],"sources":["../../../../../src/api/llm/virtual_builder/generateStoryboardStream.ts"],"sourcesContent":["import { http, HttpOptions } from \"@next-core/http\";\nimport { ResponseBodyWrapper } from \"../../../wrapper.js\";\n\nexport interface VirtualBuilderApi_GenerateStoryboardStreamRequestBody {\n /** 用户输入 */\n userInput: string;\n\n /** 会话id */\n sessionId?: string;\n}\n\nexport interface VirtualBuilderApi_GenerateStoryboardStreamResponseBody {\n /** websocket消息信息 */\n websocket?: VirtualBuilderApi_GenerateStoryboardStreamResponseBody_websocket;\n\n /** 会话id */\n sessionId?: string;\n}\n\n/**\n * @description 流式自动生成brick\n * @endpoint POST /api/v1/llm/virtual_builder/generate_storyboard/stream\n */\nexport const VirtualBuilderApi_generateStoryboardStream = async (\n data: VirtualBuilderApi_GenerateStoryboardStreamRequestBody,\n options?: HttpOptions\n): Promise<VirtualBuilderApi_GenerateStoryboardStreamResponseBody> =>\n /**! @contract easyops.api.llm.virtual_builder.GenerateStoryboardStream@1.0.0 */ (\n await http.post<\n ResponseBodyWrapper<VirtualBuilderApi_GenerateStoryboardStreamResponseBody>\n >(\n \"api/gateway/logic.llm.virtual_builder/api/v1/llm/virtual_builder/generate_storyboard/stream\",\n data,\n options\n )\n ).data;\n\nexport interface VirtualBuilderApi_GenerateStoryboardStreamResponseBody_websocket {\n /** websocket消息的system */\n system?: string;\n\n /** websocket消息的topic */\n topic?: string;\n}\n"],"mappings":"AAAA,SAASA,IAAI,QAAqB,iBAAiB;AAmBnD;AACA;AACA;AACA;AACA,OAAO,MAAMC,0CAA0C,GAAG,MAAAA,CACxDC,IAA2D,EAC3DC,OAAqB,KAErB,gFAAiF,CAC/E,MAAMH,IAAI,CAACI,IAAI,CAGb,6FAA6F,EAC7FF,IAAI,EACJC,OACF,CAAC,EACDD,IAAI","ignoreList":[]}
|
package/dist/esm/index.js
CHANGED
package/dist/esm/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":["_AiopsServiceModels","AiopsServiceModels","_LlmModels","LlmModels"],"sources":["../../src/index.ts"],"sourcesContent":["export * from \"./api/llm/agent/index.js\";\nexport * from \"./api/llm/aiops_base/index.js\";\nexport * from \"./api/llm/aiops_memory/index.js\";\nexport * from \"./api/llm/aiops_prompt/index.js\";\nexport * from \"./api/llm/aiops_rag/index.js\";\nexport * from \"./api/llm/aiops_service/index.js\";\nexport * from \"./api/llm/aiops_tools/index.js\";\nexport * from \"./api/llm/virtual_builder/index.js\";\nexport * as AiopsServiceModels from \"./model/aiops_service/index.js\";\nexport * as LlmModels from \"./model/llm/index.js\";\n"],"mappings":"AAAA,cAAc,0BAA0B;AACxC,cAAc,+BAA+B;AAC7C,cAAc,iCAAiC;AAC/C,cAAc,iCAAiC;AAC/C,cAAc,8BAA8B;AAC5C,cAAc,kCAAkC;AAChD,cAAc,gCAAgC;AAC9C,cAAc,oCAAoC;AAAC,YAAAA,mBAAA,MACf,gCAAgC;AAAA,SAAAA,mBAAA,IAAxDC,kBAAkB;AAAA,YAAAC,UAAA,MACH,sBAAsB;AAAA,SAAAA,UAAA,IAArCC,SAAS","ignoreList":[]}
|
1
|
+
{"version":3,"file":"index.js","names":["_AiopsServiceModels","AiopsServiceModels","_LlmModels","LlmModels"],"sources":["../../src/index.ts"],"sourcesContent":["export * from \"./api/llm/agent/index.js\";\nexport * from \"./api/llm/agent_flow/index.js\";\nexport * from \"./api/llm/aiops_base/index.js\";\nexport * from \"./api/llm/aiops_memory/index.js\";\nexport * from \"./api/llm/aiops_prompt/index.js\";\nexport * from \"./api/llm/aiops_rag/index.js\";\nexport * from \"./api/llm/aiops_service/index.js\";\nexport * from \"./api/llm/aiops_tools/index.js\";\nexport * from \"./api/llm/virtual_builder/index.js\";\nexport * as AiopsServiceModels from \"./model/aiops_service/index.js\";\nexport * as LlmModels from \"./model/llm/index.js\";\n"],"mappings":"AAAA,cAAc,0BAA0B;AACxC,cAAc,+BAA+B;AAC7C,cAAc,+BAA+B;AAC7C,cAAc,iCAAiC;AAC/C,cAAc,iCAAiC;AAC/C,cAAc,8BAA8B;AAC5C,cAAc,kCAAkC;AAChD,cAAc,gCAAgC;AAC9C,cAAc,oCAAoC;AAAC,YAAAA,mBAAA,MACf,gCAAgC;AAAA,SAAAA,mBAAA,IAAxDC,kBAAkB;AAAA,YAAAC,UAAA,MACH,sBAAsB;AAAA,SAAAA,UAAA,IAArCC,SAAS","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModelFlowAgentTaskMessage.js","names":[],"sources":["../../../../src/model/llm/ModelFlowAgentTaskMessage.ts"],"sourcesContent":["/** flow agent的消息 */\nexport interface ModelFlowAgentTaskMessage {\n /** 角色 */\n role: string;\n\n /** 消息 */\n parts: ModelFlowAgentTaskMessage_parts_item[];\n}\n\nexport interface ModelFlowAgentTaskMessage_parts_item {\n /** 消息类型,可选:text, file, data */\n type?: string;\n\n /** 类型为text时的内容 */\n text?: string;\n\n /** 类型为file时的内容 */\n file?: ModelFlowAgentTaskMessage_parts_item_file;\n\n /** 类型为data时的内容 */\n data?: Record<string, any>;\n}\n\nexport interface ModelFlowAgentTaskMessage_parts_item_file {\n /** 文件名 */\n name?: string;\n\n /** 类型 */\n mimeType?: string;\n\n /** base64编码后的内容 */\n bytes?: string;\n\n /** 链接 */\n uri?: string;\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ModelFlowAgentTaskResponse.js","names":[],"sources":["../../../../src/model/llm/ModelFlowAgentTaskResponse.ts"],"sourcesContent":["import { ModelFlowAgentTaskMessage } from \"./index.js\";\n\n/** flow agent的请求返回值 */\nexport interface ModelFlowAgentTaskResponse {\n /** 任务id */\n id: string;\n\n /** 任务状态,可选值:| \"submitted\", \"working\", \"input-required\",\"completed\",\"canceled\",\"failed\", \"unknown\";\n */\n state: string;\n\n /** 用户要求 */\n requirement: string;\n\n /** 任务计划步骤 */\n plan: ModelFlowAgentTaskResponse_plan_item[];\n\n /** 任务详情 */\n jobs: ModelFlowAgentTaskResponse_jobs_item[];\n}\n\nexport interface ModelFlowAgentTaskResponse_plan_item {\n /** Pre-generated Job ID for this step */\n id?: string;\n\n /** 任务说明 */\n instruction?: string;\n}\n\nexport interface ModelFlowAgentTaskResponse_jobs_item {\n /** job id */\n id?: string;\n\n /** 父任务id */\n parent?: string[];\n\n /** 任务说明 */\n instruction?: string;\n\n /** 任务状态,可选值:| \"submitted\", \"working\", \"input-required\",\"completed\",\"canceled\",\"failed\", \"unknown\";\n */\n state?: string;\n\n /** 工具执行结果 */\n toolCall?: ModelFlowAgentTaskResponse_jobs_item_toolCall;\n\n /** 执行结果消息 */\n messages?: Partial<ModelFlowAgentTaskMessage>[];\n}\n\nexport interface ModelFlowAgentTaskResponse_jobs_item_toolCall {\n /** 工具唯一名称 */\n name?: string;\n\n /** 工具执行参数 */\n arguments?: Record<string, any>;\n}\n"],"mappings":"","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/model/llm/index.ts"],"sourcesContent":["export * from \"./ModelLlmDocument.js\";\nexport * from \"./ModelLlmMemoryEnv.js\";\nexport * from \"./ModelLlmMemory.js\";\n"],"mappings":"AAAA,cAAc,uBAAuB;AACrC,cAAc,wBAAwB;AACtC,cAAc,qBAAqB","ignoreList":[]}
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/model/llm/index.ts"],"sourcesContent":["export * from \"./ModelFlowAgentTaskMessage.js\";\nexport * from \"./ModelFlowAgentTaskResponse.js\";\nexport * from \"./ModelLlmDocument.js\";\nexport * from \"./ModelLlmMemoryEnv.js\";\nexport * from \"./ModelLlmMemory.js\";\n"],"mappings":"AAAA,cAAc,gCAAgC;AAC9C,cAAc,iCAAiC;AAC/C,cAAc,uBAAuB;AACrC,cAAc,wBAAwB;AACtC,cAAc,qBAAqB","ignoreList":[]}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
export interface AgentFlowApi_AddJobMessageForAgentFlowRequestBody {
|
3
|
+
/** 补充输入 */
|
4
|
+
input?: string;
|
5
|
+
}
|
6
|
+
/**
|
7
|
+
* @description flow agent补充消息
|
8
|
+
* @endpoint POST /api/v1/llm/agent/flow/:taskId/job/:jobId
|
9
|
+
*/
|
10
|
+
export declare const AgentFlowApi_addJobMessageForAgentFlow: (taskId: string | number, jobId: string | number, data: AgentFlowApi_AddJobMessageForAgentFlowRequestBody, options?: HttpOptions) => Promise<void>;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
export interface AgentFlowApi_CreateTaskForAgentFlowRequestBody {
|
3
|
+
/** 用户输入 */
|
4
|
+
input?: string;
|
5
|
+
/** 指定处理任务的agent */
|
6
|
+
agentId?: string;
|
7
|
+
}
|
8
|
+
export interface AgentFlowApi_CreateTaskForAgentFlowResponseBody {
|
9
|
+
/** 任务id */
|
10
|
+
taskId?: string;
|
11
|
+
}
|
12
|
+
/**
|
13
|
+
* @description 创建agent flow的任务
|
14
|
+
* @endpoint POST /api/v1/llm/agent/flow/create
|
15
|
+
*/
|
16
|
+
export declare const AgentFlowApi_createTaskForAgentFlow: (data: AgentFlowApi_CreateTaskForAgentFlowRequestBody, options?: HttpOptions) => Promise<AgentFlowApi_CreateTaskForAgentFlowResponseBody>;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
import { ModelFlowAgentTaskResponse } from "../../../model/llm/index.js";
|
3
|
+
/** 流式返回的数据 */
|
4
|
+
export type AgentFlowApi_GetTaskDetailForAgentFlowResponseBody = Partial<ModelFlowAgentTaskResponse> & AgentFlowApi_GetTaskDetailForAgentFlowResponseBody_2;
|
5
|
+
/**
|
6
|
+
* @description 获取agent flow任务详情,流式返回
|
7
|
+
* @endpoint GET /api/v1/llm/agent/flow/:taskId
|
8
|
+
*/
|
9
|
+
export declare const AgentFlowApi_getTaskDetailForAgentFlow: (taskId: string | number, options?: HttpOptions) => Promise<AgentFlowApi_GetTaskDetailForAgentFlowResponseBody>;
|
10
|
+
export interface AgentFlowApi_GetTaskDetailForAgentFlowResponseBody_2 {
|
11
|
+
/** 流式数据列表 */
|
12
|
+
sseDataList?: any[];
|
13
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { HttpOptions } from "@next-core/http";
|
2
|
+
export interface AiopsToolsApi_ExecLlmToolsRequestBody {
|
3
|
+
/** 要执行的工具名称,也是id */
|
4
|
+
name: string;
|
5
|
+
/** 执行工具的参数 */
|
6
|
+
arguments?: Record<string, any>;
|
7
|
+
/** 执行工具的配置,例如agentId,"agentId":"cmdb_search_agent" */
|
8
|
+
config?: Record<string, any>;
|
9
|
+
}
|
10
|
+
export interface AiopsToolsApi_ExecLlmToolsResponseBody {
|
11
|
+
/** 执行结果,返回类型,目前只支持text */
|
12
|
+
type?: string;
|
13
|
+
/** 执行工具的结果 */
|
14
|
+
result?: any;
|
15
|
+
}
|
16
|
+
/**
|
17
|
+
* @description 执行大模型工具,非MCP协议的一部分
|
18
|
+
* @endpoint POST /api/v1/llm/tools/exec
|
19
|
+
*/
|
20
|
+
export declare const AiopsToolsApi_execLlmTools: (data: AiopsToolsApi_ExecLlmToolsRequestBody, options?: HttpOptions) => Promise<AiopsToolsApi_ExecLlmToolsResponseBody>;
|
package/dist/types/index.d.ts
CHANGED
@@ -0,0 +1,27 @@
|
|
1
|
+
/** flow agent的消息 */
|
2
|
+
export interface ModelFlowAgentTaskMessage {
|
3
|
+
/** 角色 */
|
4
|
+
role: string;
|
5
|
+
/** 消息 */
|
6
|
+
parts: ModelFlowAgentTaskMessage_parts_item[];
|
7
|
+
}
|
8
|
+
export interface ModelFlowAgentTaskMessage_parts_item {
|
9
|
+
/** 消息类型,可选:text, file, data */
|
10
|
+
type?: string;
|
11
|
+
/** 类型为text时的内容 */
|
12
|
+
text?: string;
|
13
|
+
/** 类型为file时的内容 */
|
14
|
+
file?: ModelFlowAgentTaskMessage_parts_item_file;
|
15
|
+
/** 类型为data时的内容 */
|
16
|
+
data?: Record<string, any>;
|
17
|
+
}
|
18
|
+
export interface ModelFlowAgentTaskMessage_parts_item_file {
|
19
|
+
/** 文件名 */
|
20
|
+
name?: string;
|
21
|
+
/** 类型 */
|
22
|
+
mimeType?: string;
|
23
|
+
/** base64编码后的内容 */
|
24
|
+
bytes?: string;
|
25
|
+
/** 链接 */
|
26
|
+
uri?: string;
|
27
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { ModelFlowAgentTaskMessage } from "./index.js";
|
2
|
+
/** flow agent的请求返回值 */
|
3
|
+
export interface ModelFlowAgentTaskResponse {
|
4
|
+
/** 任务id */
|
5
|
+
id: string;
|
6
|
+
/** 任务状态,可选值:| "submitted", "working", "input-required","completed","canceled","failed", "unknown";
|
7
|
+
*/
|
8
|
+
state: string;
|
9
|
+
/** 用户要求 */
|
10
|
+
requirement: string;
|
11
|
+
/** 任务计划步骤 */
|
12
|
+
plan: ModelFlowAgentTaskResponse_plan_item[];
|
13
|
+
/** 任务详情 */
|
14
|
+
jobs: ModelFlowAgentTaskResponse_jobs_item[];
|
15
|
+
}
|
16
|
+
export interface ModelFlowAgentTaskResponse_plan_item {
|
17
|
+
/** Pre-generated Job ID for this step */
|
18
|
+
id?: string;
|
19
|
+
/** 任务说明 */
|
20
|
+
instruction?: string;
|
21
|
+
}
|
22
|
+
export interface ModelFlowAgentTaskResponse_jobs_item {
|
23
|
+
/** job id */
|
24
|
+
id?: string;
|
25
|
+
/** 父任务id */
|
26
|
+
parent?: string[];
|
27
|
+
/** 任务说明 */
|
28
|
+
instruction?: string;
|
29
|
+
/** 任务状态,可选值:| "submitted", "working", "input-required","completed","canceled","failed", "unknown";
|
30
|
+
*/
|
31
|
+
state?: string;
|
32
|
+
/** 工具执行结果 */
|
33
|
+
toolCall?: ModelFlowAgentTaskResponse_jobs_item_toolCall;
|
34
|
+
/** 执行结果消息 */
|
35
|
+
messages?: Partial<ModelFlowAgentTaskMessage>[];
|
36
|
+
}
|
37
|
+
export interface ModelFlowAgentTaskResponse_jobs_item_toolCall {
|
38
|
+
/** 工具唯一名称 */
|
39
|
+
name?: string;
|
40
|
+
/** 工具执行参数 */
|
41
|
+
arguments?: Record<string, any>;
|
42
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@next-api-sdk/llm-sdk",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.3.0",
|
4
4
|
"description": "API SDK for Llm",
|
5
5
|
"homepage": "https://github.com/easyops-cn/next-api-sdk/tree/master/sdk/llm-sdk",
|
6
6
|
"repository": {
|
@@ -38,10 +38,10 @@
|
|
38
38
|
},
|
39
39
|
"sideEffects": false,
|
40
40
|
"dependencies": {
|
41
|
-
"@next-core/http": "^1.
|
41
|
+
"@next-core/http": "^1.0.0"
|
42
42
|
},
|
43
43
|
"devDependencies": {
|
44
|
-
"@next-core/build-next-libs": "^1.0.
|
44
|
+
"@next-core/build-next-libs": "^1.0.0"
|
45
45
|
},
|
46
|
-
"gitHead": "
|
46
|
+
"gitHead": "e1bd40327515f49ba143480a71d4f55e4e54334d"
|
47
47
|
}
|