Skip to content

Commit 512975e

Browse files
committed
refactor(providers): consume @agentic-kit/protocol kernel
Point the openai, anthropic, and ollama adapters at @agentic-kit/protocol instead of re-declaring the kernel locally, removing ~900 lines of byte-identical and drifting copies. Each adapter now depends only on the zero-dep kernel, so it stays independently installable, and all three share the canonical Context.tools, ToolCallContent.rawArguments/decision, and full StreamOptions.
1 parent 97076e6 commit 512975e

9 files changed

Lines changed: 68 additions & 972 deletions

File tree

packages/anthropic/__tests__/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"paths": {
88
"@test/*": ["tools/test/*"],
99
"agentic-kit": ["packages/agentic-kit/src"],
10-
"@agentic-kit/agent": ["packages/agent/src"]
10+
"@agentic-kit/agent": ["packages/agent/src"],
11+
"@agentic-kit/protocol": ["packages/protocol/src"]
1112
},
1213
"types": ["jest", "node"]
1314
},

packages/anthropic/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,8 @@
3636
"test": "jest",
3737
"test:watch": "jest --watch"
3838
},
39+
"dependencies": {
40+
"@agentic-kit/protocol": "workspace:*"
41+
},
3942
"keywords": []
4043
}

0 commit comments

Comments
 (0)