old-agentic
Travis Fischer 2025-03-01 20:08:44 +07:00
rodzic 3b153e1fe2
commit 1a36d1ea5e
3 zmienionych plików z 10 dodań i 2 usunięć

Wyświetl plik

@ -34,5 +34,9 @@ pnpm add @agentic/hacker-news
import { HackerNewsClient } from '@agentic/hacker-news' import { HackerNewsClient } from '@agentic/hacker-news'
const hn = new HackerNewsClient() const hn = new HackerNewsClient()
const res = await hn.getTopStories() const res = await hn.searchItems({
query: 'example query',
tags: ['story'],
numericFilters: ['points>100']
})
``` ```

Wyświetl plik

@ -189,7 +189,8 @@ export function throttleKy(
/** /**
* Creates a new `URLSearchParams` object with all values coerced to strings * Creates a new `URLSearchParams` object with all values coerced to strings
* that correctly handles arrays of values as repeated keys. * that correctly handles arrays of values as repeated keys (or CSV) and
* correctly removes `undefined` keys and values.
*/ */
export function sanitizeSearchParams( export function sanitizeSearchParams(
searchParams: searchParams:

Wyświetl plik

@ -64,7 +64,10 @@ export class WolframAlphaClient extends AIFunctionsProvider {
} }
/** /**
* Answers computational, mathematical, and scientific questions.
*
* WolframAlpha understands natural language queries about entities in chemistry, physics, geography, history, art, astronomy, and more. * WolframAlpha understands natural language queries about entities in chemistry, physics, geography, history, art, astronomy, and more.
*
* WolframAlpha performs mathematical calculations, date and unit conversions, formula solving, etc. * WolframAlpha performs mathematical calculations, date and unit conversions, formula solving, etc.
*/ */
@aiFunction({ @aiFunction({