UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

11 lines 757 B
import { GenericAPIFn } from "../../GenericAPIFn"; import { stringifyQuery } from "../../shared/helper/rest"; export function addBuiltinToolAPIs(self) { return { // see: https://github.com/Cognigy/ai-agents-v2/blob/92b1ee76d5741a60e6cab293bb71c0007f898a1f/internal/builtinresources/api.go#L89 indexBuiltinTools: (args, options) => GenericAPIFn(`/v1/builtin-tools?${stringifyQuery(args)}`, "GET", self)(undefined, options), // see: https://github.com/Cognigy/ai-agents-v2/blob/92b1ee76d5741a60e6cab293bb71c0007f898a1f/internal/builtinresources/api.go#L136 readBuiltinTool: ({ slug }, options) => GenericAPIFn(`/v1/builtin-tools/${slug}`, "GET", self)(undefined, options) }; } //# sourceMappingURL=builtinToolAPI.js.map