Skip to content

Commit 889038c

Browse files
authored
Fix validation (#1921)
1 parent 55be2db commit 889038c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

lumen/ai/prompts/ValidationAgent/main.jinja2

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,15 @@ Current context contains the following keys: {{ ", ".join(memory) }}
7878
{{ memory["view"] | json_to_yaml }}
7979
```
8080
{%- endif -%}
81+
{#- Render the ChatAgent's typed output (memory['chat']) rather than the
82+
interface chat history: the executed response reaches this agent through
83+
context, not as a message, so it must be surfaced explicitly here. -#}
84+
{%- if memory.get('chat') %}
85+
{% if 'chat' in previous_keys %}(From previous plan) {% endif %}Assistant Response:
86+
"""
87+
{{ memory['chat'] }}
88+
"""
89+
{%- endif -%}
8190
{%- if memory.get('listing') and 'listing' not in previous_keys %}
8291
Listing displayed:
8392
{{ memory['listing'] }}

0 commit comments

Comments
 (0)