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

@ -10,7 +10,7 @@ from textual.widget import Widget
from tests.snapshots.snap_compare import SnapCompare
from vibe.cli.textual_ui.handlers.event_handler import EventHandler
from vibe.cli.textual_ui.widgets.tools import ToolCallMessage
from vibe.core.tools.builtins.read_file import ReadFile, ReadFileArgs, ReadFileResult
from vibe.core.tools.builtins.read import Read, ReadArgs, ReadResult
from vibe.core.types import ToolCallEvent, ToolResultEvent
@ -49,9 +49,9 @@ class ParallelToolCallsApp(App):
ToolCallEvent(
tool_call_id=f"tc_{i}",
tool_call_index=i,
tool_name="read_file",
tool_class=ReadFile,
args=ReadFileArgs(path=f"/src/file_{i}.py"),
tool_name="read",
tool_class=Read,
args=ReadArgs(file_path=f"/src/file_{i}.py"),
)
)
@ -71,13 +71,14 @@ class ParallelToolCallsApp(App):
for i in range(3):
await self._handler.handle_event(
ToolResultEvent(
tool_name="read_file",
tool_class=ReadFile,
result=ReadFileResult(
path=f"/src/file_{i}.py",
content=f"# content of file_{i}.py",
lines_read=1,
was_truncated=False,
tool_name="read",
tool_class=Read,
result=ReadResult(
file_path=f"/src/file_{i}.py",
content=f" 1→# content of file_{i}.py",
num_lines=1,
start_line=1,
total_lines=1,
),
tool_call_id=f"tc_{i}",
)