iachat/enterprise/lib/captain
Rodrigo Borba 039b9e116d fix(captain): add send_suite_images rules to scenario.liquid template
The [Galeria de Fotos] rules previously added to assistant_response_generator
only apply to the legacy V1 chat service. In V2 (captain_integration_v2),
scenario agents use scenario.liquid as their system prompt template, not
assistant_response_generator.

This adds conditional rules to scenario.liquid (matching the existing pattern
for faq_lookup and check_pix_payment) that activate for any scenario that
has the send_suite_images tool:
- Infer suite_category vs suite_number from context, no confirmation needed
- Never announce photo sending before the tool confirms images were found

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 10:14:12 -03:00
..
conversation fix(captain): integracao do delay do inbox com resposta humanizada e remocao de race conditions 2026-02-26 12:47:41 -03:00
prompts fix(captain): add send_suite_images rules to scenario.liquid template 2026-02-27 10:14:12 -03:00
tools chore(style): fix rubocop offenses and update typing indicators 2026-02-25 15:06:58 -03:00
prompt_renderer.rb feat: scenario agents & runner (#11944) 2025-08-14 12:39:21 +05:30
response_schema.rb chore(style): fix rubocop offenses and update typing indicators 2026-02-25 15:06:58 -03:00