Skip to content

Commit

Permalink
Merge pull request #58 from milbk/main
Browse files Browse the repository at this point in the history
Add ChatRole.Tool
  • Loading branch information
awaescher authored Jul 29, 2024
2 parents 2e72bd5 + 0e144ed commit 797b955
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Models/Chat/ChatRole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public ChatRole(object _)
private const string SYSTEM_VALUE = "system";
private const string ASSISTANT_VALUE = "assistant";
private const string USER_VALUE = "user";
private const string TOOL_VALUE = "tool";

/// <summary>
/// The role that instructs or sets the behavior of the assistant.
Expand All @@ -45,6 +46,11 @@ public ChatRole(object _)
/// </summary>
public static ChatRole User { get; } = new(USER_VALUE);

/// <summary>
/// The role that is used to input the result from an external tool.
/// </summary>
public static ChatRole Tool { get; } = new(TOOL_VALUE);

/// <summary>
/// Determines if two <see cref="ChatRole"/> values are the same.
/// </summary>
Expand Down

0 comments on commit 797b955

Please sign in to comment.