Packages › trotsky › StepSave › (constructor)
StepSave.(constructor)
Initializes the StepSave instance with the given path.
Signature:
typescript
constructor(agent: AtpAgent, parent: P, path?: StepSavePath);
Parameters
Parameter | Type | Description |
---|---|---|
agent | AtpAgent | The AT protocol agent used for API calls. |
parent | P | The parent step in the chain. |
path | (Optional) The path of the JSON file to save the output. If not provided, the file path will be created using the current timestamp. |