mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-15 05:01:39 +00:00
Removed deferred content handling from DocumentAnalysisAssistant
This commit is contained in:
parent
9fc5c809b0
commit
1e4eb7c725
@ -205,11 +205,6 @@ public partial class DocumentAnalysisAssistant : AssistantBaseCore<SettingsDialo
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.policyDefinitionExpanded = !this.selectedPolicy?.IsProtected ?? true;
|
this.policyDefinitionExpanded = !this.selectedPolicy?.IsProtected ?? true;
|
||||||
|
|
||||||
var receivedDeferredContent = MessageBus.INSTANCE.CheckDeferredMessages<string>(Event.SEND_TO_DOCUMENT_ANALYSIS_ASSISTANT).FirstOrDefault();
|
|
||||||
if (receivedDeferredContent is not null)
|
|
||||||
this.deferredContent = receivedDeferredContent;
|
|
||||||
|
|
||||||
await base.OnInitializedAsync();
|
await base.OnInitializedAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -244,8 +239,6 @@ public partial class DocumentAnalysisAssistant : AssistantBaseCore<SettingsDialo
|
|||||||
private string policyDescription = string.Empty;
|
private string policyDescription = string.Empty;
|
||||||
private string policyAnalysisRules = string.Empty;
|
private string policyAnalysisRules = string.Empty;
|
||||||
private string policyOutputRules = string.Empty;
|
private string policyOutputRules = string.Empty;
|
||||||
#warning Use deferred content for document analysis
|
|
||||||
private string deferredContent = string.Empty;
|
|
||||||
private HashSet<FileAttachment> loadedDocumentPaths = [];
|
private HashSet<FileAttachment> loadedDocumentPaths = [];
|
||||||
|
|
||||||
private bool IsNoPolicySelectedOrProtected => this.selectedPolicy is null || this.selectedPolicy.IsProtected;
|
private bool IsNoPolicySelectedOrProtected => this.selectedPolicy is null || this.selectedPolicy.IsProtected;
|
||||||
|
|||||||
@ -16,6 +16,7 @@ public static class ComponentsExtensions
|
|||||||
Components.ERI_ASSISTANT => false,
|
Components.ERI_ASSISTANT => false,
|
||||||
Components.BIAS_DAY_ASSISTANT => false,
|
Components.BIAS_DAY_ASSISTANT => false,
|
||||||
Components.I18N_ASSISTANT => false,
|
Components.I18N_ASSISTANT => false,
|
||||||
|
Components.DOCUMENT_ANALYSIS_ASSISTANT => false,
|
||||||
|
|
||||||
Components.APP_SETTINGS => false,
|
Components.APP_SETTINGS => false,
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user