mirror of
https://git.mirrors.martin98.com/https://github.com/bytedance/deer-flow
synced 2025-08-20 01:59:12 +08:00
feat: refine the hil text
This commit is contained in:
parent
3cd84e1ec7
commit
b8c4248ed2
@ -206,7 +206,7 @@ def _execute_agent_step(
|
|||||||
agent_input = {
|
agent_input = {
|
||||||
"messages": [
|
"messages": [
|
||||||
HumanMessage(
|
HumanMessage(
|
||||||
content=f"#Task\n\n##title: {step.title}\n\n##description: {step.description}"
|
content=f"#Task\n\n##title\n\n{step.title}\n\n##description\n\n{step.description}"
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -86,8 +86,8 @@ async def _astream_workflow_generator(
|
|||||||
"content": event_data["__interrupt__"][0].value,
|
"content": event_data["__interrupt__"][0].value,
|
||||||
"finish_reason": "interrupt",
|
"finish_reason": "interrupt",
|
||||||
"options": [
|
"options": [
|
||||||
{"text": "Accept", "value": "accepted"},
|
{"text": "Start research", "value": "accepted"},
|
||||||
{"text": "Edit", "value": "edit_plan"},
|
{"text": "Edit plan", "value": "edit_plan"},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user