mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-23 20:21:03 +02:00
Answer confusion
This commit is contained in:
parent
6022d600a8
commit
c55e4569ba
1 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue