Expand description
Shared derivation: ConversationView → toolpath::v1::Path.
Provider-agnostic mapping used by the Pi, Claude, and future conversation
providers. Takes a ConversationView and emits a Path document with
one step per turn and a conversation.append structural change carrying
the turn’s text, thinking, tool uses, and token usage.
Structs§
- Derive
Config - Configuration for
derive_path.
Functions§
- derive_
path - Derive a
Pathfrom aConversationView. - file_
write_ diff - Compute a unified diff string for a file-write tool invocation, given the
raw tool input JSON. Handles Claude’s Edit / Write / MultiEdit / NotebookEdit
shapes; returns
Nonefor any unrecognised shape or if nothing to diff. - unified_
diff - Produce a minimal unified-diff string using
similar::TextDiff.