Studio: keep research worker compatible with Python 3.11
This commit is contained in:
parent
31e64cb3b9
commit
5b86faeb35
1 changed files with 2 additions and 1 deletions
|
|
@ -1130,6 +1130,7 @@ class ResearchSupervisor:
|
|||
f" Search snippet: {source.get('snippet') or '(none)'}"
|
||||
for index, source in enumerate(sources, 1)
|
||||
)
|
||||
evidence_text = "\n\n".join(notes)
|
||||
report, synthesis_reasoning, synthesis_finish_reason = await self._stream_completion(
|
||||
run,
|
||||
[
|
||||
|
|
@ -1143,7 +1144,7 @@ class ResearchSupervisor:
|
|||
f"</approved_plan>\n\n"
|
||||
f"<source_catalog>\n{source_catalog or '(no web sources gathered)'}\n"
|
||||
f"</source_catalog>\n\n"
|
||||
f"<untrusted_evidence>\n{'\n\n'.join(notes)}\n"
|
||||
f"<untrusted_evidence>\n{evidence_text}\n"
|
||||
f"</untrusted_evidence>"
|
||||
),
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue