agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
35 lines • 1.81 kB
JavaScript
;
/**
* The thinking handler a provider DECLARES, and the list the library ships.
*
* Pattern: capability declaration, like `promptCaching`. The provider adapter
* knows the shape its wire's thinking arrives in, so it declares the
* handler that normalizes it (`LLMProvider.thinkingHandler`); the
* agent uses that declaration. It used to scan this list for a
* handler whose `providerNames` held `provider.name`, so every
* renaming wrapper (`withRetry` → `anthropic+retry`, an app's
* routing wrapper) silently lost thinking — and with it the signed
* blocks Anthropic needs echoed back after a tool call.
*
* `SHIPPED_THINKING_HANDLERS` is the list the shared contract test
* (`test/thinking/cross-cutting.test.ts`) holds every shipped handler to;
* `thinkingHandlerFor` (its own module, so the agent pulls in no handler it
* does not use) reads the declaration.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.SHIPPED_THINKING_HANDLERS = void 0;
const AnthropicThinkingHandler_js_1 = require("./AnthropicThinkingHandler.js");
const MockThinkingHandler_js_1 = require("./MockThinkingHandler.js");
const OllamaThinkingHandler_js_1 = require("./OllamaThinkingHandler.js");
const OpenAIThinkingHandler_js_1 = require("./OpenAIThinkingHandler.js");
/**
* All thinking handlers shipped with the library. Append in alphabetical
* order (by `id`) so diffs stay readable as new handlers land.
*/
exports.SHIPPED_THINKING_HANDLERS = [
AnthropicThinkingHandler_js_1.anthropicThinkingHandler,
MockThinkingHandler_js_1.mockThinkingHandler,
OllamaThinkingHandler_js_1.ollamaThinkingHandler,
OpenAIThinkingHandler_js_1.openAIThinkingHandler,
];
//# sourceMappingURL=registry.js.map