diff --git a/legacy/docs/tools/hacker-news.mdx b/legacy/docs/tools/hacker-news.mdx index abe12223..ae1502eb 100644 --- a/legacy/docs/tools/hacker-news.mdx +++ b/legacy/docs/tools/hacker-news.mdx @@ -34,5 +34,9 @@ pnpm add @agentic/hacker-news import { HackerNewsClient } from '@agentic/hacker-news' const hn = new HackerNewsClient() -const res = await hn.getTopStories() +const res = await hn.searchItems({ + query: 'example query', + tags: ['story'], + numericFilters: ['points>100'] +}) ``` diff --git a/legacy/packages/core/src/utils.ts b/legacy/packages/core/src/utils.ts index 3e081259..8b110f6f 100644 --- a/legacy/packages/core/src/utils.ts +++ b/legacy/packages/core/src/utils.ts @@ -189,7 +189,8 @@ export function throttleKy( /** * 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( searchParams: diff --git a/legacy/packages/wolfram-alpha/src/wolfram-alpha-client.ts b/legacy/packages/wolfram-alpha/src/wolfram-alpha-client.ts index 183599cf..0506effe 100644 --- a/legacy/packages/wolfram-alpha/src/wolfram-alpha-client.ts +++ b/legacy/packages/wolfram-alpha/src/wolfram-alpha-client.ts @@ -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 performs mathematical calculations, date and unit conversions, formula solving, etc. */ @aiFunction({