Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Goodtocode.AgentFramework.Core.Application.Abstractions;

public interface IActorsPlugin
public interface IActorsTool
{
Task<IActorResponse> GetActorByIdAsync(Guid actorId, CancellationToken cancellationToken);
Task<ICollection<IActorResponse>> GetActorsByNameAsync(string name, CancellationToken cancellationToken);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Goodtocode.AgentFramework.Core.Application.Abstractions;

public interface IChatMessagesPlugin
public interface IChatMessagesTool
{
Task<IEnumerable<string>> ListRecentMessagesAsync(DateTime? startDate, DateTime? endDate, CancellationToken cancellationToken);
Task<IEnumerable<string>> GetChatMessagesAsync(Guid sessionId, CancellationToken cancellationToken);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Goodtocode.AgentFramework.Core.Application.Abstractions;

public interface IChatSessionsPlugin
public interface IChatSessionsTool
{
Task<IEnumerable<string>> ListRecentSessionsAsync(DateTime? startDate, DateTime? endDate, CancellationToken cancellationToken);
Task<string> UpdateChatSessionTitleAsync(Guid sessionId, string newTitle, CancellationToken cancellationToken);
Expand Down
4 changes: 2 additions & 2 deletions src/Infrastructure.AgentFramework/Tools/ActorsTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ public class ActorResponse : IActorResponse
}


public sealed class ActorsTool(IServiceProvider serviceProvider) : AITool, IActorsPlugin
public sealed class ActorsTool(IServiceProvider serviceProvider) : AITool, IActorsTool
{
private readonly IServiceProvider _serviceProvider = serviceProvider;

public static string PluginName => "AuthorsPlugin";
public static string ToolName => "AuthorsTool";
public string FunctionName => _currentFunctionName;
public Dictionary<string, object> Parameters => _currentParameters;

Expand Down
4 changes: 2 additions & 2 deletions src/Infrastructure.AgentFramework/Tools/ChatMessagesTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

namespace Goodtocode.AgentFramework.Infrastructure.AgentFramework.Tools;

public sealed class ChatMessagesTool(IServiceProvider serviceProvider) : AITool, IChatMessagesPlugin
public sealed class ChatMessagesTool(IServiceProvider serviceProvider) : AITool, IChatMessagesTool
{
private readonly IServiceProvider _serviceProvider = serviceProvider;

public static string PluginName => "ChatMessagesPlugin";
public static string ToolName => "ChatMessagesTool";
public string FunctionName => _currentFunctionName;
public Dictionary<string, object> Parameters => _currentParameters;

Expand Down
4 changes: 2 additions & 2 deletions src/Infrastructure.AgentFramework/Tools/ChatSessionsTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

namespace Goodtocode.AgentFramework.Infrastructure.AgentFramework.Tools;

public sealed class ChatSessionsTool(IServiceProvider serviceProvider) : AITool, IChatSessionsPlugin
public sealed class ChatSessionsTool(IServiceProvider serviceProvider) : AITool, IChatSessionsTool
{
private readonly IServiceProvider _serviceProvider = serviceProvider;

public static string PluginName => "ChatSessionsPlugin";
public static string ToolName => "ChatSessionsTool";
public string FunctionName => _currentFunctionName;
public Dictionary<string, object> Parameters => _currentParameters;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Scenario: Create Chat Message
Examples:
| def | response | responseErrors | id | ChatMessageExists | message |
| success | Success | | 00000000-0000-0000-0000-000000000000 | true | Hello, I am interested in an interactive Chat Message. |
| success actor plugin | Success | | 00000000-0000-0000-0000-000000000000 | true | Please call get_author that Returns the actor's name for the specified actor ID, or 'Actor not found' if no match exists |
| success session plugin | Success | | 00000000-0000-0000-0000-000000000000 | true | Please call list_sessions that Lists all sessions, optionally by date |
| success messages plugin | Success | | 00000000-0000-0000-0000-000000000000 | true | Please call list_messages that Lists all sessions, optionally by date |
| success actor tool | Success | | 00000000-0000-0000-0000-000000000000 | true | Please call get_author that Returns the actor's name for the specified actor ID, or 'Actor not found' if no match exists |
| success session tool | Success | | 00000000-0000-0000-0000-000000000000 | true | Please call list_sessions that Lists all sessions, optionally by date |
| success messages tool | Success | | 00000000-0000-0000-0000-000000000000 | true | Please call list_messages that Lists all sessions, optionally by date |
| bad request: empty message | BadRequest | Message | 00000000-0000-0000-0000-000000000000 | false | |
| already exists | Error | | 038d8e7f-f18f-4a8e-8b3c-3b6a6889fed9 | true | Hello, I am interested in an interactive Chat Message. |

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading