Skip to content

Packages  ›  trotsky  ›  StepPostReply

StepPostReply class

Represents a step for replying to a specific post.

Signature:

typescript
export declare class StepPostReply<P = StepPost, C extends StepPostOutput = StepPostOutput, O extends StepPostReplyOutput = StepPostReplyOutput> extends Step<P, C, O>

Extends: Step<P, C, O>

Constructors

Constructor

Modifiers

Description

(constructor)(agent, parent, record)

Initializes the StepPostReply instance with the given agent, parent, and reply record parameters.

Properties

Property

Modifiers

Type

Description

_record

ResolvablePostReplyParams

The record containing the reply parameters, which can be resolved dynamically at runtime.

Methods

Method

Modifiers

Description

apply()

Applies the step logic to create a reply to the post provided in the context. The resulting URI and CID of the reply are stored in the output.

clone(rest)

Clones the current step and returns a new instance with the same parameters.

queryParams()

Resolves the query parameters for the reply, including reply references and creation time.

replyParams()

Constructs the reply parameters for the post, including parent and root references.