Skip to main content

Module provider

Module provider 

Source
Expand description

Implementation of toolpath-convo traits for Claude conversations.

Handles cross-entry tool result assembly: Claude’s JSONL format writes tool invocations and their results as separate entries. This module pairs them by tool_use_id so consumers get complete Turn values with ToolInvocation.result populated.

Functions§

to_turn
Convert a single Claude ConversationEntry into a Turn, if it contains a message.
to_view
Convert a Claude Conversation directly into a ConversationView.