Skip to content

Commit a1a2a6f

Browse files
committed
rename namespace
1 parent b6a57d1 commit a1a2a6f

File tree

15 files changed

+53
-56
lines changed

15 files changed

+53
-56
lines changed

src/Infrastructure/BotSharp.Abstraction/CodeInterpreter/ICodeInterpretService.cs

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using BotSharp.Abstraction.Coding.Options;
2+
using BotSharp.Abstraction.Coding.Responses;
3+
4+
namespace BotSharp.Abstraction.Coding;
5+
6+
public interface ICodeProcessor
7+
{
8+
string Provider { get; }
9+
10+
Task<CodeInterpretResponse> RunAsync(string codeScript, CodeInterpretOptions? options = null)
11+
=> throw new NotImplementedException();
12+
}

src/Infrastructure/BotSharp.Abstraction/CodeInterpreter/Models/CodeInterpretOptions.cs renamed to src/Infrastructure/BotSharp.Abstraction/CodeProcessors/Options/CodeInterpretOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.Threading;
22

3-
namespace BotSharp.Abstraction.CodeInterpreter.Models;
3+
namespace BotSharp.Abstraction.Coding.Options;
44

55
public class CodeInterpretOptions
66
{

src/Infrastructure/BotSharp.Abstraction/CodeInterpreter/Models/CodeInterpretResult.cs renamed to src/Infrastructure/BotSharp.Abstraction/CodeProcessors/Responses/CodeInterpretResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
namespace BotSharp.Abstraction.CodeInterpreter.Models;
1+
namespace BotSharp.Abstraction.Coding.Responses;
22

3-
public class CodeInterpretResult
3+
public class CodeInterpretResponse
44
{
55
public string Result { get; set; } = string.Empty;
66
public bool Success { get; set; }

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

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

3-
public class FileLlmProcessOptions
3+
public class FileHandleOptions
44
{
55
/// <summary>
66
/// Llm provider

src/Infrastructure/BotSharp.Abstraction/Files/Proccessors/IFileLlmProcessor.cs renamed to src/Infrastructure/BotSharp.Abstraction/Files/Proccessors/IFileProcessor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
namespace BotSharp.Abstraction.Files.Proccessors;
55

6-
public interface IFileLlmProcessor
6+
public interface IFileProcessor
77
{
88
public string Provider { get; }
99

10-
Task<FileLlmInferenceResponse> GetFileLlmInferenceAsync(Agent agent, string text, IEnumerable<InstructFileModel> files, FileLlmProcessOptions? options = null)
10+
Task<FileHandleResponse> HandleFilesAsync(Agent agent, string text, IEnumerable<InstructFileModel> files, FileHandleOptions? options = null)
1111
=> throw new NotImplementedException();
1212
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace BotSharp.Abstraction.Files.Responses;
22

3-
public class FileLlmInferenceResponse
3+
public class FileHandleResponse
44
{
55
public string Result { get; set; } = string.Empty;
66
public bool Success { get; set; }

src/Infrastructure/BotSharp.Abstraction/Instructs/Options/CodeInstructOptions.cs

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

33
public class CodeInstructOptions
44
{
5+
public string? Processor { get; set; }
56
public string? CodeScriptName { get; set; }
6-
public string? CodeInterpretProvider { get; set; }
77
public List<KeyValue>? Arguments { get; set; }
88
}

src/Infrastructure/BotSharp.Abstraction/Instructs/Options/FileInstructOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ namespace BotSharp.Abstraction.Instructs.Options;
22

33
public class FileInstructOptions
44
{
5-
public string? FileLlmProcessorProvider { get; set; }
5+
public string? Processor { get; set; }
66
}

src/Infrastructure/BotSharp.Core/CodeInterpreter/CodeScriptExecutor.cs renamed to src/Infrastructure/BotSharp.Core/Coding/CodeScriptExecutor.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using BotSharp.Abstraction.CodeInterpreter.Models;
2-
3-
namespace BotSharp.Core.CodeInterpreter;
1+
namespace BotSharp.Core.Coding;
42

53
public class CodeScriptExecutor
64
{
@@ -13,7 +11,7 @@ public CodeScriptExecutor(
1311
_logger = logger;
1412
}
1513

16-
public async Task<T> Execute<T>(Func<Task<T>> func, CancellationToken cancellationToken = default)
14+
public async Task<T> ExecuteAsync<T>(Func<Task<T>> func, CancellationToken cancellationToken = default)
1715
{
1816
await _semLock.WaitAsync(cancellationToken);
1917

0 commit comments

Comments
 (0)