Skip to content

Commit bbf23e6

Browse files
Merge pull request #52 from wisedev-code/feat/migrate-to-new-release-and-km-imprv
Feat/migrate to new release and km imprv
2 parents 5a0c829 + 7288192 commit bbf23e6

15 files changed

Lines changed: 119 additions & 59 deletions

File tree

Examples/Examples/Agents/AgentWithBecomeExample.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using MaIN.Core.Hub;
22
using MaIN.Core.Hub.Utils;
3+
using MaIN.Domain.Entities;
34
using MaIN.Domain.Entities.Agents.AgentSource;
45
using MaIN.Domain.Models;
56

@@ -17,17 +18,17 @@ public async Task Start()
1718
Path = "./Files/Books.json",
1819
Name = "Books.json"
1920
}, AgentSourceType.File)
20-
.WithBehaviour("SalesGod",
21+
.WithBehaviour("SalesGod",
2122
"""
2223
You are SalesGod, the ultimate AI sales expert with unmatched persuasion skills, deep psychological insight,
2324
and an unstoppable drive to close deals. Your mission is to sell anything to anyone,
2425
using a combination of charisma, storytelling, emotional triggers, and logical reasoning.
2526
Your selling approach is adaptable—you can be friendly, authoritative, humorous, or even aggressive,
2627
depending on the buyer’s psychology. You master every sales technique, from scarcity and urgency to social proof and objection handling.
27-
28+
2829
No hesitation. No doubts. Every conversation is an opportunity to seal the deal. You never give up,
2930
always finding a way to turn ‘no’ into ‘yes.’ Now, go out there and SELL!
30-
31+
3132
Very important, you need to propose only books that were mentioned in this conversation
3233
""")
3334
.WithSteps(StepBuilder.Instance
@@ -36,9 +37,8 @@ public async Task Start()
3637
.Answer()
3738
.Build())
3839
.Create(interactiveResponse: true);
39-
40+
4041
await becomeAgent
4142
.ProcessAsync("I am looking for good fantasy book to buy");
42-
4343
}
4444
}

Releases/0.2.2.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# 0.2.2 release
2+
3+
- Added Gemini support in infer cli command
4+
- Package upgrades
5+
- New CLI release (support for Qwen3-8b, Qwen3-14 and Phi3.5 and Phi4)
6+
- Multimodal and KM improvements

src/MaIN.Core/.nuspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package>
33
<metadata>
44
<id>MaIN.NET</id>
5-
<version>0.2.1</version>
5+
<version>0.2.2</version>
66
<authors>Wisedev</authors>
77
<owners>Wisedev</owners>
88
<icon>favicon.png</icon>
@@ -13,9 +13,9 @@
1313
<dependencies>
1414
<dependency id="GTranslate" version="2.2.0" />
1515
<dependency id="HtmlAgilityPack" version="1.12.0" />
16-
<dependency id="LLamaSharp" version="0.23.0" />
17-
<dependency id="LLamaSharp.Backend.Cuda12" version="0.23.0" />
18-
<dependency id="LLamaSharp.kernel-memory" version="0.23.0" />
16+
<dependency id="LLamaSharp" version="0.24.0" />
17+
<dependency id="LLamaSharp.Backend.Cuda12" version="0.24.0" />
18+
<dependency id="LLamaSharp.kernel-memory" version="0.24.0" />
1919
<dependency id="Microsoft.Extensions.Http" version="9.0.3" />
2020
<dependency id="Microsoft.KernelMemory" version="0.98.250324.1" />
2121
<dependency id="System.Data.SqlClient" version="4.8.6" />

src/MaIN.Core/MaIN.Core.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<ItemGroup>
1010
<PackageReference Include="GTranslate" Version="2.2.0" />
1111
<PackageReference Include="HtmlAgilityPack" Version="1.12.1" />
12-
<PackageReference Include="LLamaSharp" Version="0.23.0" />
13-
<PackageReference Include="LLamaSharp.Backend.Cuda12" Version="0.23.0" />
14-
<PackageReference Include="LLamaSharp.kernel-memory" Version="0.23.0" />
12+
<PackageReference Include="LLamaSharp" Version="0.24.0" />
13+
<PackageReference Include="LLamaSharp.Backend.Cuda12" Version="0.24.0" />
14+
<PackageReference Include="LLamaSharp.kernel-memory" Version="0.24.0" />
1515
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.3" />
1616
<PackageReference Include="Microsoft.KernelMemory" Version="0.98.250324.1" />
1717
<PackageReference Include="System.Data.SqlClient" Version="4.8.6" />

