Skip to content

Carry a provider's raw message on Msg, keep server tool calls as ordinary pairs, and count PDF pages without pypdf - #48

Merged
jph00 merged 1 commit into
mainfrom
pr/carry-a-provider-s-raw-message-on-msg-keep-server
Sep 2, 2026
Merged

Carry a provider's raw message on Msg, keep server tool calls as ordinary pairs, and count PDF pages without pypdf#48
jph00 merged 1 commit into
mainfrom
pr/carry-a-provider-s-raw-message-on-msg-keep-server

Conversation

@jph00

@jph00 jph00 commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Msg gains raw, the wire message a provider produced, so a client can replay it unchanged. ServerToolResult is removed: a server-run call is a ToolUse and ToolResult pair like any other, hist2fmt renders it once, and fmt2hist reads it back with server kept instead of skipping it. pdf_pages counts a PDF's pages from its page tree, in the clear or inside object streams, so callers no longer need pypdf. See msg_parts (Tool parts, The formatted text form) and hist.

…dinary pairs, and count PDF pages without pypdf
@jph00 jph00 added the enhancement New feature or request label Sep 2, 2026
@jph00
jph00 merged commit 68b245d into main Sep 2, 2026
1 check passed
@jph00
jph00 deleted the pr/carry-a-provider-s-raw-message-on-msg-keep-server branch September 2, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant