Skip to content

Commit 627f7fa

Browse files
committed
Add RouterController.
1 parent ccca262 commit 627f7fa

File tree

24 files changed

+154
-42
lines changed

24 files changed

+154
-42
lines changed

docs/assets/BotSharp.min.psd

-103 KB
Binary file not shown.

docs/assets/BotSharp.psd

-62.6 KB
Binary file not shown.

docs/assets/front-cover.psd

-129 KB
Binary file not shown.

docs/static/logos/BotSharp.min.png

-6.3 KB
Binary file not shown.

docs/static/logos/BotSharp.png

-12 KB
Binary file not shown.

docs/static/logos/favicon.ico

-4.19 KB
Binary file not shown.

src/Infrastructure/BotSharp.Abstraction/Knowledges/IKnowledgeService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ namespace BotSharp.Abstraction.Knowledges;
55
public interface IKnowledgeService
66
{
77
Task Feed(KnowledgeFeedModel knowledge);
8+
Task EmbedKnowledge(KnowledgeCreationModel knowledge);
89
Task<string> GetKnowledges(KnowledgeRetrievalModel retrievalModel);
910
Task<List<RetrievedResult>> GetAnswer(KnowledgeRetrievalModel retrievalModel);
1011
}

src/Infrastructure/BotSharp.Abstraction/Knowledges/IPdf2TextConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ namespace BotSharp.Abstraction.Knowledges
77
{
88
public interface IPdf2TextConverter
99
{
10-
Task<string> ConvertPdfToText(IFormFile formFile, int? startPageNum, int? endPageNum);
10+
Task<string> ConvertPdfToText(string filePath, int? startPageNum, int? endPageNum);
1111
}
1212
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
namespace BotSharp.Abstraction.Knowledges.Models;
2+
3+
public class KnowledgeCreationModel
4+
{
5+
public string Content { get; set; } = string.Empty;
6+
}

src/Infrastructure/BotSharp.Abstraction/Repositories/Filters/AgentFilter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ public class AgentFilter
77
public bool? AllowRouting { get; set; }
88
public bool? IsPublic { get; set; }
99
public bool? IsRouter { get; set; }
10+
public bool? IsEvaluator { get; set; }
1011
public List<string>? AgentIds { get; set; }
1112
}

0 commit comments

Comments
 (0)