Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
9286b25
feat(types): Implement SEP-1577 - Sampling with Tools
ochafik Oct 1, 2025
58ea5dc
rm tmp
ochafik Oct 1, 2025
353789a
refactor: Remove isError from ToolResultContent to align with Claude/…
ochafik Oct 1, 2025
3c287c8
add sampling backfill example
ochafik Oct 1, 2025
744c83d
Update backfillSampling.ts
ochafik Oct 1, 2025
735b413
Merge branch 'ochafik/sampling-backfill-example' into ochafik/sep1577
ochafik Oct 1, 2025
cc03097
feat(examples): Add tool calling support to sampling backfill proxy
ochafik Oct 1, 2025
e5c5df2
feat(examples): Add toolLoopSampling example demonstrating agentic fi…
ochafik Oct 1, 2025
c856187
docs: Add comprehensive test patterns analysis for sampling
ochafik Oct 1, 2025
b688779
test(examples): Add comprehensive tests for toolLoopSampling
ochafik Oct 1, 2025
48cc38c
Update backfillSampling.ts
ochafik Oct 1, 2025
ddac3b1
Merge branch 'ochafik/sampling-backfill-example' into ochafik/sep1577
ochafik Oct 1, 2025
751d102
Update backfillSampling.ts
ochafik Oct 1, 2025
3650608
Merge branch 'ochafik/sampling-backfill-example' into ochafik/sep1577
ochafik Oct 1, 2025
265c227
fix(examples): Handle CreateMessageResult.content as array in toolLoo…
ochafik Oct 1, 2025
2ed11ea
updated result content to be a content or content array
ochafik Oct 1, 2025
f583264
feat(examples): Add logging feedback for tool loop operations
ochafik Oct 1, 2025
c4a4582
feat(examples): Add line range support and tool-specific logging to t…
ochafik Oct 1, 2025
a924cfa
rm unrelated changes
ochafik Oct 1, 2025
0f7885e
rm unrelated changes
ochafik Oct 1, 2025
01903a1
improve backfill errors
ochafik Oct 1, 2025
48115e4
less logs in toolLoopSampling
ochafik Oct 1, 2025
0ec533a
feat(examples): Add aggregated token usage tracking to toolLoopSampling
ochafik Oct 1, 2025
c12620d
Update toolLoopSampling.ts
ochafik Oct 1, 2025
ed94c4e
feat(examples): Support array content in SamplingMessage
ochafik Oct 1, 2025
a7c92b4
allow content arrays in SamplingMessage
ochafik Oct 1, 2025
70120a2
Merge branch 'ochafik/sep1577' of https://github.com/modelcontextprot…
ochafik Oct 1, 2025
e6cf5f8
Add toolChoice.mode == "none" + to help gracefully handle last iterat…
ochafik Oct 1, 2025
46fc761
rename: fileSearch -> localResearch
ochafik Oct 1, 2025
ed29d47
pin zod version compatible w/ dev dep of claude api
ochafik Oct 1, 2025
e45b5b1
Update toolLoopSampling.test.ts
ochafik Oct 1, 2025
a8affb3
align ToolResultContentSchema on (subset of) CallToolResult
ochafik Oct 6, 2025
904d036
Update backfillSampling.ts
ochafik Oct 6, 2025
daedb61
Update backfillSampling.ts
ochafik Oct 6, 2025
27d36a1
Update toolLoopSampling.ts
ochafik Oct 6, 2025
193bb38
allow AudioContent in ToolResultContent.content
ochafik Oct 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 57 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,11 @@
"express-rate-limit": "^7.5.0",
"pkce-challenge": "^5.0.0",
"raw-body": "^3.0.0",
"zod": "^3.23.8",
"zod": "^3.25.0",
"zod-to-json-schema": "^3.24.1"
},
"devDependencies": {
"@anthropic-ai/sdk": "^0.65.0",
"@eslint/js": "^9.8.0",
"@jest-mock/express": "^3.0.0",
"@types/content-type": "^1.1.8",
Expand Down
Loading