Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

458 B
Raw Blame
import { Property } from '@activepieces/pieces-framework';

function limit<R extends boolean>({
	required,
	displayName = 'Limit',
	description = 'How many stories to return, from the top of the list (1-100). Defaults to 10.',
}: PropParams<R>) {
	return Property.Number({ displayName, description, required });
}

export const hackernewsAiProps = { limit };

type PropParams<R extends boolean> = { required: R; displayName?: string; description?: string };