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
1 change: 1 addition & 0 deletions src/Cellm/Tools/FileReader/FileReaderRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@

namespace Cellm.Tools.FileReader;

[Description("Reads the contents of file and returns plain text.")]
internal record FileReaderRequest([Description("The absolute path to the file.")] string FilePath) : IRequest<FileReaderResponse>;
2 changes: 1 addition & 1 deletion src/Cellm/Tools/Glob/GlobRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Cellm.Tools.Glob;

[Description("Search for files on the user's disk using glob patterns. Useful when user asks you to find files.")]
[Description("Searches for files on the user's disk using glob patterns.")]
internal record GlobRequest(
[Description("The root directory to start the glob search from")] string RootPath,
[Description("List of patterns to include in the search")] List<string> IncludePatterns,
Expand Down
4 changes: 2 additions & 2 deletions src/Cellm/Tools/ToolFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private static bool IsNullableType(Type type)

private static string GetDescriptionForType(Type type)
{
var descriptionAttribute = type.GetCustomAttribute<DescriptionAttribute>();
return descriptionAttribute?.Description ?? type.Name;
var descriptionAttribute = type.GetCustomAttribute<System.ComponentModel.DescriptionAttribute>();
return descriptionAttribute?.Description ?? throw new ArgumentException($"Cannot get tool description for {type.Name}.");
}
}