feat: refine the hil text

This commit is contained in:
He Tao 2025-04-16 19:07:40 +08:00
parent 3cd84e1ec7
commit b8c4248ed2
2 changed files with 3 additions and 3 deletions

View File

@ -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}"
) )
] ]
} }

View File

@ -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"},
], ],
}, },
) )