diff --git a/app/MindWork AI Studio/Agents/AgentDataSourceSelection.cs b/app/MindWork AI Studio/Agents/AgentDataSourceSelection.cs index 6a0f0957..6fe1f4e2 100644 --- a/app/MindWork AI Studio/Agents/AgentDataSourceSelection.cs +++ b/app/MindWork AI Studio/Agents/AgentDataSourceSelection.cs @@ -315,26 +315,6 @@ public sealed class AgentDataSourceSelection (ILogger return []; } } - - /// - /// Extracts the JSON list from the given text. The text may contain additional - /// information around the JSON list. The method tries to extract the JSON list - /// from the text. - /// - /// - /// Algorithm: The method searches for the first line that contains only a '[' character. - /// Then, it searches for the first line that contains only a ']' character. The method - /// returns the text between these two lines (including the brackets). When the method - /// cannot find the JSON list, it returns an empty string. - ///

- /// This overload is using strings instead of spans. We can use this overload in any - /// async method. Thus, it is a wrapper around the span-based method. Yes, we are losing - /// the memory efficiency of the span-based method, but we still gain the performance - /// of the span-based method: the entire search algorithm is span-based. - ///
- /// The text that may contain the JSON list. - /// The extracted JSON list. - private static string ExtractJson(string text) => ExtractJson(text.AsSpan()).ToString(); /// /// Extracts the JSON list from the given text. The text may contain additional diff --git a/app/MindWork AI Studio/Agents/AgentRetrievalContextValidation.cs b/app/MindWork AI Studio/Agents/AgentRetrievalContextValidation.cs index 3f4bf4c2..9a4fdff5 100644 --- a/app/MindWork AI Studio/Agents/AgentRetrievalContextValidation.cs +++ b/app/MindWork AI Studio/Agents/AgentRetrievalContextValidation.cs @@ -319,9 +319,6 @@ public sealed class AgentRetrievalContextValidation (ILogger ExtractJson(text.AsSpan()).ToString(); - private static ReadOnlySpan ExtractJson(ReadOnlySpan input) { //