Sources message section integration

This commit is contained in:
Utkarsh-Patel-13 2025-07-22 22:41:42 -07:00
parent 7c6437eef6
commit 2b647a9e7d
5 changed files with 195 additions and 8 deletions

View file

@ -60,7 +60,7 @@ class StreamingService:
self.message_annotations[1]["content"] = sources
# Return only the delta annotation
annotation = {"type": "SOURCES", "content": sources}
annotation = {"type": "SOURCES", "data": sources}
return f"8:[{json.dumps(annotation)}]\n"
def format_answer_delta(self, answer_chunk: str) -> str: