Skip to content

Commit b6a57d1

Browse files
authored
Merge pull request #1188 from iceljc/master
Refine file llm processor
2 parents 788766c + 8fa683a commit b6a57d1

File tree

96 files changed

+158
-52
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+158
-52
lines changed

src/Infrastructure/BotSharp.Abstraction/Agents/Options/AgentCodeScriptUpdateOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using BotSharp.Abstraction.Repositories.Models;
1+
using BotSharp.Abstraction.Repositories.Options;
22

33
namespace BotSharp.Abstraction.Agents.Options;
44

src/Infrastructure/BotSharp.Abstraction/Chart/IBotSharpChartService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using BotSharp.Abstraction.Chart.Models;
2+
using BotSharp.Abstraction.Chart.Options;
23

34
namespace BotSharp.Abstraction.Chart;
45

src/Infrastructure/BotSharp.Abstraction/Chart/Models/ChartCodeOptions.cs renamed to src/Infrastructure/BotSharp.Abstraction/Chart/Options/ChartCodeOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace BotSharp.Abstraction.Chart.Models;
1+
namespace BotSharp.Abstraction.Chart.Options;
22

33
public class ChartCodeOptions
44
{

src/Infrastructure/BotSharp.Abstraction/Chart/Models/ChartDataOptions.cs renamed to src/Infrastructure/BotSharp.Abstraction/Chart/Options/ChartDataOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace BotSharp.Abstraction.Chart.Models;
1+
namespace BotSharp.Abstraction.Chart.Options;
22

33
public class ChartDataOptions
44
{

src/Infrastructure/BotSharp.Abstraction/CodeInterpreter/Models/CodeInterpretResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ namespace BotSharp.Abstraction.CodeInterpreter.Models;
22

33
public class CodeInterpretResult
44
{
5-
public object Result { get; set; }
5+
public string Result { get; set; } = string.Empty;
66
public bool Success { get; set; }
77
public string? ErrorMsg { get; set; }
88
}

src/Infrastructure/BotSharp.Abstraction/Files/Models/FileSelectContext.cs renamed to src/Infrastructure/BotSharp.Abstraction/Files/Contexts/FileSelectContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace BotSharp.Abstraction.Files.Models;
1+
namespace BotSharp.Abstraction.Files.Contexts;
22

33
public class FileSelectContext
44
{

src/Infrastructure/BotSharp.Abstraction/Files/Converters/IImageConverter.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
using BotSharp.Abstraction.Files.Options;
2+
13
namespace BotSharp.Abstraction.Files.Converters;
24

35
public interface IImageConverter

src/Infrastructure/BotSharp.Abstraction/Files/IFileInstructService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using BotSharp.Abstraction.Instructs.Models;
1+
using BotSharp.Abstraction.Files.Options;
2+
using BotSharp.Abstraction.Instructs.Options;
23

34
namespace BotSharp.Abstraction.Files;
45

src/Infrastructure/BotSharp.Abstraction/Files/IFileStorageService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using BotSharp.Abstraction.Files.Options;
12
using System.IO;
23

34
namespace BotSharp.Abstraction.Files;

src/Infrastructure/BotSharp.Abstraction/Files/Models/FileLlmProcessOptions.cs renamed to src/Infrastructure/BotSharp.Abstraction/Files/Options/FileLlmProcessOptions.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace BotSharp.Abstraction.Files.Models;
1+
namespace BotSharp.Abstraction.Files.Options;
22

33
public class FileLlmProcessOptions
44
{
@@ -27,11 +27,21 @@ public class FileLlmProcessOptions
2727
/// </summary>
2828
public string? Instruction { get; set; }
2929

30+
/// <summary>
31+
/// Message from user
32+
/// </summary>
33+
public string? UserMessage { get; set; }
34+
3035
/// <summary>
3136
/// Template name in Agent
3237
/// </summary>
3338
public string? TemplateName { get; set; }
3439

40+
/// <summary>
41+
/// The upstream where the file llm is invoked
42+
/// </summary>
43+
public string? InvokeFrom { get; set; }
44+
3545
/// <summary>
3646
/// Data that is used to render instruction
3747
/// </summary>

0 commit comments

Comments
 (0)