Skip to content

fix(hawk-sdk-go): rename ToolCallID to ToolUseID and add pagination + structured-output helpers#31

Merged
Patel230 merged 3 commits into
mainfrom
fix/sdk-tooluseid-rename
Jul 16, 2026
Merged

fix(hawk-sdk-go): rename ToolCallID to ToolUseID and add pagination + structured-output helpers#31
Patel230 merged 3 commits into
mainfrom
fix/sdk-tooluseid-rename

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Summary

  • Renames ToolCallID to ToolUseID in ToolResult to match the Anthropic tool_use_id convention.
  • Adds an auto-pagination iterator and a structured-output parse helper.

Verification

  • go build ./..., go test ./... pass

Patel230 added 3 commits July 15, 2026 11:15
AllMessages wraps Messages() to fetch all pages of a session's messages
transparently via a range-over-func iterator, closing the gap vs.
anthropic-sdk-go where callers previously had to hand-roll offset/limit
loops. ParseInto adds a client-side JSON decode helper for structured
output, since the daemon API has no schema-negotiation field to build a
server-validated version against.
The daemon's tool-result convention is tool_use_id (Anthropic), not
tool_call_id (OpenAI). Update the field tag and the three call sites so
the daemon response deserializes correctly.
@Patel230
Patel230 merged commit e5e2fa5 into main Jul 16, 2026
12 checks passed
@Patel230
Patel230 deleted the fix/sdk-tooluseid-rename branch July 16, 2026 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant