@lingya-ai/agents-sdk 0.4.0 → 0.5.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 +1 -1
- package/dist/apis/ChatApi.d.ts +20 -15
- package/dist/apis/ChatApi.js +28 -22
- package/dist/apis/ConfigurationApi.d.ts +8 -7
- package/dist/apis/ConfigurationApi.js +10 -8
- package/dist/apis/ConversationsApi.d.ts +45 -31
- package/dist/apis/ConversationsApi.js +61 -46
- package/dist/apis/EventsApi.d.ts +9 -7
- package/dist/apis/EventsApi.js +12 -9
- package/dist/apis/FilesApi.d.ts +21 -15
- package/dist/apis/FilesApi.js +30 -23
- package/dist/apis/InteractionsApi.d.ts +15 -11
- package/dist/apis/InteractionsApi.js +21 -16
- package/dist/apis/KnowledgeApi.d.ts +9 -7
- package/dist/apis/KnowledgeApi.js +12 -9
- package/dist/apis/MessagesApi.d.ts +238 -13
- package/dist/apis/MessagesApi.js +447 -18
- package/dist/apis/SQLApi.d.ts +10 -9
- package/dist/apis/SQLApi.js +12 -10
- package/dist/apis/WorkspaceApi.d.ts +8 -7
- package/dist/apis/WorkspaceApi.js +10 -8
- package/dist/bound.d.ts +55 -1
- package/dist/bound.js +60 -0
- package/dist/esm/apis/ChatApi.d.ts +20 -15
- package/dist/esm/apis/ChatApi.js +28 -22
- package/dist/esm/apis/ConfigurationApi.d.ts +8 -7
- package/dist/esm/apis/ConfigurationApi.js +10 -8
- package/dist/esm/apis/ConversationsApi.d.ts +45 -31
- package/dist/esm/apis/ConversationsApi.js +61 -46
- package/dist/esm/apis/EventsApi.d.ts +9 -7
- package/dist/esm/apis/EventsApi.js +12 -9
- package/dist/esm/apis/FilesApi.d.ts +21 -15
- package/dist/esm/apis/FilesApi.js +30 -23
- package/dist/esm/apis/InteractionsApi.d.ts +15 -11
- package/dist/esm/apis/InteractionsApi.js +21 -16
- package/dist/esm/apis/KnowledgeApi.d.ts +9 -7
- package/dist/esm/apis/KnowledgeApi.js +12 -9
- package/dist/esm/apis/MessagesApi.d.ts +238 -13
- package/dist/esm/apis/MessagesApi.js +446 -17
- package/dist/esm/apis/SQLApi.d.ts +10 -9
- package/dist/esm/apis/SQLApi.js +12 -10
- package/dist/esm/apis/WorkspaceApi.d.ts +8 -7
- package/dist/esm/apis/WorkspaceApi.js +10 -8
- package/dist/esm/bound.d.ts +55 -1
- package/dist/esm/bound.js +60 -0
- package/dist/esm/models/AgentAsyncTaskSync.d.ts +48 -0
- package/dist/esm/models/AgentAsyncTaskSync.js +61 -0
- package/dist/esm/models/AgentFile.d.ts +2 -2
- package/dist/esm/models/AgentFile.js +2 -2
- package/dist/esm/models/AgentsConfig.d.ts +2 -2
- package/dist/esm/models/AgentsConfig.js +2 -2
- package/dist/esm/models/AiChatAwaitingInputBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatAwaitingInputBriefEvent.js +2 -2
- package/dist/esm/models/AiChatBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatBriefEvent.js +2 -2
- package/dist/esm/models/AiChatBriefEventList.d.ts +2 -2
- package/dist/esm/models/AiChatBriefEventList.js +2 -2
- package/dist/esm/models/AiChatCompactorWarningBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatCompactorWarningBriefEvent.js +2 -2
- package/dist/esm/models/AiChatCompressorContextEndBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatCompressorContextEndBriefEvent.js +2 -2
- package/dist/esm/models/AiChatCompressorContextStartBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatCompressorContextStartBriefEvent.js +2 -2
- package/dist/esm/models/AiChatEndBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatEndBriefEvent.js +2 -2
- package/dist/esm/models/AiChatErrorBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatErrorBriefEvent.js +2 -2
- package/dist/esm/models/AiChatEventsBatch.d.ts +2 -2
- package/dist/esm/models/AiChatEventsBatch.js +2 -2
- package/dist/esm/models/AiChatEventsBatchInput.d.ts +2 -2
- package/dist/esm/models/AiChatEventsBatchInput.js +2 -2
- package/dist/esm/models/AiChatEventsBatchSkipped.d.ts +2 -2
- package/dist/esm/models/AiChatEventsBatchSkipped.js +2 -2
- package/dist/esm/models/AiChatFileRef.d.ts +2 -2
- package/dist/esm/models/AiChatFileRef.js +2 -2
- package/dist/esm/models/AiChatInput.d.ts +2 -2
- package/dist/esm/models/AiChatInput.js +2 -2
- package/dist/esm/models/AiChatManualInterruptBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatManualInterruptBriefEvent.js +2 -2
- package/dist/esm/models/AiChatMessageBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatMessageBriefEvent.js +2 -2
- package/dist/esm/models/AiChatMessageEvent.d.ts +2 -2
- package/dist/esm/models/AiChatMessageEvent.js +2 -2
- package/dist/esm/models/AiChatRequestBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatRequestBriefEvent.js +2 -2
- package/dist/esm/models/AiChatResponseBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatResponseBriefEvent.js +2 -2
- package/dist/esm/models/AiChatStartBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatStartBriefEvent.js +2 -2
- package/dist/esm/models/AiChatStreamInput.d.ts +2 -2
- package/dist/esm/models/AiChatStreamInput.js +2 -2
- package/dist/esm/models/AiChatSubAgentCallBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatSubAgentCallBriefEvent.js +2 -2
- package/dist/esm/models/AiChatSubmission.d.ts +2 -2
- package/dist/esm/models/AiChatSubmission.js +2 -2
- package/dist/esm/models/AiChatThinkBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatThinkBriefEvent.js +2 -2
- package/dist/esm/models/AiChatToolExecutionBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatToolExecutionBriefEvent.js +2 -2
- package/dist/esm/models/AiChatUserQueryBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatUserQueryBriefEvent.js +2 -2
- package/dist/esm/models/ArtifactInfo.d.ts +2 -2
- package/dist/esm/models/ArtifactInfo.js +2 -2
- package/dist/esm/models/AskUserQuestionExtensionContent.d.ts +2 -2
- package/dist/esm/models/AskUserQuestionExtensionContent.js +2 -2
- package/dist/esm/models/AskUserQuestionExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/AskUserQuestionExtensionToolExtension.js +2 -2
- package/dist/esm/models/AskUserQuestionOption.d.ts +2 -2
- package/dist/esm/models/AskUserQuestionOption.js +2 -2
- package/dist/esm/models/AssistantChatMessage.d.ts +2 -2
- package/dist/esm/models/AssistantChatMessage.js +2 -2
- package/dist/esm/models/AsyncTask.d.ts +2 -2
- package/dist/esm/models/AsyncTask.js +2 -2
- package/dist/esm/models/AsyncTaskPage.d.ts +2 -2
- package/dist/esm/models/AsyncTaskPage.js +2 -2
- package/dist/esm/models/AttachmentExtension.d.ts +2 -2
- package/dist/esm/models/AttachmentExtension.js +2 -2
- package/dist/esm/models/BooleanChartColumn.d.ts +2 -2
- package/dist/esm/models/BooleanChartColumn.js +2 -2
- package/dist/esm/models/ChartColumnData.d.ts +2 -2
- package/dist/esm/models/ChartColumnData.js +2 -2
- package/dist/esm/models/ChartNumberFormat.d.ts +2 -2
- package/dist/esm/models/ChartNumberFormat.js +2 -2
- package/dist/esm/models/ChartQualitySummary.d.ts +2 -2
- package/dist/esm/models/ChartQualitySummary.js +2 -2
- package/dist/esm/models/ChartSeries.d.ts +2 -2
- package/dist/esm/models/ChartSeries.js +2 -2
- package/dist/esm/models/ChartSpec.d.ts +2 -2
- package/dist/esm/models/ChartSpec.js +2 -2
- package/dist/esm/models/ChartTimeContext.d.ts +2 -2
- package/dist/esm/models/ChartTimeContext.js +2 -2
- package/dist/esm/models/ChatMessage.d.ts +2 -2
- package/dist/esm/models/ChatMessage.js +2 -2
- package/dist/esm/models/ChatModelConfig.d.ts +2 -2
- package/dist/esm/models/ChatModelConfig.js +2 -2
- package/dist/esm/models/ChatModelSpec.d.ts +2 -2
- package/dist/esm/models/ChatModelSpec.js +2 -2
- package/dist/esm/models/ChatOptions.d.ts +2 -2
- package/dist/esm/models/ChatOptions.js +2 -2
- package/dist/esm/models/ChatStreamProbeEvent.d.ts +2 -2
- package/dist/esm/models/ChatStreamProbeEvent.js +2 -2
- package/dist/esm/models/ChatStreamProbeInput.d.ts +2 -2
- package/dist/esm/models/ChatStreamProbeInput.js +2 -2
- package/dist/esm/models/CitationMetadata.d.ts +2 -2
- package/dist/esm/models/CitationMetadata.js +2 -2
- package/dist/esm/models/CitationMetadataList.d.ts +2 -2
- package/dist/esm/models/CitationMetadataList.js +2 -2
- package/dist/esm/models/CodeMessage.d.ts +2 -2
- package/dist/esm/models/CodeMessage.js +2 -2
- package/dist/esm/models/ConfirmUploadInput.d.ts +2 -2
- package/dist/esm/models/ConfirmUploadInput.js +2 -2
- package/dist/esm/models/ConversationActivity.d.ts +2 -2
- package/dist/esm/models/ConversationActivity.js +2 -2
- package/dist/esm/models/ConversationActivityBatchInput.d.ts +2 -2
- package/dist/esm/models/ConversationActivityBatchInput.js +2 -2
- package/dist/esm/models/ConversationActivityList.d.ts +2 -2
- package/dist/esm/models/ConversationActivityList.js +2 -2
- package/dist/esm/models/ConversationConfig.d.ts +2 -2
- package/dist/esm/models/ConversationConfig.js +2 -2
- package/dist/esm/models/ConversationContextUsage.d.ts +2 -2
- package/dist/esm/models/ConversationContextUsage.js +2 -2
- package/dist/esm/models/ConversationIds.d.ts +2 -2
- package/dist/esm/models/ConversationIds.js +2 -2
- package/dist/esm/models/ConversationMessage.d.ts +2 -2
- package/dist/esm/models/ConversationMessage.js +2 -2
- package/dist/esm/models/ConversationMessagePage.d.ts +2 -2
- package/dist/esm/models/ConversationMessagePage.js +2 -2
- package/dist/esm/models/ConversationReadReceipt.d.ts +2 -2
- package/dist/esm/models/ConversationReadReceipt.js +2 -2
- package/dist/esm/models/ConversationReadReceiptInput.d.ts +2 -2
- package/dist/esm/models/ConversationReadReceiptInput.js +2 -2
- package/dist/esm/models/ConversationShareCreated.d.ts +2 -2
- package/dist/esm/models/ConversationShareCreated.js +2 -2
- package/dist/esm/models/ConversationShareInput.d.ts +2 -2
- package/dist/esm/models/ConversationShareInput.js +2 -2
- package/dist/esm/models/ConversationShareList.d.ts +2 -2
- package/dist/esm/models/ConversationShareList.js +2 -2
- package/dist/esm/models/ConversationShareRecord.d.ts +2 -2
- package/dist/esm/models/ConversationShareRecord.js +2 -2
- package/dist/esm/models/ConversationShareRevoked.d.ts +2 -2
- package/dist/esm/models/ConversationShareRevoked.js +2 -2
- package/dist/esm/models/ConversationStats.d.ts +2 -2
- package/dist/esm/models/ConversationStats.js +2 -2
- package/dist/esm/models/ConversationStatusInput.d.ts +2 -2
- package/dist/esm/models/ConversationStatusInput.js +2 -2
- package/dist/esm/models/ConversationSummary.d.ts +2 -2
- package/dist/esm/models/ConversationSummary.js +2 -2
- package/dist/esm/models/ConversationSummaryList.d.ts +2 -2
- package/dist/esm/models/ConversationSummaryList.js +2 -2
- package/dist/esm/models/ConversationTitle.d.ts +2 -2
- package/dist/esm/models/ConversationTitle.js +2 -2
- package/dist/esm/models/ConversationTitleInput.d.ts +2 -2
- package/dist/esm/models/ConversationTitleInput.js +2 -2
- package/dist/esm/models/ConversationUserMessage.d.ts +2 -2
- package/dist/esm/models/ConversationUserMessage.js +2 -2
- package/dist/esm/models/CreateFileInput.d.ts +2 -2
- package/dist/esm/models/CreateFileInput.js +2 -2
- package/dist/esm/models/DecimalChartColumn.d.ts +2 -2
- package/dist/esm/models/DecimalChartColumn.js +2 -2
- package/dist/esm/models/DefaultModel.d.ts +2 -2
- package/dist/esm/models/DefaultModel.js +2 -2
- package/dist/esm/models/DoubleChartColumn.d.ts +2 -2
- package/dist/esm/models/DoubleChartColumn.js +2 -2
- package/dist/esm/models/FieldError.d.ts +2 -2
- package/dist/esm/models/FieldError.js +2 -2
- package/dist/esm/models/FileExists.d.ts +2 -2
- package/dist/esm/models/FileExists.js +2 -2
- package/dist/esm/models/GeneratePreSignedUrlInput.d.ts +2 -2
- package/dist/esm/models/GeneratePreSignedUrlInput.js +2 -2
- package/dist/esm/models/GeneratePreSignedUrlOutput.d.ts +2 -2
- package/dist/esm/models/GeneratePreSignedUrlOutput.js +2 -2
- package/dist/esm/models/ImageGenerationExtensionContent.d.ts +2 -2
- package/dist/esm/models/ImageGenerationExtensionContent.js +2 -2
- package/dist/esm/models/ImageGenerationExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/ImageGenerationExtensionToolExtension.js +2 -2
- package/dist/esm/models/InputTokenBreakdown.d.ts +2 -2
- package/dist/esm/models/InputTokenBreakdown.js +2 -2
- package/dist/esm/models/InstantChartColumn.d.ts +2 -2
- package/dist/esm/models/InstantChartColumn.js +2 -2
- package/dist/esm/models/IntegerChartColumn.d.ts +2 -2
- package/dist/esm/models/IntegerChartColumn.js +2 -2
- package/dist/esm/models/JsRunScriptExtensionContent.d.ts +2 -2
- package/dist/esm/models/JsRunScriptExtensionContent.js +2 -2
- package/dist/esm/models/JsRunScriptExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/JsRunScriptExtensionToolExtension.js +2 -2
- package/dist/esm/models/JsRunScriptResultExtensionContent.d.ts +2 -2
- package/dist/esm/models/JsRunScriptResultExtensionContent.js +2 -2
- package/dist/esm/models/JsRunScriptResultExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/JsRunScriptResultExtensionToolExtension.js +2 -2
- package/dist/esm/models/LocalDateChartColumn.d.ts +2 -2
- package/dist/esm/models/LocalDateChartColumn.js +2 -2
- package/dist/esm/models/LocalDateTimeChartColumn.d.ts +2 -2
- package/dist/esm/models/LocalDateTimeChartColumn.js +2 -2
- package/dist/esm/models/LocalTimeChartColumn.d.ts +2 -2
- package/dist/esm/models/LocalTimeChartColumn.js +2 -2
- package/dist/esm/models/MathFormulaExtensionContent.d.ts +2 -2
- package/dist/esm/models/MathFormulaExtensionContent.js +2 -2
- package/dist/esm/models/MathFormulaExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/MathFormulaExtensionToolExtension.js +2 -2
- package/dist/esm/models/MathResultExtensionContent.d.ts +2 -2
- package/dist/esm/models/MathResultExtensionContent.js +2 -2
- package/dist/esm/models/MathResultExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/MathResultExtensionToolExtension.js +2 -2
- package/dist/esm/models/MediaAttachment.d.ts +2 -2
- package/dist/esm/models/MediaAttachment.js +2 -2
- package/dist/esm/models/ModelConfig.d.ts +2 -2
- package/dist/esm/models/ModelConfig.js +2 -2
- package/dist/esm/models/ModelKeyGroup.d.ts +2 -2
- package/dist/esm/models/ModelKeyGroup.js +2 -2
- package/dist/esm/models/MultimodalMediaAttachment.d.ts +2 -2
- package/dist/esm/models/MultimodalMediaAttachment.js +2 -2
- package/dist/esm/models/OperationResult.d.ts +2 -2
- package/dist/esm/models/OperationResult.js +2 -2
- package/dist/esm/models/PageInfo.d.ts +2 -2
- package/dist/esm/models/PageInfo.js +2 -2
- package/dist/esm/models/PlanApprovalExtensionContent.d.ts +2 -2
- package/dist/esm/models/PlanApprovalExtensionContent.js +2 -2
- package/dist/esm/models/PlanApprovalExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/PlanApprovalExtensionToolExtension.js +2 -2
- package/dist/esm/models/PlanApprovalInput.d.ts +2 -2
- package/dist/esm/models/PlanApprovalInput.js +2 -2
- package/dist/esm/models/PlanStatus.d.ts +2 -2
- package/dist/esm/models/PlanStatus.js +2 -2
- package/dist/esm/models/PreSignedReadUrl.d.ts +2 -2
- package/dist/esm/models/PreSignedReadUrl.js +2 -2
- package/dist/esm/models/ReturnedReference.d.ts +2 -2
- package/dist/esm/models/ReturnedReference.js +2 -2
- package/dist/esm/models/SkillResourceExtensionContent.d.ts +2 -2
- package/dist/esm/models/SkillResourceExtensionContent.js +2 -2
- package/dist/esm/models/SkillResourceExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/SkillResourceExtensionToolExtension.js +2 -2
- package/dist/esm/models/SqlChartDataset.d.ts +2 -2
- package/dist/esm/models/SqlChartDataset.js +2 -2
- package/dist/esm/models/SqlChartResultExtensionContent.d.ts +2 -2
- package/dist/esm/models/SqlChartResultExtensionContent.js +2 -2
- package/dist/esm/models/SqlChartResultExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/SqlChartResultExtensionToolExtension.js +2 -2
- package/dist/esm/models/SqlQueryExtensionContent.d.ts +2 -2
- package/dist/esm/models/SqlQueryExtensionContent.js +2 -2
- package/dist/esm/models/SqlQueryExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/SqlQueryExtensionToolExtension.js +2 -2
- package/dist/esm/models/SqlQueryResultExtensionContent.d.ts +2 -2
- package/dist/esm/models/SqlQueryResultExtensionContent.js +2 -2
- package/dist/esm/models/SqlQueryResultExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/SqlQueryResultExtensionToolExtension.js +2 -2
- package/dist/esm/models/SqlQueryResultPage.d.ts +2 -2
- package/dist/esm/models/SqlQueryResultPage.js +2 -2
- package/dist/esm/models/SqlQueryResultRow.d.ts +2 -2
- package/dist/esm/models/SqlQueryResultRow.js +2 -2
- package/dist/esm/models/SqlResultColumnSchema.d.ts +2 -2
- package/dist/esm/models/SqlResultColumnSchema.js +2 -2
- package/dist/esm/models/StringChartColumn.d.ts +2 -2
- package/dist/esm/models/StringChartColumn.js +2 -2
- package/dist/esm/models/SubagentTask.d.ts +106 -0
- package/dist/esm/models/SubagentTask.js +104 -0
- package/dist/esm/models/SubagentTaskArtifact.d.ts +69 -0
- package/dist/esm/models/SubagentTaskArtifact.js +75 -0
- package/dist/esm/models/SubagentTaskPage.d.ts +36 -0
- package/dist/esm/models/SubagentTaskPage.js +49 -0
- package/dist/esm/models/SubagentTaskResult.d.ts +53 -0
- package/dist/esm/models/SubagentTaskResult.js +64 -0
- package/dist/esm/models/SubagentTaskSync.d.ts +47 -0
- package/dist/esm/models/SubagentTaskSync.js +60 -0
- package/dist/esm/models/SystemChatMessage.d.ts +2 -2
- package/dist/esm/models/SystemChatMessage.js +2 -2
- package/dist/esm/models/TaskProgressExtensionContent.d.ts +2 -2
- package/dist/esm/models/TaskProgressExtensionContent.js +2 -2
- package/dist/esm/models/TaskProgressExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/TaskProgressExtensionToolExtension.js +2 -2
- package/dist/esm/models/TaskSummary.d.ts +2 -2
- package/dist/esm/models/TaskSummary.js +2 -2
- package/dist/esm/models/ToolCall.d.ts +2 -2
- package/dist/esm/models/ToolCall.js +2 -2
- package/dist/esm/models/ToolExtension.d.ts +2 -2
- package/dist/esm/models/ToolExtension.js +2 -2
- package/dist/esm/models/ToolResponse.d.ts +2 -2
- package/dist/esm/models/ToolResponse.js +2 -2
- package/dist/esm/models/ToolResponseChatMessage.d.ts +2 -2
- package/dist/esm/models/ToolResponseChatMessage.js +2 -2
- package/dist/esm/models/UnknownAiChatBriefEvent.d.ts +2 -2
- package/dist/esm/models/UnknownAiChatBriefEvent.js +2 -2
- package/dist/esm/models/UnknownToolExtension.d.ts +2 -2
- package/dist/esm/models/UnknownToolExtension.js +2 -2
- package/dist/esm/models/Usage.d.ts +2 -2
- package/dist/esm/models/Usage.js +2 -2
- package/dist/esm/models/UserChatMessage.d.ts +2 -2
- package/dist/esm/models/UserChatMessage.js +2 -2
- package/dist/esm/models/UserInputAnswerInput.d.ts +2 -2
- package/dist/esm/models/UserInputAnswerInput.js +2 -2
- package/dist/esm/models/UserInputStatus.d.ts +2 -2
- package/dist/esm/models/UserInputStatus.js +2 -2
- package/dist/esm/models/ValidationError.d.ts +2 -2
- package/dist/esm/models/ValidationError.js +2 -2
- package/dist/esm/models/VariableBinding.d.ts +2 -2
- package/dist/esm/models/VariableBinding.js +2 -2
- package/dist/esm/models/WorkspaceArtifactList.d.ts +2 -2
- package/dist/esm/models/WorkspaceArtifactList.js +2 -2
- package/dist/esm/models/WorkspaceFile.d.ts +2 -2
- package/dist/esm/models/WorkspaceFile.js +2 -2
- package/dist/esm/models/WorkspaceFilePage.d.ts +2 -2
- package/dist/esm/models/WorkspaceFilePage.js +2 -2
- package/dist/esm/models/WorkspaceNonFileArtifact.d.ts +4 -4
- package/dist/esm/models/WorkspaceNonFileArtifact.js +5 -3
- package/dist/esm/models/index.d.ts +149 -3519
- package/dist/esm/models/index.js +151 -307
- package/dist/models/AgentAsyncTaskSync.d.ts +48 -0
- package/dist/models/AgentAsyncTaskSync.js +68 -0
- package/dist/models/AgentFile.d.ts +2 -2
- package/dist/models/AgentFile.js +2 -2
- package/dist/models/AgentsConfig.d.ts +2 -2
- package/dist/models/AgentsConfig.js +2 -2
- package/dist/models/AiChatAwaitingInputBriefEvent.d.ts +2 -2
- package/dist/models/AiChatAwaitingInputBriefEvent.js +2 -2
- package/dist/models/AiChatBriefEvent.d.ts +2 -2
- package/dist/models/AiChatBriefEvent.js +2 -2
- package/dist/models/AiChatBriefEventList.d.ts +2 -2
- package/dist/models/AiChatBriefEventList.js +2 -2
- package/dist/models/AiChatCompactorWarningBriefEvent.d.ts +2 -2
- package/dist/models/AiChatCompactorWarningBriefEvent.js +2 -2
- package/dist/models/AiChatCompressorContextEndBriefEvent.d.ts +2 -2
- package/dist/models/AiChatCompressorContextEndBriefEvent.js +2 -2
- package/dist/models/AiChatCompressorContextStartBriefEvent.d.ts +2 -2
- package/dist/models/AiChatCompressorContextStartBriefEvent.js +2 -2
- package/dist/models/AiChatEndBriefEvent.d.ts +2 -2
- package/dist/models/AiChatEndBriefEvent.js +2 -2
- package/dist/models/AiChatErrorBriefEvent.d.ts +2 -2
- package/dist/models/AiChatErrorBriefEvent.js +2 -2
- package/dist/models/AiChatEventsBatch.d.ts +2 -2
- package/dist/models/AiChatEventsBatch.js +2 -2
- package/dist/models/AiChatEventsBatchInput.d.ts +2 -2
- package/dist/models/AiChatEventsBatchInput.js +2 -2
- package/dist/models/AiChatEventsBatchSkipped.d.ts +2 -2
- package/dist/models/AiChatEventsBatchSkipped.js +2 -2
- package/dist/models/AiChatFileRef.d.ts +2 -2
- package/dist/models/AiChatFileRef.js +2 -2
- package/dist/models/AiChatInput.d.ts +2 -2
- package/dist/models/AiChatInput.js +2 -2
- package/dist/models/AiChatManualInterruptBriefEvent.d.ts +2 -2
- package/dist/models/AiChatManualInterruptBriefEvent.js +2 -2
- package/dist/models/AiChatMessageBriefEvent.d.ts +2 -2
- package/dist/models/AiChatMessageBriefEvent.js +2 -2
- package/dist/models/AiChatMessageEvent.d.ts +2 -2
- package/dist/models/AiChatMessageEvent.js +2 -2
- package/dist/models/AiChatRequestBriefEvent.d.ts +2 -2
- package/dist/models/AiChatRequestBriefEvent.js +2 -2
- package/dist/models/AiChatResponseBriefEvent.d.ts +2 -2
- package/dist/models/AiChatResponseBriefEvent.js +2 -2
- package/dist/models/AiChatStartBriefEvent.d.ts +2 -2
- package/dist/models/AiChatStartBriefEvent.js +2 -2
- package/dist/models/AiChatStreamInput.d.ts +2 -2
- package/dist/models/AiChatStreamInput.js +2 -2
- package/dist/models/AiChatSubAgentCallBriefEvent.d.ts +2 -2
- package/dist/models/AiChatSubAgentCallBriefEvent.js +2 -2
- package/dist/models/AiChatSubmission.d.ts +2 -2
- package/dist/models/AiChatSubmission.js +2 -2
- package/dist/models/AiChatThinkBriefEvent.d.ts +2 -2
- package/dist/models/AiChatThinkBriefEvent.js +2 -2
- package/dist/models/AiChatToolExecutionBriefEvent.d.ts +2 -2
- package/dist/models/AiChatToolExecutionBriefEvent.js +2 -2
- package/dist/models/AiChatUserQueryBriefEvent.d.ts +2 -2
- package/dist/models/AiChatUserQueryBriefEvent.js +2 -2
- package/dist/models/ArtifactInfo.d.ts +2 -2
- package/dist/models/ArtifactInfo.js +2 -2
- package/dist/models/AskUserQuestionExtensionContent.d.ts +2 -2
- package/dist/models/AskUserQuestionExtensionContent.js +2 -2
- package/dist/models/AskUserQuestionExtensionToolExtension.d.ts +2 -2
- package/dist/models/AskUserQuestionExtensionToolExtension.js +2 -2
- package/dist/models/AskUserQuestionOption.d.ts +2 -2
- package/dist/models/AskUserQuestionOption.js +2 -2
- package/dist/models/AssistantChatMessage.d.ts +2 -2
- package/dist/models/AssistantChatMessage.js +2 -2
- package/dist/models/AsyncTask.d.ts +2 -2
- package/dist/models/AsyncTask.js +2 -2
- package/dist/models/AsyncTaskPage.d.ts +2 -2
- package/dist/models/AsyncTaskPage.js +2 -2
- package/dist/models/AttachmentExtension.d.ts +2 -2
- package/dist/models/AttachmentExtension.js +2 -2
- package/dist/models/BooleanChartColumn.d.ts +2 -2
- package/dist/models/BooleanChartColumn.js +2 -2
- package/dist/models/ChartColumnData.d.ts +2 -2
- package/dist/models/ChartColumnData.js +2 -2
- package/dist/models/ChartNumberFormat.d.ts +2 -2
- package/dist/models/ChartNumberFormat.js +2 -2
- package/dist/models/ChartQualitySummary.d.ts +2 -2
- package/dist/models/ChartQualitySummary.js +2 -2
- package/dist/models/ChartSeries.d.ts +2 -2
- package/dist/models/ChartSeries.js +2 -2
- package/dist/models/ChartSpec.d.ts +2 -2
- package/dist/models/ChartSpec.js +2 -2
- package/dist/models/ChartTimeContext.d.ts +2 -2
- package/dist/models/ChartTimeContext.js +2 -2
- package/dist/models/ChatMessage.d.ts +2 -2
- package/dist/models/ChatMessage.js +2 -2
- package/dist/models/ChatModelConfig.d.ts +2 -2
- package/dist/models/ChatModelConfig.js +2 -2
- package/dist/models/ChatModelSpec.d.ts +2 -2
- package/dist/models/ChatModelSpec.js +2 -2
- package/dist/models/ChatOptions.d.ts +2 -2
- package/dist/models/ChatOptions.js +2 -2
- package/dist/models/ChatStreamProbeEvent.d.ts +2 -2
- package/dist/models/ChatStreamProbeEvent.js +2 -2
- package/dist/models/ChatStreamProbeInput.d.ts +2 -2
- package/dist/models/ChatStreamProbeInput.js +2 -2
- package/dist/models/CitationMetadata.d.ts +2 -2
- package/dist/models/CitationMetadata.js +2 -2
- package/dist/models/CitationMetadataList.d.ts +2 -2
- package/dist/models/CitationMetadataList.js +2 -2
- package/dist/models/CodeMessage.d.ts +2 -2
- package/dist/models/CodeMessage.js +2 -2
- package/dist/models/ConfirmUploadInput.d.ts +2 -2
- package/dist/models/ConfirmUploadInput.js +2 -2
- package/dist/models/ConversationActivity.d.ts +2 -2
- package/dist/models/ConversationActivity.js +2 -2
- package/dist/models/ConversationActivityBatchInput.d.ts +2 -2
- package/dist/models/ConversationActivityBatchInput.js +2 -2
- package/dist/models/ConversationActivityList.d.ts +2 -2
- package/dist/models/ConversationActivityList.js +2 -2
- package/dist/models/ConversationConfig.d.ts +2 -2
- package/dist/models/ConversationConfig.js +2 -2
- package/dist/models/ConversationContextUsage.d.ts +2 -2
- package/dist/models/ConversationContextUsage.js +2 -2
- package/dist/models/ConversationIds.d.ts +2 -2
- package/dist/models/ConversationIds.js +2 -2
- package/dist/models/ConversationMessage.d.ts +2 -2
- package/dist/models/ConversationMessage.js +2 -2
- package/dist/models/ConversationMessagePage.d.ts +2 -2
- package/dist/models/ConversationMessagePage.js +2 -2
- package/dist/models/ConversationReadReceipt.d.ts +2 -2
- package/dist/models/ConversationReadReceipt.js +2 -2
- package/dist/models/ConversationReadReceiptInput.d.ts +2 -2
- package/dist/models/ConversationReadReceiptInput.js +2 -2
- package/dist/models/ConversationShareCreated.d.ts +2 -2
- package/dist/models/ConversationShareCreated.js +2 -2
- package/dist/models/ConversationShareInput.d.ts +2 -2
- package/dist/models/ConversationShareInput.js +2 -2
- package/dist/models/ConversationShareList.d.ts +2 -2
- package/dist/models/ConversationShareList.js +2 -2
- package/dist/models/ConversationShareRecord.d.ts +2 -2
- package/dist/models/ConversationShareRecord.js +2 -2
- package/dist/models/ConversationShareRevoked.d.ts +2 -2
- package/dist/models/ConversationShareRevoked.js +2 -2
- package/dist/models/ConversationStats.d.ts +2 -2
- package/dist/models/ConversationStats.js +2 -2
- package/dist/models/ConversationStatusInput.d.ts +2 -2
- package/dist/models/ConversationStatusInput.js +2 -2
- package/dist/models/ConversationSummary.d.ts +2 -2
- package/dist/models/ConversationSummary.js +2 -2
- package/dist/models/ConversationSummaryList.d.ts +2 -2
- package/dist/models/ConversationSummaryList.js +2 -2
- package/dist/models/ConversationTitle.d.ts +2 -2
- package/dist/models/ConversationTitle.js +2 -2
- package/dist/models/ConversationTitleInput.d.ts +2 -2
- package/dist/models/ConversationTitleInput.js +2 -2
- package/dist/models/ConversationUserMessage.d.ts +2 -2
- package/dist/models/ConversationUserMessage.js +2 -2
- package/dist/models/CreateFileInput.d.ts +2 -2
- package/dist/models/CreateFileInput.js +2 -2
- package/dist/models/DecimalChartColumn.d.ts +2 -2
- package/dist/models/DecimalChartColumn.js +2 -2
- package/dist/models/DefaultModel.d.ts +2 -2
- package/dist/models/DefaultModel.js +2 -2
- package/dist/models/DoubleChartColumn.d.ts +2 -2
- package/dist/models/DoubleChartColumn.js +2 -2
- package/dist/models/FieldError.d.ts +2 -2
- package/dist/models/FieldError.js +2 -2
- package/dist/models/FileExists.d.ts +2 -2
- package/dist/models/FileExists.js +2 -2
- package/dist/models/GeneratePreSignedUrlInput.d.ts +2 -2
- package/dist/models/GeneratePreSignedUrlInput.js +2 -2
- package/dist/models/GeneratePreSignedUrlOutput.d.ts +2 -2
- package/dist/models/GeneratePreSignedUrlOutput.js +2 -2
- package/dist/models/ImageGenerationExtensionContent.d.ts +2 -2
- package/dist/models/ImageGenerationExtensionContent.js +2 -2
- package/dist/models/ImageGenerationExtensionToolExtension.d.ts +2 -2
- package/dist/models/ImageGenerationExtensionToolExtension.js +2 -2
- package/dist/models/InputTokenBreakdown.d.ts +2 -2
- package/dist/models/InputTokenBreakdown.js +2 -2
- package/dist/models/InstantChartColumn.d.ts +2 -2
- package/dist/models/InstantChartColumn.js +2 -2
- package/dist/models/IntegerChartColumn.d.ts +2 -2
- package/dist/models/IntegerChartColumn.js +2 -2
- package/dist/models/JsRunScriptExtensionContent.d.ts +2 -2
- package/dist/models/JsRunScriptExtensionContent.js +2 -2
- package/dist/models/JsRunScriptExtensionToolExtension.d.ts +2 -2
- package/dist/models/JsRunScriptExtensionToolExtension.js +2 -2
- package/dist/models/JsRunScriptResultExtensionContent.d.ts +2 -2
- package/dist/models/JsRunScriptResultExtensionContent.js +2 -2
- package/dist/models/JsRunScriptResultExtensionToolExtension.d.ts +2 -2
- package/dist/models/JsRunScriptResultExtensionToolExtension.js +2 -2
- package/dist/models/LocalDateChartColumn.d.ts +2 -2
- package/dist/models/LocalDateChartColumn.js +2 -2
- package/dist/models/LocalDateTimeChartColumn.d.ts +2 -2
- package/dist/models/LocalDateTimeChartColumn.js +2 -2
- package/dist/models/LocalTimeChartColumn.d.ts +2 -2
- package/dist/models/LocalTimeChartColumn.js +2 -2
- package/dist/models/MathFormulaExtensionContent.d.ts +2 -2
- package/dist/models/MathFormulaExtensionContent.js +2 -2
- package/dist/models/MathFormulaExtensionToolExtension.d.ts +2 -2
- package/dist/models/MathFormulaExtensionToolExtension.js +2 -2
- package/dist/models/MathResultExtensionContent.d.ts +2 -2
- package/dist/models/MathResultExtensionContent.js +2 -2
- package/dist/models/MathResultExtensionToolExtension.d.ts +2 -2
- package/dist/models/MathResultExtensionToolExtension.js +2 -2
- package/dist/models/MediaAttachment.d.ts +2 -2
- package/dist/models/MediaAttachment.js +2 -2
- package/dist/models/ModelConfig.d.ts +2 -2
- package/dist/models/ModelConfig.js +2 -2
- package/dist/models/ModelKeyGroup.d.ts +2 -2
- package/dist/models/ModelKeyGroup.js +2 -2
- package/dist/models/MultimodalMediaAttachment.d.ts +2 -2
- package/dist/models/MultimodalMediaAttachment.js +2 -2
- package/dist/models/OperationResult.d.ts +2 -2
- package/dist/models/OperationResult.js +2 -2
- package/dist/models/PageInfo.d.ts +2 -2
- package/dist/models/PageInfo.js +2 -2
- package/dist/models/PlanApprovalExtensionContent.d.ts +2 -2
- package/dist/models/PlanApprovalExtensionContent.js +2 -2
- package/dist/models/PlanApprovalExtensionToolExtension.d.ts +2 -2
- package/dist/models/PlanApprovalExtensionToolExtension.js +2 -2
- package/dist/models/PlanApprovalInput.d.ts +2 -2
- package/dist/models/PlanApprovalInput.js +2 -2
- package/dist/models/PlanStatus.d.ts +2 -2
- package/dist/models/PlanStatus.js +2 -2
- package/dist/models/PreSignedReadUrl.d.ts +2 -2
- package/dist/models/PreSignedReadUrl.js +2 -2
- package/dist/models/ReturnedReference.d.ts +2 -2
- package/dist/models/ReturnedReference.js +2 -2
- package/dist/models/SkillResourceExtensionContent.d.ts +2 -2
- package/dist/models/SkillResourceExtensionContent.js +2 -2
- package/dist/models/SkillResourceExtensionToolExtension.d.ts +2 -2
- package/dist/models/SkillResourceExtensionToolExtension.js +2 -2
- package/dist/models/SqlChartDataset.d.ts +2 -2
- package/dist/models/SqlChartDataset.js +2 -2
- package/dist/models/SqlChartResultExtensionContent.d.ts +2 -2
- package/dist/models/SqlChartResultExtensionContent.js +2 -2
- package/dist/models/SqlChartResultExtensionToolExtension.d.ts +2 -2
- package/dist/models/SqlChartResultExtensionToolExtension.js +2 -2
- package/dist/models/SqlQueryExtensionContent.d.ts +2 -2
- package/dist/models/SqlQueryExtensionContent.js +2 -2
- package/dist/models/SqlQueryExtensionToolExtension.d.ts +2 -2
- package/dist/models/SqlQueryExtensionToolExtension.js +2 -2
- package/dist/models/SqlQueryResultExtensionContent.d.ts +2 -2
- package/dist/models/SqlQueryResultExtensionContent.js +2 -2
- package/dist/models/SqlQueryResultExtensionToolExtension.d.ts +2 -2
- package/dist/models/SqlQueryResultExtensionToolExtension.js +2 -2
- package/dist/models/SqlQueryResultPage.d.ts +2 -2
- package/dist/models/SqlQueryResultPage.js +2 -2
- package/dist/models/SqlQueryResultRow.d.ts +2 -2
- package/dist/models/SqlQueryResultRow.js +2 -2
- package/dist/models/SqlResultColumnSchema.d.ts +2 -2
- package/dist/models/SqlResultColumnSchema.js +2 -2
- package/dist/models/StringChartColumn.d.ts +2 -2
- package/dist/models/StringChartColumn.js +2 -2
- package/dist/models/SubagentTask.d.ts +106 -0
- package/dist/models/SubagentTask.js +111 -0
- package/dist/models/SubagentTaskArtifact.d.ts +69 -0
- package/dist/models/SubagentTaskArtifact.js +83 -0
- package/dist/models/SubagentTaskPage.d.ts +36 -0
- package/dist/models/SubagentTaskPage.js +56 -0
- package/dist/models/SubagentTaskResult.d.ts +53 -0
- package/dist/models/SubagentTaskResult.js +71 -0
- package/dist/models/SubagentTaskSync.d.ts +47 -0
- package/dist/models/SubagentTaskSync.js +67 -0
- package/dist/models/SystemChatMessage.d.ts +2 -2
- package/dist/models/SystemChatMessage.js +2 -2
- package/dist/models/TaskProgressExtensionContent.d.ts +2 -2
- package/dist/models/TaskProgressExtensionContent.js +2 -2
- package/dist/models/TaskProgressExtensionToolExtension.d.ts +2 -2
- package/dist/models/TaskProgressExtensionToolExtension.js +2 -2
- package/dist/models/TaskSummary.d.ts +2 -2
- package/dist/models/TaskSummary.js +2 -2
- package/dist/models/ToolCall.d.ts +2 -2
- package/dist/models/ToolCall.js +2 -2
- package/dist/models/ToolExtension.d.ts +2 -2
- package/dist/models/ToolExtension.js +2 -2
- package/dist/models/ToolResponse.d.ts +2 -2
- package/dist/models/ToolResponse.js +2 -2
- package/dist/models/ToolResponseChatMessage.d.ts +2 -2
- package/dist/models/ToolResponseChatMessage.js +2 -2
- package/dist/models/UnknownAiChatBriefEvent.d.ts +2 -2
- package/dist/models/UnknownAiChatBriefEvent.js +2 -2
- package/dist/models/UnknownToolExtension.d.ts +2 -2
- package/dist/models/UnknownToolExtension.js +2 -2
- package/dist/models/Usage.d.ts +2 -2
- package/dist/models/Usage.js +2 -2
- package/dist/models/UserChatMessage.d.ts +2 -2
- package/dist/models/UserChatMessage.js +2 -2
- package/dist/models/UserInputAnswerInput.d.ts +2 -2
- package/dist/models/UserInputAnswerInput.js +2 -2
- package/dist/models/UserInputStatus.d.ts +2 -2
- package/dist/models/UserInputStatus.js +2 -2
- package/dist/models/ValidationError.d.ts +2 -2
- package/dist/models/ValidationError.js +2 -2
- package/dist/models/VariableBinding.d.ts +2 -2
- package/dist/models/VariableBinding.js +2 -2
- package/dist/models/WorkspaceArtifactList.d.ts +2 -2
- package/dist/models/WorkspaceArtifactList.js +2 -2
- package/dist/models/WorkspaceFile.d.ts +2 -2
- package/dist/models/WorkspaceFile.js +2 -2
- package/dist/models/WorkspaceFilePage.d.ts +2 -2
- package/dist/models/WorkspaceFilePage.js +2 -2
- package/dist/models/WorkspaceNonFileArtifact.d.ts +4 -4
- package/dist/models/WorkspaceNonFileArtifact.js +5 -3
- package/dist/models/index.d.ts +149 -3519
- package/dist/models/index.js +165 -308
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/apis/ChatApi.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Lingya Agents OpenAPI
|
|
3
|
-
*
|
|
3
|
+
* 本契约描述灵涯 Agents 面向可信服务端的公开渠道 API,使用 OPENAPI-HMAC-SHA256-V1 验证请求,不包含 Studio 管理接口。在线文档只展示请求,不会在浏览器中收集或保存 secret。 This contract describes the public Lingya Agents channel API for trusted servers. Requests use OPENAPI-HMAC-SHA256-V1, and Studio administration endpoints are excluded. The online reference only displays requests and never collects or stores a secret in the browser. ## 快速开始 / Quick start 1. 读取 Configuration,确认模型和附件限制。 / Read Configuration to discover model and attachment limits. 2. 在本地固定最终 method、raw path、raw query、Content-Type 和 body 字节,再生成签名。 / Finalize method, raw path, raw query, Content-Type, and body bytes locally before signing. 3. 按业务分组调用接口;SSE 断开后使用 Events 补取。 / Call the appropriate business group and use Events for recovery after an SSE disconnect. ## 公共错误 / Common errors `401` 签名、时间戳或 nonce 无效;`403` 资源不属于当前渠道用户;`413` 请求体过大;`422` 参数校验失败;`429` 请求过于频繁;`500` 服务内部错误;`503` 依赖或执行服务暂不可用。 `401` invalid signature, timestamp, or nonce; `403` resource not owned by the current channel user; `413` request body too large; `422` validation failed; `429` rate limited; `500` internal error; `503` dependency or execution service unavailable.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.
|
|
5
|
+
* The version of the OpenAPI document: 0.1.5
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,7 +10,12 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type AiChatBriefEvent } from '../models/AiChatBriefEvent';
|
|
14
|
+
import { type AiChatInput } from '../models/AiChatInput';
|
|
15
|
+
import { type AiChatStreamInput } from '../models/AiChatStreamInput';
|
|
16
|
+
import { type AiChatSubmission } from '../models/AiChatSubmission';
|
|
17
|
+
import { type ChatStreamProbeEvent } from '../models/ChatStreamProbeEvent';
|
|
18
|
+
import { type ChatStreamProbeInput } from '../models/ChatStreamProbeInput';
|
|
14
19
|
export interface CompactConversationRequest {
|
|
15
20
|
/**
|
|
16
21
|
* Agent OpenAPI 渠道 UUID。 / Agent OpenAPI channel UUID.
|
|
@@ -100,12 +105,12 @@ export declare class ChatApi extends runtime.BaseAPI {
|
|
|
100
105
|
*/
|
|
101
106
|
compactConversationRequestOpts(requestParameters: CompactConversationRequest): Promise<runtime.RequestOpts>;
|
|
102
107
|
/**
|
|
103
|
-
*
|
|
108
|
+
* ### 使用场景 上下文接近模型上限或用户要求时触发压缩。 ### Use case Trigger context compaction near the model limit or on explicit user request. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 异步安排上下文压缩。 ### Behavior and side effects Schedules asynchronous context compaction. ### 后续调用 轮询上下文占用或等待相关事件。 ### Next step Poll context usage or wait for related events. ### 接口摘要 压缩会话上下文 / Compact conversation context ### Operation summary 压缩会话上下文 / Compact conversation context
|
|
104
109
|
* 压缩会话上下文 / Compact conversation context
|
|
105
110
|
*/
|
|
106
111
|
compactConversationRaw(requestParameters: CompactConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
107
112
|
/**
|
|
108
|
-
*
|
|
113
|
+
* ### 使用场景 上下文接近模型上限或用户要求时触发压缩。 ### Use case Trigger context compaction near the model limit or on explicit user request. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 异步安排上下文压缩。 ### Behavior and side effects Schedules asynchronous context compaction. ### 后续调用 轮询上下文占用或等待相关事件。 ### Next step Poll context usage or wait for related events. ### 接口摘要 压缩会话上下文 / Compact conversation context ### Operation summary 压缩会话上下文 / Compact conversation context
|
|
109
114
|
* 压缩会话上下文 / Compact conversation context
|
|
110
115
|
*/
|
|
111
116
|
compactConversation(requestParameters: CompactConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -114,12 +119,12 @@ export declare class ChatApi extends runtime.BaseAPI {
|
|
|
114
119
|
*/
|
|
115
120
|
continueChatRequestOpts(requestParameters: ContinueChatRequest): Promise<runtime.RequestOpts>;
|
|
116
121
|
/**
|
|
117
|
-
*
|
|
122
|
+
* ### 使用场景 在已有会话中提交下一轮用户消息。 ### Use case Submit the next user turn to an existing conversation. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 创建新消息并安排继续执行。 ### Behavior and side effects Creates a new message and schedules continued execution. ### 后续调用 订阅该 messageId 的 SSE 或稍后补取事件。 ### Next step Subscribe to SSE for the messageId or recover its events later. ### 接口摘要 向已有会话提交消息 / Submit a message to an existing conversation ### Operation summary 向已有会话提交消息 / Submit a message to an existing conversation
|
|
118
123
|
* 向已有会话提交消息 / Submit a message to an existing conversation
|
|
119
124
|
*/
|
|
120
125
|
continueChatRaw(requestParameters: ContinueChatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AiChatSubmission>>;
|
|
121
126
|
/**
|
|
122
|
-
*
|
|
127
|
+
* ### 使用场景 在已有会话中提交下一轮用户消息。 ### Use case Submit the next user turn to an existing conversation. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 创建新消息并安排继续执行。 ### Behavior and side effects Creates a new message and schedules continued execution. ### 后续调用 订阅该 messageId 的 SSE 或稍后补取事件。 ### Next step Subscribe to SSE for the messageId or recover its events later. ### 接口摘要 向已有会话提交消息 / Submit a message to an existing conversation ### Operation summary 向已有会话提交消息 / Submit a message to an existing conversation
|
|
123
128
|
* 向已有会话提交消息 / Submit a message to an existing conversation
|
|
124
129
|
*/
|
|
125
130
|
continueChat(requestParameters: ContinueChatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiChatSubmission>;
|
|
@@ -128,12 +133,12 @@ export declare class ChatApi extends runtime.BaseAPI {
|
|
|
128
133
|
*/
|
|
129
134
|
createChatRequestOpts(requestParameters: CreateChatRequest): Promise<runtime.RequestOpts>;
|
|
130
135
|
/**
|
|
131
|
-
*
|
|
136
|
+
* ### 使用场景 创建新会话并提交第一条用户消息。 ### Use case Create a conversation and submit its first user message. ### 前置条件 已读取配置;引用的文件已经确认上传。 ### Prerequisites Configuration has been read and referenced files are confirmed uploads. ### 行为与副作用 创建会话和消息,并安排 Agent 执行。 ### Behavior and side effects Creates a conversation and message and schedules Agent execution. ### 后续调用 使用返回的 conversationId 和 messageId 订阅 SSE。 ### Next step Use the returned conversationId and messageId to subscribe to SSE. ### 接口摘要 创建会话并提交消息 / Create a conversation and submit a message ### Operation summary 创建会话并提交消息 / Create a conversation and submit a message
|
|
132
137
|
* 创建会话并提交消息 / Create a conversation and submit a message
|
|
133
138
|
*/
|
|
134
139
|
createChatRaw(requestParameters: CreateChatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AiChatSubmission>>;
|
|
135
140
|
/**
|
|
136
|
-
*
|
|
141
|
+
* ### 使用场景 创建新会话并提交第一条用户消息。 ### Use case Create a conversation and submit its first user message. ### 前置条件 已读取配置;引用的文件已经确认上传。 ### Prerequisites Configuration has been read and referenced files are confirmed uploads. ### 行为与副作用 创建会话和消息,并安排 Agent 执行。 ### Behavior and side effects Creates a conversation and message and schedules Agent execution. ### 后续调用 使用返回的 conversationId 和 messageId 订阅 SSE。 ### Next step Use the returned conversationId and messageId to subscribe to SSE. ### 接口摘要 创建会话并提交消息 / Create a conversation and submit a message ### Operation summary 创建会话并提交消息 / Create a conversation and submit a message
|
|
137
142
|
* 创建会话并提交消息 / Create a conversation and submit a message
|
|
138
143
|
*/
|
|
139
144
|
createChat(requestParameters: CreateChatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiChatSubmission>;
|
|
@@ -142,12 +147,12 @@ export declare class ChatApi extends runtime.BaseAPI {
|
|
|
142
147
|
*/
|
|
143
148
|
interruptConversationRequestOpts(requestParameters: InterruptConversationRequest): Promise<runtime.RequestOpts>;
|
|
144
149
|
/**
|
|
145
|
-
*
|
|
150
|
+
* ### 使用场景 用户主动停止正在执行的会话。 ### Use case Stop an actively executing conversation at the user\'s request. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 请求终止当前执行;已完成输出不会回滚。 ### Behavior and side effects Requests termination of active execution; completed output is not rolled back. ### 后续调用 查询活动状态或消息详情确认终态。 ### Next step Query activity or message detail to confirm the terminal state. ### 接口摘要 中断会话执行 / Interrupt conversation execution ### Operation summary 中断会话执行 / Interrupt conversation execution
|
|
146
151
|
* 中断会话执行 / Interrupt conversation execution
|
|
147
152
|
*/
|
|
148
153
|
interruptConversationRaw(requestParameters: InterruptConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
149
154
|
/**
|
|
150
|
-
*
|
|
155
|
+
* ### 使用场景 用户主动停止正在执行的会话。 ### Use case Stop an actively executing conversation at the user\'s request. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 请求终止当前执行;已完成输出不会回滚。 ### Behavior and side effects Requests termination of active execution; completed output is not rolled back. ### 后续调用 查询活动状态或消息详情确认终态。 ### Next step Query activity or message detail to confirm the terminal state. ### 接口摘要 中断会话执行 / Interrupt conversation execution ### Operation summary 中断会话执行 / Interrupt conversation execution
|
|
151
156
|
* 中断会话执行 / Interrupt conversation execution
|
|
152
157
|
*/
|
|
153
158
|
interruptConversation(requestParameters: InterruptConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -156,12 +161,12 @@ export declare class ChatApi extends runtime.BaseAPI {
|
|
|
156
161
|
*/
|
|
157
162
|
probeEventStreamRequestOpts(requestParameters: ProbeEventStreamRequest): Promise<runtime.RequestOpts>;
|
|
158
163
|
/**
|
|
159
|
-
*
|
|
164
|
+
* ### 使用场景 在接入或排障时验证网关、代理和客户端对 SSE 的支持。 ### Use case Verify SSE support across the gateway, proxy, and client during integration or diagnosis. ### 前置条件 准备符合格式的 probeId。 ### Prerequisites Prepare a valid probeId. ### 行为与副作用 只产生诊断事件,不创建业务会话。 ### Behavior and side effects Produces diagnostic events without creating a business conversation. ### 后续调用 确认分片、心跳和 EOF 行为后再接入正式流。 ### Next step Confirm chunking, heartbeat, and EOF behavior before using the production stream. ### 接口摘要 探测 SSE 连接 / Probe the SSE connection ### Operation summary 探测 SSE 连接 / Probe the SSE connection
|
|
160
165
|
* 探测 SSE 连接 / Probe the SSE connection
|
|
161
166
|
*/
|
|
162
167
|
probeEventStreamRaw(requestParameters: ProbeEventStreamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChatStreamProbeEvent>>;
|
|
163
168
|
/**
|
|
164
|
-
*
|
|
169
|
+
* ### 使用场景 在接入或排障时验证网关、代理和客户端对 SSE 的支持。 ### Use case Verify SSE support across the gateway, proxy, and client during integration or diagnosis. ### 前置条件 准备符合格式的 probeId。 ### Prerequisites Prepare a valid probeId. ### 行为与副作用 只产生诊断事件,不创建业务会话。 ### Behavior and side effects Produces diagnostic events without creating a business conversation. ### 后续调用 确认分片、心跳和 EOF 行为后再接入正式流。 ### Next step Confirm chunking, heartbeat, and EOF behavior before using the production stream. ### 接口摘要 探测 SSE 连接 / Probe the SSE connection ### Operation summary 探测 SSE 连接 / Probe the SSE connection
|
|
165
170
|
* 探测 SSE 连接 / Probe the SSE connection
|
|
166
171
|
*/
|
|
167
172
|
probeEventStream(requestParameters: ProbeEventStreamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChatStreamProbeEvent>;
|
|
@@ -170,12 +175,12 @@ export declare class ChatApi extends runtime.BaseAPI {
|
|
|
170
175
|
*/
|
|
171
176
|
streamChatEventsRequestOpts(requestParameters: StreamChatEventsRequest): Promise<runtime.RequestOpts>;
|
|
172
177
|
/**
|
|
173
|
-
*
|
|
178
|
+
* ### 使用场景 实时接收指定消息的思考、工具、回答和结束事件。 ### Use case Receive thought, tool, answer, and completion events for a message in real time. ### 前置条件 消息已经创建且 messageId 与会话匹配。 ### Prerequisites The message exists and its messageId belongs to the conversation. ### 行为与副作用 保持流式连接;断开不会取消服务端执行。 ### Behavior and side effects Keeps a streaming connection; disconnecting does not cancel server execution. ### 后续调用 正常 EOF 后读取消息详情;异常断开时使用 Events 补取。 ### Next step After normal EOF read message detail; after an unexpected disconnect recover through Events. ### 接口摘要 订阅消息事件流 / Stream message events ### Operation summary 订阅消息事件流 / Stream message events
|
|
174
179
|
* 订阅消息事件流 / Stream message events
|
|
175
180
|
*/
|
|
176
181
|
streamChatEventsRaw(requestParameters: StreamChatEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AiChatBriefEvent>>;
|
|
177
182
|
/**
|
|
178
|
-
*
|
|
183
|
+
* ### 使用场景 实时接收指定消息的思考、工具、回答和结束事件。 ### Use case Receive thought, tool, answer, and completion events for a message in real time. ### 前置条件 消息已经创建且 messageId 与会话匹配。 ### Prerequisites The message exists and its messageId belongs to the conversation. ### 行为与副作用 保持流式连接;断开不会取消服务端执行。 ### Behavior and side effects Keeps a streaming connection; disconnecting does not cancel server execution. ### 后续调用 正常 EOF 后读取消息详情;异常断开时使用 Events 补取。 ### Next step After normal EOF read message detail; after an unexpected disconnect recover through Events. ### 接口摘要 订阅消息事件流 / Stream message events ### Operation summary 订阅消息事件流 / Stream message events
|
|
179
184
|
* 订阅消息事件流 / Stream message events
|
|
180
185
|
*/
|
|
181
186
|
streamChatEvents(requestParameters: StreamChatEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiChatBriefEvent>;
|
package/dist/apis/ChatApi.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Lingya Agents OpenAPI
|
|
6
|
-
*
|
|
6
|
+
* 本契约描述灵涯 Agents 面向可信服务端的公开渠道 API,使用 OPENAPI-HMAC-SHA256-V1 验证请求,不包含 Studio 管理接口。在线文档只展示请求,不会在浏览器中收集或保存 secret。 This contract describes the public Lingya Agents channel API for trusted servers. Requests use OPENAPI-HMAC-SHA256-V1, and Studio administration endpoints are excluded. The online reference only displays requests and never collects or stores a secret in the browser. ## 快速开始 / Quick start 1. 读取 Configuration,确认模型和附件限制。 / Read Configuration to discover model and attachment limits. 2. 在本地固定最终 method、raw path、raw query、Content-Type 和 body 字节,再生成签名。 / Finalize method, raw path, raw query, Content-Type, and body bytes locally before signing. 3. 按业务分组调用接口;SSE 断开后使用 Events 补取。 / Call the appropriate business group and use Events for recovery after an SSE disconnect. ## 公共错误 / Common errors `401` 签名、时间戳或 nonce 无效;`403` 资源不属于当前渠道用户;`413` 请求体过大;`422` 参数校验失败;`429` 请求过于频繁;`500` 服务内部错误;`503` 依赖或执行服务暂不可用。 `401` invalid signature, timestamp, or nonce; `403` resource not owned by the current channel user; `413` request body too large; `422` validation failed; `429` rate limited; `500` internal error; `503` dependency or execution service unavailable.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.1.
|
|
8
|
+
* The version of the OpenAPI document: 0.1.5
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -24,6 +24,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.ChatApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
+
const AiChatBriefEvent_1 = require("../models/AiChatBriefEvent");
|
|
28
|
+
const AiChatInput_1 = require("../models/AiChatInput");
|
|
29
|
+
const AiChatStreamInput_1 = require("../models/AiChatStreamInput");
|
|
30
|
+
const AiChatSubmission_1 = require("../models/AiChatSubmission");
|
|
31
|
+
const ChatStreamProbeEvent_1 = require("../models/ChatStreamProbeEvent");
|
|
32
|
+
const ChatStreamProbeInput_1 = require("../models/ChatStreamProbeInput");
|
|
27
33
|
/**
|
|
28
34
|
*
|
|
29
35
|
*/
|
|
@@ -71,7 +77,7 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
71
77
|
});
|
|
72
78
|
}
|
|
73
79
|
/**
|
|
74
|
-
*
|
|
80
|
+
* ### 使用场景 上下文接近模型上限或用户要求时触发压缩。 ### Use case Trigger context compaction near the model limit or on explicit user request. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 异步安排上下文压缩。 ### Behavior and side effects Schedules asynchronous context compaction. ### 后续调用 轮询上下文占用或等待相关事件。 ### Next step Poll context usage or wait for related events. ### 接口摘要 压缩会话上下文 / Compact conversation context ### Operation summary 压缩会话上下文 / Compact conversation context
|
|
75
81
|
* 压缩会话上下文 / Compact conversation context
|
|
76
82
|
*/
|
|
77
83
|
compactConversationRaw(requestParameters, initOverrides) {
|
|
@@ -82,7 +88,7 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
82
88
|
});
|
|
83
89
|
}
|
|
84
90
|
/**
|
|
85
|
-
*
|
|
91
|
+
* ### 使用场景 上下文接近模型上限或用户要求时触发压缩。 ### Use case Trigger context compaction near the model limit or on explicit user request. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 异步安排上下文压缩。 ### Behavior and side effects Schedules asynchronous context compaction. ### 后续调用 轮询上下文占用或等待相关事件。 ### Next step Poll context usage or wait for related events. ### 接口摘要 压缩会话上下文 / Compact conversation context ### Operation summary 压缩会话上下文 / Compact conversation context
|
|
86
92
|
* 压缩会话上下文 / Compact conversation context
|
|
87
93
|
*/
|
|
88
94
|
compactConversation(requestParameters, initOverrides) {
|
|
@@ -130,23 +136,23 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
130
136
|
method: 'POST',
|
|
131
137
|
headers: headerParameters,
|
|
132
138
|
query: queryParameters,
|
|
133
|
-
body: requestParameters['aiChatInput'],
|
|
139
|
+
body: (0, AiChatInput_1.AiChatInputToJSON)(requestParameters['aiChatInput']),
|
|
134
140
|
};
|
|
135
141
|
});
|
|
136
142
|
}
|
|
137
143
|
/**
|
|
138
|
-
*
|
|
144
|
+
* ### 使用场景 在已有会话中提交下一轮用户消息。 ### Use case Submit the next user turn to an existing conversation. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 创建新消息并安排继续执行。 ### Behavior and side effects Creates a new message and schedules continued execution. ### 后续调用 订阅该 messageId 的 SSE 或稍后补取事件。 ### Next step Subscribe to SSE for the messageId or recover its events later. ### 接口摘要 向已有会话提交消息 / Submit a message to an existing conversation ### Operation summary 向已有会话提交消息 / Submit a message to an existing conversation
|
|
139
145
|
* 向已有会话提交消息 / Submit a message to an existing conversation
|
|
140
146
|
*/
|
|
141
147
|
continueChatRaw(requestParameters, initOverrides) {
|
|
142
148
|
return __awaiter(this, void 0, void 0, function* () {
|
|
143
149
|
const requestOptions = yield this.continueChatRequestOpts(requestParameters);
|
|
144
150
|
const response = yield this.request(requestOptions, initOverrides);
|
|
145
|
-
return new runtime.JSONApiResponse(response);
|
|
151
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AiChatSubmission_1.AiChatSubmissionFromJSON)(jsonValue));
|
|
146
152
|
});
|
|
147
153
|
}
|
|
148
154
|
/**
|
|
149
|
-
*
|
|
155
|
+
* ### 使用场景 在已有会话中提交下一轮用户消息。 ### Use case Submit the next user turn to an existing conversation. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 创建新消息并安排继续执行。 ### Behavior and side effects Creates a new message and schedules continued execution. ### 后续调用 订阅该 messageId 的 SSE 或稍后补取事件。 ### Next step Subscribe to SSE for the messageId or recover its events later. ### 接口摘要 向已有会话提交消息 / Submit a message to an existing conversation ### Operation summary 向已有会话提交消息 / Submit a message to an existing conversation
|
|
150
156
|
* 向已有会话提交消息 / Submit a message to an existing conversation
|
|
151
157
|
*/
|
|
152
158
|
continueChat(requestParameters, initOverrides) {
|
|
@@ -191,23 +197,23 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
191
197
|
method: 'POST',
|
|
192
198
|
headers: headerParameters,
|
|
193
199
|
query: queryParameters,
|
|
194
|
-
body: requestParameters['aiChatInput'],
|
|
200
|
+
body: (0, AiChatInput_1.AiChatInputToJSON)(requestParameters['aiChatInput']),
|
|
195
201
|
};
|
|
196
202
|
});
|
|
197
203
|
}
|
|
198
204
|
/**
|
|
199
|
-
*
|
|
205
|
+
* ### 使用场景 创建新会话并提交第一条用户消息。 ### Use case Create a conversation and submit its first user message. ### 前置条件 已读取配置;引用的文件已经确认上传。 ### Prerequisites Configuration has been read and referenced files are confirmed uploads. ### 行为与副作用 创建会话和消息,并安排 Agent 执行。 ### Behavior and side effects Creates a conversation and message and schedules Agent execution. ### 后续调用 使用返回的 conversationId 和 messageId 订阅 SSE。 ### Next step Use the returned conversationId and messageId to subscribe to SSE. ### 接口摘要 创建会话并提交消息 / Create a conversation and submit a message ### Operation summary 创建会话并提交消息 / Create a conversation and submit a message
|
|
200
206
|
* 创建会话并提交消息 / Create a conversation and submit a message
|
|
201
207
|
*/
|
|
202
208
|
createChatRaw(requestParameters, initOverrides) {
|
|
203
209
|
return __awaiter(this, void 0, void 0, function* () {
|
|
204
210
|
const requestOptions = yield this.createChatRequestOpts(requestParameters);
|
|
205
211
|
const response = yield this.request(requestOptions, initOverrides);
|
|
206
|
-
return new runtime.JSONApiResponse(response);
|
|
212
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AiChatSubmission_1.AiChatSubmissionFromJSON)(jsonValue));
|
|
207
213
|
});
|
|
208
214
|
}
|
|
209
215
|
/**
|
|
210
|
-
*
|
|
216
|
+
* ### 使用场景 创建新会话并提交第一条用户消息。 ### Use case Create a conversation and submit its first user message. ### 前置条件 已读取配置;引用的文件已经确认上传。 ### Prerequisites Configuration has been read and referenced files are confirmed uploads. ### 行为与副作用 创建会话和消息,并安排 Agent 执行。 ### Behavior and side effects Creates a conversation and message and schedules Agent execution. ### 后续调用 使用返回的 conversationId 和 messageId 订阅 SSE。 ### Next step Use the returned conversationId and messageId to subscribe to SSE. ### 接口摘要 创建会话并提交消息 / Create a conversation and submit a message ### Operation summary 创建会话并提交消息 / Create a conversation and submit a message
|
|
211
217
|
* 创建会话并提交消息 / Create a conversation and submit a message
|
|
212
218
|
*/
|
|
213
219
|
createChat(requestParameters, initOverrides) {
|
|
@@ -256,7 +262,7 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
256
262
|
});
|
|
257
263
|
}
|
|
258
264
|
/**
|
|
259
|
-
*
|
|
265
|
+
* ### 使用场景 用户主动停止正在执行的会话。 ### Use case Stop an actively executing conversation at the user\'s request. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 请求终止当前执行;已完成输出不会回滚。 ### Behavior and side effects Requests termination of active execution; completed output is not rolled back. ### 后续调用 查询活动状态或消息详情确认终态。 ### Next step Query activity or message detail to confirm the terminal state. ### 接口摘要 中断会话执行 / Interrupt conversation execution ### Operation summary 中断会话执行 / Interrupt conversation execution
|
|
260
266
|
* 中断会话执行 / Interrupt conversation execution
|
|
261
267
|
*/
|
|
262
268
|
interruptConversationRaw(requestParameters, initOverrides) {
|
|
@@ -267,7 +273,7 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
267
273
|
});
|
|
268
274
|
}
|
|
269
275
|
/**
|
|
270
|
-
*
|
|
276
|
+
* ### 使用场景 用户主动停止正在执行的会话。 ### Use case Stop an actively executing conversation at the user\'s request. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 请求终止当前执行;已完成输出不会回滚。 ### Behavior and side effects Requests termination of active execution; completed output is not rolled back. ### 后续调用 查询活动状态或消息详情确认终态。 ### Next step Query activity or message detail to confirm the terminal state. ### 接口摘要 中断会话执行 / Interrupt conversation execution ### Operation summary 中断会话执行 / Interrupt conversation execution
|
|
271
277
|
* 中断会话执行 / Interrupt conversation execution
|
|
272
278
|
*/
|
|
273
279
|
interruptConversation(requestParameters, initOverrides) {
|
|
@@ -314,23 +320,23 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
314
320
|
method: 'POST',
|
|
315
321
|
headers: headerParameters,
|
|
316
322
|
query: queryParameters,
|
|
317
|
-
body: requestParameters['chatStreamProbeInput'],
|
|
323
|
+
body: (0, ChatStreamProbeInput_1.ChatStreamProbeInputToJSON)(requestParameters['chatStreamProbeInput']),
|
|
318
324
|
};
|
|
319
325
|
});
|
|
320
326
|
}
|
|
321
327
|
/**
|
|
322
|
-
*
|
|
328
|
+
* ### 使用场景 在接入或排障时验证网关、代理和客户端对 SSE 的支持。 ### Use case Verify SSE support across the gateway, proxy, and client during integration or diagnosis. ### 前置条件 准备符合格式的 probeId。 ### Prerequisites Prepare a valid probeId. ### 行为与副作用 只产生诊断事件,不创建业务会话。 ### Behavior and side effects Produces diagnostic events without creating a business conversation. ### 后续调用 确认分片、心跳和 EOF 行为后再接入正式流。 ### Next step Confirm chunking, heartbeat, and EOF behavior before using the production stream. ### 接口摘要 探测 SSE 连接 / Probe the SSE connection ### Operation summary 探测 SSE 连接 / Probe the SSE connection
|
|
323
329
|
* 探测 SSE 连接 / Probe the SSE connection
|
|
324
330
|
*/
|
|
325
331
|
probeEventStreamRaw(requestParameters, initOverrides) {
|
|
326
332
|
return __awaiter(this, void 0, void 0, function* () {
|
|
327
333
|
const requestOptions = yield this.probeEventStreamRequestOpts(requestParameters);
|
|
328
334
|
const response = yield this.request(requestOptions, initOverrides);
|
|
329
|
-
return new runtime.JSONApiResponse(response);
|
|
335
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ChatStreamProbeEvent_1.ChatStreamProbeEventFromJSON)(jsonValue));
|
|
330
336
|
});
|
|
331
337
|
}
|
|
332
338
|
/**
|
|
333
|
-
*
|
|
339
|
+
* ### 使用场景 在接入或排障时验证网关、代理和客户端对 SSE 的支持。 ### Use case Verify SSE support across the gateway, proxy, and client during integration or diagnosis. ### 前置条件 准备符合格式的 probeId。 ### Prerequisites Prepare a valid probeId. ### 行为与副作用 只产生诊断事件,不创建业务会话。 ### Behavior and side effects Produces diagnostic events without creating a business conversation. ### 后续调用 确认分片、心跳和 EOF 行为后再接入正式流。 ### Next step Confirm chunking, heartbeat, and EOF behavior before using the production stream. ### 接口摘要 探测 SSE 连接 / Probe the SSE connection ### Operation summary 探测 SSE 连接 / Probe the SSE connection
|
|
334
340
|
* 探测 SSE 连接 / Probe the SSE connection
|
|
335
341
|
*/
|
|
336
342
|
probeEventStream(requestParameters, initOverrides) {
|
|
@@ -382,23 +388,23 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
382
388
|
method: 'POST',
|
|
383
389
|
headers: headerParameters,
|
|
384
390
|
query: queryParameters,
|
|
385
|
-
body: requestParameters['aiChatStreamInput'],
|
|
391
|
+
body: (0, AiChatStreamInput_1.AiChatStreamInputToJSON)(requestParameters['aiChatStreamInput']),
|
|
386
392
|
};
|
|
387
393
|
});
|
|
388
394
|
}
|
|
389
395
|
/**
|
|
390
|
-
*
|
|
396
|
+
* ### 使用场景 实时接收指定消息的思考、工具、回答和结束事件。 ### Use case Receive thought, tool, answer, and completion events for a message in real time. ### 前置条件 消息已经创建且 messageId 与会话匹配。 ### Prerequisites The message exists and its messageId belongs to the conversation. ### 行为与副作用 保持流式连接;断开不会取消服务端执行。 ### Behavior and side effects Keeps a streaming connection; disconnecting does not cancel server execution. ### 后续调用 正常 EOF 后读取消息详情;异常断开时使用 Events 补取。 ### Next step After normal EOF read message detail; after an unexpected disconnect recover through Events. ### 接口摘要 订阅消息事件流 / Stream message events ### Operation summary 订阅消息事件流 / Stream message events
|
|
391
397
|
* 订阅消息事件流 / Stream message events
|
|
392
398
|
*/
|
|
393
399
|
streamChatEventsRaw(requestParameters, initOverrides) {
|
|
394
400
|
return __awaiter(this, void 0, void 0, function* () {
|
|
395
401
|
const requestOptions = yield this.streamChatEventsRequestOpts(requestParameters);
|
|
396
402
|
const response = yield this.request(requestOptions, initOverrides);
|
|
397
|
-
return new runtime.JSONApiResponse(response);
|
|
403
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AiChatBriefEvent_1.AiChatBriefEventFromJSON)(jsonValue));
|
|
398
404
|
});
|
|
399
405
|
}
|
|
400
406
|
/**
|
|
401
|
-
*
|
|
407
|
+
* ### 使用场景 实时接收指定消息的思考、工具、回答和结束事件。 ### Use case Receive thought, tool, answer, and completion events for a message in real time. ### 前置条件 消息已经创建且 messageId 与会话匹配。 ### Prerequisites The message exists and its messageId belongs to the conversation. ### 行为与副作用 保持流式连接;断开不会取消服务端执行。 ### Behavior and side effects Keeps a streaming connection; disconnecting does not cancel server execution. ### 后续调用 正常 EOF 后读取消息详情;异常断开时使用 Events 补取。 ### Next step After normal EOF read message detail; after an unexpected disconnect recover through Events. ### 接口摘要 订阅消息事件流 / Stream message events ### Operation summary 订阅消息事件流 / Stream message events
|
|
402
408
|
* 订阅消息事件流 / Stream message events
|
|
403
409
|
*/
|
|
404
410
|
streamChatEvents(requestParameters, initOverrides) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Lingya Agents OpenAPI
|
|
3
|
-
*
|
|
3
|
+
* 本契约描述灵涯 Agents 面向可信服务端的公开渠道 API,使用 OPENAPI-HMAC-SHA256-V1 验证请求,不包含 Studio 管理接口。在线文档只展示请求,不会在浏览器中收集或保存 secret。 This contract describes the public Lingya Agents channel API for trusted servers. Requests use OPENAPI-HMAC-SHA256-V1, and Studio administration endpoints are excluded. The online reference only displays requests and never collects or stores a secret in the browser. ## 快速开始 / Quick start 1. 读取 Configuration,确认模型和附件限制。 / Read Configuration to discover model and attachment limits. 2. 在本地固定最终 method、raw path、raw query、Content-Type 和 body 字节,再生成签名。 / Finalize method, raw path, raw query, Content-Type, and body bytes locally before signing. 3. 按业务分组调用接口;SSE 断开后使用 Events 补取。 / Call the appropriate business group and use Events for recovery after an SSE disconnect. ## 公共错误 / Common errors `401` 签名、时间戳或 nonce 无效;`403` 资源不属于当前渠道用户;`413` 请求体过大;`422` 参数校验失败;`429` 请求过于频繁;`500` 服务内部错误;`503` 依赖或执行服务暂不可用。 `401` invalid signature, timestamp, or nonce; `403` resource not owned by the current channel user; `413` request body too large; `422` validation failed; `429` rate limited; `500` internal error; `503` dependency or execution service unavailable.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.1.
|
|
5
|
+
* The version of the OpenAPI document: 0.1.5
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type AgentsConfig } from '../models/AgentsConfig';
|
|
14
|
+
import { type ConversationConfig } from '../models/ConversationConfig';
|
|
14
15
|
export interface GetAgentsConfigRequest {
|
|
15
16
|
/**
|
|
16
17
|
* Agent OpenAPI 渠道 UUID。 / Agent OpenAPI channel UUID.
|
|
@@ -36,12 +37,12 @@ export declare class ConfigurationApi extends runtime.BaseAPI {
|
|
|
36
37
|
*/
|
|
37
38
|
getAgentsConfigRequestOpts(requestParameters: GetAgentsConfigRequest): Promise<runtime.RequestOpts>;
|
|
38
39
|
/**
|
|
39
|
-
*
|
|
40
|
+
* ### 使用场景 在初始化客户端能力或展示模型选择器前读取渠道配置。 ### Use case Read channel configuration before initializing client capabilities or showing model choices. ### 前置条件 仅需有效渠道凭证。 ### Prerequisites Only valid channel credentials are required. ### 行为与副作用 只读,不修改配置。 ### Behavior and side effects Read-only; no configuration is changed. ### 后续调用 按附件限制准备文件,或创建会话。 ### Next step Prepare files according to the limits or create a conversation. ### 接口摘要 读取 Agent 配置 / Get Agent configuration ### Operation summary 读取 Agent 配置 / Get Agent configuration
|
|
40
41
|
* 读取 Agent 配置 / Get Agent configuration
|
|
41
42
|
*/
|
|
42
43
|
getAgentsConfigRaw(requestParameters: GetAgentsConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentsConfig>>;
|
|
43
44
|
/**
|
|
44
|
-
*
|
|
45
|
+
* ### 使用场景 在初始化客户端能力或展示模型选择器前读取渠道配置。 ### Use case Read channel configuration before initializing client capabilities or showing model choices. ### 前置条件 仅需有效渠道凭证。 ### Prerequisites Only valid channel credentials are required. ### 行为与副作用 只读,不修改配置。 ### Behavior and side effects Read-only; no configuration is changed. ### 后续调用 按附件限制准备文件,或创建会话。 ### Next step Prepare files according to the limits or create a conversation. ### 接口摘要 读取 Agent 配置 / Get Agent configuration ### Operation summary 读取 Agent 配置 / Get Agent configuration
|
|
45
46
|
* 读取 Agent 配置 / Get Agent configuration
|
|
46
47
|
*/
|
|
47
48
|
getAgentsConfig(requestParameters: GetAgentsConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentsConfig>;
|
|
@@ -50,12 +51,12 @@ export declare class ConfigurationApi extends runtime.BaseAPI {
|
|
|
50
51
|
*/
|
|
51
52
|
getConversationConfigRequestOpts(requestParameters: GetConversationConfigRequest): Promise<runtime.RequestOpts>;
|
|
52
53
|
/**
|
|
53
|
-
*
|
|
54
|
+
* ### 使用场景 恢复会话时读取该会话最近使用的模型配置。 ### Use case Read the most recently used model configuration when resuming a conversation. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 只读,不修改会话。 ### Behavior and side effects Read-only; the conversation is unchanged. ### 后续调用 继续提交消息或展示当前模型。 ### Next step Submit another message or display the current model. ### 接口摘要 读取会话配置 / Get conversation configuration ### Operation summary 读取会话配置 / Get conversation configuration
|
|
54
55
|
* 读取会话配置 / Get conversation configuration
|
|
55
56
|
*/
|
|
56
57
|
getConversationConfigRaw(requestParameters: GetConversationConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationConfig>>;
|
|
57
58
|
/**
|
|
58
|
-
*
|
|
59
|
+
* ### 使用场景 恢复会话时读取该会话最近使用的模型配置。 ### Use case Read the most recently used model configuration when resuming a conversation. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 只读,不修改会话。 ### Behavior and side effects Read-only; the conversation is unchanged. ### 后续调用 继续提交消息或展示当前模型。 ### Next step Submit another message or display the current model. ### 接口摘要 读取会话配置 / Get conversation configuration ### Operation summary 读取会话配置 / Get conversation configuration
|
|
59
60
|
* 读取会话配置 / Get conversation configuration
|
|
60
61
|
*/
|
|
61
62
|
getConversationConfig(requestParameters: GetConversationConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationConfig>;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Lingya Agents OpenAPI
|
|
6
|
-
*
|
|
6
|
+
* 本契约描述灵涯 Agents 面向可信服务端的公开渠道 API,使用 OPENAPI-HMAC-SHA256-V1 验证请求,不包含 Studio 管理接口。在线文档只展示请求,不会在浏览器中收集或保存 secret。 This contract describes the public Lingya Agents channel API for trusted servers. Requests use OPENAPI-HMAC-SHA256-V1, and Studio administration endpoints are excluded. The online reference only displays requests and never collects or stores a secret in the browser. ## 快速开始 / Quick start 1. 读取 Configuration,确认模型和附件限制。 / Read Configuration to discover model and attachment limits. 2. 在本地固定最终 method、raw path、raw query、Content-Type 和 body 字节,再生成签名。 / Finalize method, raw path, raw query, Content-Type, and body bytes locally before signing. 3. 按业务分组调用接口;SSE 断开后使用 Events 补取。 / Call the appropriate business group and use Events for recovery after an SSE disconnect. ## 公共错误 / Common errors `401` 签名、时间戳或 nonce 无效;`403` 资源不属于当前渠道用户;`413` 请求体过大;`422` 参数校验失败;`429` 请求过于频繁;`500` 服务内部错误;`503` 依赖或执行服务暂不可用。 `401` invalid signature, timestamp, or nonce; `403` resource not owned by the current channel user; `413` request body too large; `422` validation failed; `429` rate limited; `500` internal error; `503` dependency or execution service unavailable.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.1.
|
|
8
|
+
* The version of the OpenAPI document: 0.1.5
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -24,6 +24,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.ConfigurationApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
+
const AgentsConfig_1 = require("../models/AgentsConfig");
|
|
28
|
+
const ConversationConfig_1 = require("../models/ConversationConfig");
|
|
27
29
|
/**
|
|
28
30
|
*
|
|
29
31
|
*/
|
|
@@ -64,18 +66,18 @@ class ConfigurationApi extends runtime.BaseAPI {
|
|
|
64
66
|
});
|
|
65
67
|
}
|
|
66
68
|
/**
|
|
67
|
-
*
|
|
69
|
+
* ### 使用场景 在初始化客户端能力或展示模型选择器前读取渠道配置。 ### Use case Read channel configuration before initializing client capabilities or showing model choices. ### 前置条件 仅需有效渠道凭证。 ### Prerequisites Only valid channel credentials are required. ### 行为与副作用 只读,不修改配置。 ### Behavior and side effects Read-only; no configuration is changed. ### 后续调用 按附件限制准备文件,或创建会话。 ### Next step Prepare files according to the limits or create a conversation. ### 接口摘要 读取 Agent 配置 / Get Agent configuration ### Operation summary 读取 Agent 配置 / Get Agent configuration
|
|
68
70
|
* 读取 Agent 配置 / Get Agent configuration
|
|
69
71
|
*/
|
|
70
72
|
getAgentsConfigRaw(requestParameters, initOverrides) {
|
|
71
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
72
74
|
const requestOptions = yield this.getAgentsConfigRequestOpts(requestParameters);
|
|
73
75
|
const response = yield this.request(requestOptions, initOverrides);
|
|
74
|
-
return new runtime.JSONApiResponse(response);
|
|
76
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AgentsConfig_1.AgentsConfigFromJSON)(jsonValue));
|
|
75
77
|
});
|
|
76
78
|
}
|
|
77
79
|
/**
|
|
78
|
-
*
|
|
80
|
+
* ### 使用场景 在初始化客户端能力或展示模型选择器前读取渠道配置。 ### Use case Read channel configuration before initializing client capabilities or showing model choices. ### 前置条件 仅需有效渠道凭证。 ### Prerequisites Only valid channel credentials are required. ### 行为与副作用 只读,不修改配置。 ### Behavior and side effects Read-only; no configuration is changed. ### 后续调用 按附件限制准备文件,或创建会话。 ### Next step Prepare files according to the limits or create a conversation. ### 接口摘要 读取 Agent 配置 / Get Agent configuration ### Operation summary 读取 Agent 配置 / Get Agent configuration
|
|
79
81
|
* 读取 Agent 配置 / Get Agent configuration
|
|
80
82
|
*/
|
|
81
83
|
getAgentsConfig(requestParameters, initOverrides) {
|
|
@@ -124,18 +126,18 @@ class ConfigurationApi extends runtime.BaseAPI {
|
|
|
124
126
|
});
|
|
125
127
|
}
|
|
126
128
|
/**
|
|
127
|
-
*
|
|
129
|
+
* ### 使用场景 恢复会话时读取该会话最近使用的模型配置。 ### Use case Read the most recently used model configuration when resuming a conversation. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 只读,不修改会话。 ### Behavior and side effects Read-only; the conversation is unchanged. ### 后续调用 继续提交消息或展示当前模型。 ### Next step Submit another message or display the current model. ### 接口摘要 读取会话配置 / Get conversation configuration ### Operation summary 读取会话配置 / Get conversation configuration
|
|
128
130
|
* 读取会话配置 / Get conversation configuration
|
|
129
131
|
*/
|
|
130
132
|
getConversationConfigRaw(requestParameters, initOverrides) {
|
|
131
133
|
return __awaiter(this, void 0, void 0, function* () {
|
|
132
134
|
const requestOptions = yield this.getConversationConfigRequestOpts(requestParameters);
|
|
133
135
|
const response = yield this.request(requestOptions, initOverrides);
|
|
134
|
-
return new runtime.JSONApiResponse(response);
|
|
136
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ConversationConfig_1.ConversationConfigFromJSON)(jsonValue));
|
|
135
137
|
});
|
|
136
138
|
}
|
|
137
139
|
/**
|
|
138
|
-
*
|
|
140
|
+
* ### 使用场景 恢复会话时读取该会话最近使用的模型配置。 ### Use case Read the most recently used model configuration when resuming a conversation. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 只读,不修改会话。 ### Behavior and side effects Read-only; the conversation is unchanged. ### 后续调用 继续提交消息或展示当前模型。 ### Next step Submit another message or display the current model. ### 接口摘要 读取会话配置 / Get conversation configuration ### Operation summary 读取会话配置 / Get conversation configuration
|
|
139
141
|
* 读取会话配置 / Get conversation configuration
|
|
140
142
|
*/
|
|
141
143
|
getConversationConfig(requestParameters, initOverrides) {
|