mirror of
https://github.com/microsoft/autogen.git
synced 2025-11-07 05:14:39 +00:00
36 lines
1.5 KiB
C#
36 lines
1.5 KiB
C#
<<<<<<< HEAD
|
|
namespace skills;
|
|
=======
|
|
namespace Microsoft.SKDevTeam;
|
|
>>>>>>> elsa3new
|
|
|
|
public class SemanticFunctionConfig
|
|
{
|
|
public string PromptTemplate { get; set; }
|
|
public string Name { get; set; }
|
|
public string SkillName { get; set; }
|
|
public string Description { get; set; }
|
|
public int MaxTokens { get; set; }
|
|
public double Temperature { get; set; }
|
|
public double TopP { get; set; }
|
|
public double PPenalty { get; set; }
|
|
public double FPenalty { get; set; }
|
|
public static SemanticFunctionConfig ForSkillAndFunction(string skillName, string functionName) =>
|
|
(skillName, functionName) switch
|
|
{
|
|
<<<<<<< HEAD
|
|
(nameof(PM), nameof(PM.BootstrapProject)) => PM.BootstrapProject,
|
|
(nameof(PM), nameof(PM.Readme)) => PM.Readme,
|
|
(nameof(DevLead), nameof(DevLead.Plan)) => DevLead.Plan,
|
|
=======
|
|
(nameof(Chat), nameof(Chat.ChatCompletion)) => Chat.ChatCompletion,
|
|
(nameof(PM), nameof(PM.BootstrapProject)) => PM.BootstrapProject,
|
|
(nameof(PM), nameof(PM.Readme)) => PM.Readme,
|
|
(nameof(DevLead), nameof(DevLead.Plan)) => DevLead.Plan,
|
|
(nameof(CodeExplainer), nameof(CodeExplainer.Explain)) => CodeExplainer.Explain,
|
|
>>>>>>> elsa3new
|
|
(nameof(Developer), nameof(Developer.Implement)) => Developer.Implement,
|
|
(nameof(Developer), nameof(Developer.Improve)) => Developer.Improve,
|
|
_ => throw new ArgumentException($"Unable to find {skillName}.{functionName}")
|
|
};
|
|
} |