This commit is contained in:
Jicheng Lu 2025-10-15 14:22:18 -05:00
parent 74b2773223
commit 8fa683af8b
9 changed files with 20 additions and 1 deletions

View file

@ -27,11 +27,21 @@ public class FileLlmProcessOptions
/// </summary>
public string? Instruction { get; set; }
/// <summary>
/// Message from user
/// </summary>
public string? UserMessage { get; set; }
/// <summary>
/// Template name in Agent
/// </summary>
public string? TemplateName { get; set; }
/// <summary>
/// The upstream where the file llm is invoked
/// </summary>
public string? InvokeFrom { get; set; }
/// <summary>
/// Data that is used to render instruction
/// </summary>

View file

@ -1,4 +1,4 @@
namespace BotSharp.Abstraction.Knowledges.Models;
namespace BotSharp.Abstraction.Knowledges.Filters;
public class KnowledgeFileFilter : Pagination
{

View file

@ -1,5 +1,6 @@
using BotSharp.Abstraction.Graph.Models;
using BotSharp.Abstraction.Graph.Options;
using BotSharp.Abstraction.Knowledges.Filters;
using BotSharp.Abstraction.Knowledges.Options;
using BotSharp.Abstraction.Knowledges.Responses;
using BotSharp.Abstraction.VectorStorage.Models;

View file

@ -1,3 +1,4 @@
using BotSharp.Abstraction.Knowledges.Filters;
using BotSharp.Abstraction.Loggers.Models;
using BotSharp.Abstraction.Plugins.Models;
using BotSharp.Abstraction.Repositories.Filters;

View file

@ -119,7 +119,9 @@ public partial class InstructService
Provider = provider,
Model = model,
Instruction = instruction,
UserMessage = message.Content,
TemplateName = templateName,
InvokeFrom = $"{nameof(InstructService)}.{nameof(Execute)}",
Data = state.GetStates().ToDictionary(x => x.Key, x => (object)x.Value)
});
result = inference.Result.IfNullOrEmptyAs(string.Empty);

View file

@ -1,3 +1,4 @@
using BotSharp.Abstraction.Knowledges.Filters;
using BotSharp.Abstraction.VectorStorage.Filters;
using BotSharp.Abstraction.VectorStorage.Models;
using System.IO;

View file

@ -1,3 +1,5 @@
using BotSharp.Abstraction.Knowledges.Filters;
namespace BotSharp.OpenAPI.ViewModels.Knowledges;
public class GetKnowledgeDocsRequest : KnowledgeFileFilter

View file

@ -1,6 +1,7 @@
using BotSharp.Abstraction.Files;
using BotSharp.Abstraction.Files.Models;
using BotSharp.Abstraction.Files.Utilities;
using BotSharp.Abstraction.Knowledges.Filters;
using BotSharp.Abstraction.Knowledges.Helpers;
using BotSharp.Abstraction.Knowledges.Options;
using BotSharp.Abstraction.Knowledges.Responses;

View file

@ -1,3 +1,4 @@
using BotSharp.Abstraction.Knowledges.Filters;
using BotSharp.Abstraction.Knowledges.Models;
using BotSharp.Abstraction.VectorStorage.Filters;
using BotSharp.Abstraction.VectorStorage.Models;