Logo
Explore Help
Sign In
discourse/discourse-ai
1
0
Fork 0
You've already forked discourse-ai
mirror of https://github.com/discourse/discourse-ai.git synced 2025-07-01 12:02:16 +00:00
Code Issues Packages Projects Releases Wiki Activity
discourse-ai/spec/fabricators/ai_tool_fabricator.rb

11 lines
237 B
Ruby
Raw Normal View History

FEATURE: Tool name validation (#842) * FEATURE: Tool name validation - Add unique index to the name column of the ai_tools table - correct our tests for AiToolController - tool_name field which will be used to represent to LLM - Add tool_name to Tools's presets - Add duplicate tools validation for AiPersona - Add unique constraint to the name column of the ai_tools table * DEV: Validate duplicate tool_name between builin tools and custom tools * lint * chore: fix linting * fix conlict mistakes * chore: correct icon class * chore: fix failed specs * Add max_length to tool_name * chore: correct the option name * lintings * fix lintings
2025-02-07 14:34:47 +11:00
# frozen_string_literal: true
Fabricator(:ai_tool) do
name "github tool"
tool_name "github_tool"
description "This is a tool for GitHub"
summary "This is a tool for GitHub"
script "puts 'Hello, GitHub!'"
created_by_id 1
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 65ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API