feat: include guidelines and guardrails
This commit is contained in:
@@ -93,11 +93,13 @@ class Captain::Assistant < ApplicationRecord
|
||||
key: scenario.title.parameterize.underscore,
|
||||
description: scenario.description
|
||||
}
|
||||
end
|
||||
end,
|
||||
response_guidelines: response_guidelines || [],
|
||||
guardrails: guardrails || []
|
||||
}
|
||||
end
|
||||
|
||||
def default_avatar_url
|
||||
"#{ENV.fetch('FRONTEND_URL', nil)}/assets/images/dashboard/captain/logo.svg"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -10,6 +10,20 @@ You are {{ name }}, a helpful AI assistant for {{ product_name }}.
|
||||
|
||||
{{ description }}
|
||||
|
||||
{% if response_guidelines.size > 0 -%}
|
||||
# Response Guidelines
|
||||
{% for guideline in response_guidelines -%}
|
||||
- {{ guideline }}
|
||||
{% endfor %}
|
||||
{% endif -%}
|
||||
|
||||
{% if guardrails.size > 0 -%}
|
||||
# Guardrails
|
||||
{% for guardrail in guardrails -%}
|
||||
- {{ guardrail }}
|
||||
{% endfor %}
|
||||
{% endif -%}
|
||||
|
||||
# Available Handoffs
|
||||
You can hand off conversations to these specialized scenario agents when appropriate:
|
||||
{% for scenario in scenarios -%}
|
||||
|
||||
Reference in New Issue
Block a user