Answer confusion

This commit is contained in:
Cyber MacGeddon 2025-11-28 15:47:44 +00:00
parent 6022d600a8
commit c55e4569ba

View file

@ -352,14 +352,14 @@ class Processor(AgentService):
if streaming: if streaming:
# Streaming format - send end-of-dialog marker # Streaming format - send end-of-dialog marker
# Answer chunks were already sent via think() callback during parsing # Answer chunks were already sent via answer() callback during parsing
r = AgentResponse( r = AgentResponse(
chunk_type="answer", chunk_type="answer",
content="", # Empty content, just marking end of dialog content="", # Empty content, just marking end of dialog
end_of_message=True, end_of_message=True,
end_of_dialog=True, end_of_dialog=True,
# Legacy fields for backward compatibility # Legacy fields set to None - answer already sent via streaming chunks
answer=act.final, answer=None,
error=None, error=None,
thought=None, thought=None,
) )