src/MaIN.Domain/Entities/MemoryParams.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ public class MemoryParams
1414
/// If your response is invalid make sure you meet those limits.
1515
/// </summary>
1616
public int AnswerTokens { get; set; } = 500;
17+
18+
public bool MultiModalMode { get; set; } = false;
1719
}

src/MaIN.Domain/MaIN.Domain.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="LLamaSharp" Version="0.23.0" />
11+
<PackageReference Include="LLamaSharp" Version="0.24.0" />
1212
</ItemGroup>
1313

1414
</Project>

src/MaIN.Domain/Models/SupportedModels.cs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,22 @@ public static class KnownModels
3838
DownloadUrl = string.Empty,
3939
},
4040
new Model()
41+
{
42+
Description = string.Empty,
43+
Name = KnownModelNames.Qwen3_8b,
44+
FileName = "Qwen3-8b.gguf",
45+
DownloadUrl = string.Empty,
46+
ReasonFunction = ReasoningFunctions.ProcessDeepSeekToken
47+
},
48+
new Model()
49+
{
50+
Description = string.Empty,
51+
Name = KnownModelNames.Qwen3_14b,
52+
FileName = "Qwen3-14b.gguf",
53+
DownloadUrl = string.Empty,
54+
ReasonFunction = ReasoningFunctions.ProcessDeepSeekToken
55+
},
56+
new Model()
4157
{
4258
Description = string.Empty,
4359
Name = KnownModelNames.OlympicCoder_7b,
@@ -108,6 +124,20 @@ public static class KnownModels
108124
DownloadUrl = string.Empty
109125
},
110126
new Model()
127+
{
128+
Description = string.Empty,
129+
Name = KnownModelNames.Phi3_5_3b,
130+
FileName = "phi3.5-3b.gguf",
131+
DownloadUrl = string.Empty
132+
},
133+
new Model()
134+
{
135+
Description = string.Empty,
136+
Name = KnownModelNames.Phi4_4b,
137+
FileName = "phi4-4b.gguf",
138+
DownloadUrl = string.Empty
139+
},
140+
new Model()
111141
{
112142
Description = string.Empty,
113143
Name = KnownModelNames.DeepSeek_R1_8b,
@@ -247,7 +277,11 @@ public struct KnownModelNames
247277
public const string DeepSeek_R1_8b = "deepseekR1:8b";
248278
public const string DeepSeek_R1_1_5b = "deepseekR1:1.5b";
249279
public const string QwQ_7b = "qwq:7b";
280+
public const string Qwen3_8b = "qwen3:8b";
281+
public const string Qwen3_14b = "qwen3:14b";
250282
public const string Olmo2_7b = "olmo2:7b";
283+
public const string Phi3_5_3b = "phi3.5:3b";
284+
public const string Phi4_4b = "phi4:4b";
251285
public const string Smollm2_0_1b = "smollm2:0.1b";
252286
public const string Yi_6b = "yi:6b";
253287

src/MaIN.InferPage/Program.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@
8181
settings.BackendType = BackendType.OpenAi;
8282
});
8383
}
84+
if (Utils.Gemini)
85+
{
86+
builder.Services.AddMaIN(builder.Configuration, settings =>
87+
{
88+
settings.BackendType = BackendType.Gemini;
89+
});
90+
}
8491
else
8592
{
8693
builder.Services.AddMaIN(builder.Configuration);

src/MaIN.Infrastructure/Models/MemoryParamsDocument.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ public class MemoryParamsDocument
88
public float FrequencyPenalty { get; set; }
99
public float Temperature { get; set; }
1010
public int AnswerTokens { get; set; }
11+
public bool MultiModalMode { get; set; }
1112
}

src/MaIN.Services/MaIN.Services.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
<ItemGroup>
1616
<PackageReference Include="GTranslate" Version="2.2.0" />
1717
<PackageReference Include="HtmlAgilityPack" Version="1.12.1" />
18-
<PackageReference Include="LLamaSharp" Version="0.23.0" />
19-
<PackageReference Include="LLamaSharp.Backend.Cuda12" Version="0.23.0" />
20-
<PackageReference Include="LLamaSharp.kernel-memory" Version="0.23.0" />
18+
<PackageReference Include="LLamaSharp" Version="0.24.0" />
19+
<PackageReference Include="LLamaSharp.Backend.Cuda12" Version="0.24.0" />
20+
<PackageReference Include="LLamaSharp.kernel-memory" Version="0.24.0" />
2121
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.3" />
2222
<PackageReference Include="Microsoft.KernelMemory" Version="0.98.250324.1" />
2323
<PackageReference Include="Microsoft.SemanticKernel" Version="1.49.0" />

0 commit comments

Comments
 (0)