mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 22:37:59 +00:00
Split the reasoning parameters into dialects
This commit is contained in:
15 files changed
+845
-488
No files matched your search
@@ -0,0 +1,24 @@
|
||||
namespace AIStudio.Provider.Reasoning;
|
||||
|
||||
/// <summary>
|
||||
/// One way of asking a request to think, and how to recognize it.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// A dialect reads parameters and says nothing else. It does not know which provider it is being
|
||||
/// asked for, it keeps no state, and it never looks at the model -- what a model is able to do comes
|
||||
/// from the rules, and mixing the two is what made the code this replaces hard to follow.
|
||||
/// </remarks>
|
||||
public interface IReasoningDialect
|
||||
{
|
||||
/// <summary>
|
||||
/// Which dialect this is, which is also where it stands in the order.
|
||||
/// </summary>
|
||||
ReasoningDialect Dialect { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Reads what these parameters say about reasoning.
|
||||
/// </summary>
|
||||
/// <param name="parameters">The parsed additional API parameters.</param>
|
||||
/// <returns>What they say, which is usually nothing.</returns>
|
||||
ReasoningConfigurationState Detect(IDictionary<string, object> parameters);
|
||||
}
|
||||
Reference in new issue
Block a user