mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 21:39:46 +00:00
Added manual validation steps
This commit is contained in:
parent
e998e9740f
commit
e932c21709
@ -622,10 +622,17 @@ public partial class AssistantERI : AssistantBaseCore
|
||||
if (!this.inputIsValid)
|
||||
return;
|
||||
|
||||
var ediSpecification = await this.selectedERIVersion.ReadSpecification(this.HttpClient);
|
||||
if (string.IsNullOrWhiteSpace(ediSpecification))
|
||||
if(this.retrievalProcesses.Count == 0)
|
||||
{
|
||||
// TODO: Show an error message
|
||||
this.AddInputIssue("Please describe at least one retrieval process.");
|
||||
return;
|
||||
}
|
||||
|
||||
var specification = await this.selectedERIVersion.ReadSpecification(this.HttpClient);
|
||||
if (string.IsNullOrWhiteSpace(specification))
|
||||
{
|
||||
this.AddInputIssue("The ERI specification could not be loaded. Please try again later.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user