agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
22 lines (21 loc) • 1.02 kB
TypeScript
/**
* staticTools — the simplest ToolProvider. Wraps a fixed Tool[] list.
*
* 90% case. What `agent.tools(arr)` does today, made composable.
* Equivalent to passing `arr` directly EXCEPT that `staticTools(arr)`
* is now a `ToolProvider` you can wrap with `gatedTools(...)` for
* permission filtering or per-skill gating.
*
* Pattern: identity ToolProvider — no filtering, just exposes the
* underlying list verbatim.
*
* @example
* const provider = staticTools([weatherTool, lookupTool]);
* // Materialize the visible list and register via .tools(...).
* // Direct .toolProvider(...) wiring on the builder lands in Block A5 / v2.5+.
* const visible = provider.list({ iteration: 0, identity: { conversationId: '_' } });
* const agent = Agent.create({ provider: llm, model }).tools(visible).build();
*/
import type { Tool } from '../tools/tools.js';
import type { ToolProvider } from '../tools/toolProvider.js';
export declare function staticTools(tools: readonly Tool[]): ToolProvider;