docs: readme

This commit is contained in:
Dax Raad
2025-06-14 12:12:56 -04:00
parent d7aca6230d
commit af892e5432
8 changed files with 198 additions and 32 deletions

View File

@@ -289,11 +289,13 @@ export namespace Provider {
google: TOOLS,
}
export async function tools(providerID: string) {
/*
const cfg = await Config.get()
if (cfg.tool?.provider?.[providerID])
return cfg.tool.provider[providerID].map(
(id) => TOOLS.find((t) => t.id === id)!,
)
*/
return TOOL_MAPPING[providerID] ?? TOOLS
}