Packages › trotsky › StepSuggestedFeeds
StepSuggestedFeeds class
Represents a step for retrieving suggested custom feeds using the Bluesky API. Supports paginated retrieval of feed suggestions.
Signature:
typescript
export declare class StepSuggestedFeeds<P = Trotsky, C = null, O extends StepSuggestedFeedsOutput = StepSuggestedFeedsOutput> extends StepBuilderList<P, C, O>Extends: StepBuilderList<P, C, O>
Example
Get and iterate through suggested feeds:
ts
await Trotsky.init(agent)
.suggestedFeeds()
.take(10)
.tap((step) => {
step.output.forEach((feed) => {
console.log(`Feed: ${feed.displayName} - ${feed.description}`)
})
})
.run()Methods
Method | Modifiers | Description |
|---|---|---|
Applies pagination to retrieve suggested feeds and sets the output. Fetches paginated results using the agent and appends them to the output. |