fix: parameterize agent name (#12709)
This commit is contained in:
@@ -88,7 +88,7 @@ class Captain::Assistant < ApplicationRecord
|
||||
private
|
||||
|
||||
def agent_name
|
||||
name
|
||||
name.parameterize(separator: '_')
|
||||
end
|
||||
|
||||
def agent_tools
|
||||
|
||||
@@ -56,7 +56,7 @@ class Captain::Scenario < ApplicationRecord
|
||||
private
|
||||
|
||||
def agent_name
|
||||
"#{title} Agent".titleize
|
||||
"#{title} Agent".parameterize(separator: '_')
|
||||
end
|
||||
|
||||
def agent_tools
|
||||
|
||||
Reference in New Issue
Block a user