Co-authored-by: Alexis Tacnet <alexis@mistral.ai>
Co-authored-by: Clément Drouin <clement.drouin@mistral.ai>
Co-authored-by: Guillaume LE GOFF <guillaume.lgf@gmail.com>
Co-authored-by: Lucas Marandat <31749711+lucasmrdt@users.noreply.github.com>
Co-authored-by: Maxime Dolores <maxime.dolores@ext.mistral.ai>
Co-authored-by: Pierre Rossinès <pierre.rossines@mistral.ai>
Co-authored-by: Quentin <quentin.torroba@mistral.ai>
Co-authored-by: Val <102326092+vdeva@users.noreply.github.com>
Co-authored-by: Vincent G <10739306+VinceOPS@users.noreply.github.com>
Co-authored-by: p.vezia <166131032+le-codeur-rapide@users.noreply.github.com>
Co-authored-by: Hiba Chaabnia <Hiba-Chaabnia@users.noreply.github.com>
Co-authored-by: Nikhil Bhima <nikhilbhima@users.noreply.github.com>
Co-authored-by: Nkipohcs <Nkipohcs@users.noreply.github.com>
Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
Mathias Gesbert 2026-06-04 18:26:35 +02:00 committed by GitHub
parent ad0d5c9520
commit 3f8487f761
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
197 changed files with 10819 additions and 2830 deletions

View file

@ -45,7 +45,7 @@ async def test_ui_displays_messages_when_resuming_session(
id="tool_call_1",
index=0,
function=FunctionCall(
name="read_file", arguments='{"path": "test.txt"}'
name="read", arguments='{"file_path": "test.txt"}'
),
)
],
@ -53,7 +53,7 @@ async def test_ui_displays_messages_when_resuming_session(
tool_result_msg = LLMMessage(
role=Role.tool,
content="File content here",
name="read_file",
name="read",
tool_call_id="tool_call_1",
)
@ -78,12 +78,12 @@ async def test_ui_displays_messages_when_resuming_session(
# Verify tool call message is displayed
tool_call_messages = app.query(ToolCallMessage)
assert len(tool_call_messages) == 1
assert tool_call_messages[0]._tool_name == "read_file"
assert tool_call_messages[0]._tool_name == "read"
# Verify tool result message is displayed
tool_result_messages = app.query(ToolResultMessage)
assert len(tool_result_messages) == 1
assert tool_result_messages[0].tool_name == "read_file"
assert tool_result_messages[0].tool_name == "read"
assert tool_result_messages[0]._content == "File content here"