';
- btn.disabled=false;btn.textContent='Ask Agent';
+ btn.disabled=false;btn.textContent='Do';
return;
}
var reader=resp.body.getReader();
@@ -269,7 +269,7 @@ form.addEventListener('submit',function(e){
if(!conv){conv=document.createElement('div');conv.id='agent-conversation';result.parentNode.insertBefore(conv,result);}
var turn=document.createElement('div');
turn.innerHTML='
'
- +'
You asked:
'
+ +'
You said:
'
+'
'+esc(prompt)+'
'
+'
';
conv.appendChild(turn);
@@ -277,7 +277,7 @@ form.addEventListener('submit',function(e){
// Update context for follow-up and reset prompt
if(ev.flow_id){document.getElementById('agent-context').value=ev.flow_id;}
document.getElementById('agent-prompt').value='';
- document.getElementById('agent-prompt').placeholder='Ask a follow-up question...';
+ document.getElementById('agent-prompt').placeholder='Tell the agent what to do next...';
// Move form to bottom for conversation mode
var formCard=document.getElementById('agent-form-card');
var hist=document.getElementById('agent-history');
@@ -289,7 +289,7 @@ form.addEventListener('submit',function(e){
prog.style.display='none';
result.innerHTML='