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