refine
This commit is contained in:
parent
74b2773223
commit
8fa683af8b
|
|
@ -27,11 +27,21 @@ public class FileLlmProcessOptions
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string? Instruction { get; set; }
|
public string? Instruction { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Message from user
|
||||||
|
/// </summary>
|
||||||
|
public string? UserMessage { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Template name in Agent
|
/// Template name in Agent
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string? TemplateName { get; set; }
|
public string? TemplateName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The upstream where the file llm is invoked
|
||||||
|
/// </summary>
|
||||||
|
public string? InvokeFrom { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Data that is used to render instruction
|
/// Data that is used to render instruction
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
namespace BotSharp.Abstraction.Knowledges.Models;
|
namespace BotSharp.Abstraction.Knowledges.Filters;
|
||||||
|
|
||||||
public class KnowledgeFileFilter : Pagination
|
public class KnowledgeFileFilter : Pagination
|
||||||
{
|
{
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
using BotSharp.Abstraction.Graph.Models;
|
using BotSharp.Abstraction.Graph.Models;
|
||||||
using BotSharp.Abstraction.Graph.Options;
|
using BotSharp.Abstraction.Graph.Options;
|
||||||
|
using BotSharp.Abstraction.Knowledges.Filters;
|
||||||
using BotSharp.Abstraction.Knowledges.Options;
|
using BotSharp.Abstraction.Knowledges.Options;
|
||||||
using BotSharp.Abstraction.Knowledges.Responses;
|
using BotSharp.Abstraction.Knowledges.Responses;
|
||||||
using BotSharp.Abstraction.VectorStorage.Models;
|
using BotSharp.Abstraction.VectorStorage.Models;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
using BotSharp.Abstraction.Knowledges.Filters;
|
||||||
using BotSharp.Abstraction.Loggers.Models;
|
using BotSharp.Abstraction.Loggers.Models;
|
||||||
using BotSharp.Abstraction.Plugins.Models;
|
using BotSharp.Abstraction.Plugins.Models;
|
||||||
using BotSharp.Abstraction.Repositories.Filters;
|
using BotSharp.Abstraction.Repositories.Filters;
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,9 @@ public partial class InstructService
|
||||||
Provider = provider,
|
Provider = provider,
|
||||||
Model = model,
|
Model = model,
|
||||||
Instruction = instruction,
|
Instruction = instruction,
|
||||||
|
UserMessage = message.Content,
|
||||||
TemplateName = templateName,
|
TemplateName = templateName,
|
||||||
|
InvokeFrom = $"{nameof(InstructService)}.{nameof(Execute)}",
|
||||||
Data = state.GetStates().ToDictionary(x => x.Key, x => (object)x.Value)
|
Data = state.GetStates().ToDictionary(x => x.Key, x => (object)x.Value)
|
||||||
});
|
});
|
||||||
result = inference.Result.IfNullOrEmptyAs(string.Empty);
|
result = inference.Result.IfNullOrEmptyAs(string.Empty);
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
using BotSharp.Abstraction.Knowledges.Filters;
|
||||||
using BotSharp.Abstraction.VectorStorage.Filters;
|
using BotSharp.Abstraction.VectorStorage.Filters;
|
||||||
using BotSharp.Abstraction.VectorStorage.Models;
|
using BotSharp.Abstraction.VectorStorage.Models;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
using BotSharp.Abstraction.Knowledges.Filters;
|
||||||
|
|
||||||
namespace BotSharp.OpenAPI.ViewModels.Knowledges;
|
namespace BotSharp.OpenAPI.ViewModels.Knowledges;
|
||||||
|
|
||||||
public class GetKnowledgeDocsRequest : KnowledgeFileFilter
|
public class GetKnowledgeDocsRequest : KnowledgeFileFilter
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
using BotSharp.Abstraction.Files;
|
using BotSharp.Abstraction.Files;
|
||||||
using BotSharp.Abstraction.Files.Models;
|
using BotSharp.Abstraction.Files.Models;
|
||||||
using BotSharp.Abstraction.Files.Utilities;
|
using BotSharp.Abstraction.Files.Utilities;
|
||||||
|
using BotSharp.Abstraction.Knowledges.Filters;
|
||||||
using BotSharp.Abstraction.Knowledges.Helpers;
|
using BotSharp.Abstraction.Knowledges.Helpers;
|
||||||
using BotSharp.Abstraction.Knowledges.Options;
|
using BotSharp.Abstraction.Knowledges.Options;
|
||||||
using BotSharp.Abstraction.Knowledges.Responses;
|
using BotSharp.Abstraction.Knowledges.Responses;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
using BotSharp.Abstraction.Knowledges.Filters;
|
||||||
using BotSharp.Abstraction.Knowledges.Models;
|
using BotSharp.Abstraction.Knowledges.Models;
|
||||||
using BotSharp.Abstraction.VectorStorage.Filters;
|
using BotSharp.Abstraction.VectorStorage.Filters;
|
||||||
using BotSharp.Abstraction.VectorStorage.Models;
|
using BotSharp.Abstraction.VectorStorage.Models;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue