Skip to main content

record_inline_tool_calls

Function record_inline_tool_calls 

Source
pub fn record_inline_tool_calls(
    session_dir: &Path,
    records: &[Value],
) -> Result<(), Error>
Expand description

Fileless agents (OpenCode) have no transcript for tracevault check to count tool calls from: their records ride inline on each hook event. Append one slim toolCall record per tool called in records to the session’s tool_calls.jsonl and record that file as the session’s transcript. Only the tool name is kept — arguments and outputs (file contents, bash stdout) would grow the file for nothing. Records with no tool call write nothing.