feat(events): human_message content uses OpenAI user message format

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
rayhpeng
2026-04-04 09:07:34 +08:00
parent 17c8dbd9aa
commit db59dfa6fb
2 changed files with 20 additions and 2 deletions
@@ -78,7 +78,7 @@ async def run_agent(
run_id=run_id,
event_type="human_message",
category="message",
content=user_input,
content={"role": "user", "content": user_input},
metadata=msg_metadata or None,
)
journal.set_first_human_message(user_input)