Skip to main content
Module history
robonix_
pilot
0.1.0
Module history
Module Items
Structs
Functions
In crate robonix_
pilot
robonix_pilot
Module
history
Copy item path
Source
Structs
§
Tool
Result
History
Output of
tool_result_to_messages
: messages that go in
tool
role, plus optional follow-up
user
messages (e.g. for an image attachment).
Functions
§
sanitize_
for_
vlm
Filter
history
to a form OpenAI-compatible endpoints accept: every
tool
message must be preceded by an
assistant
whose
tool_calls
lists its
tool_call_id
. Orphans (e.g. left over from a trim that dropped the assistant) are quietly removed.
tool_
result_
to_
messages
Build history messages from one executor tool result.
trim
Drop the oldest messages so
history.len() <= max
. No-op if already short.