pull/643/head^2
Travis Fischer 2024-06-03 00:10:17 -05:00
rodzic b195c6b8f5
commit 760b4d5716
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -5,6 +5,10 @@ import { z } from 'zod'
import { aiFunction, AIFunctionsProvider } from '../fns.js'
import { assert, getEnv, pruneUndefined, throttleKy } from '../utils.js'
// TODO: https://docs.goperigon.com/docs/searching-sources
// TODO: https://docs.goperigon.com/docs/journalist-data
// TODO: https://docs.goperigon.com/docs/topics
export namespace perigon {
// Allow up to 2 requests per second by default.
export const throttle = pThrottle({
@ -656,6 +660,7 @@ export class PerigonClient extends AIFunctionsProvider {
}
/**
* @see https://docs.goperigon.com/docs/overview
* @see https://docs.goperigon.com/reference/all-news
*/
@aiFunction({
@ -714,6 +719,7 @@ export class PerigonClient extends AIFunctionsProvider {
}
/**
* @see https://docs.goperigon.com/docs/stories-overview
* @see https://docs.goperigon.com/reference/stories-1
*/
@aiFunction({