Suggestions

This method is only relevant if your agent allows manual mode.

Note: Circuit will now automatically clear all existing suggestions at the beginning of each agent execution

The clearSuggestedTransactions() method will soft delete any suggested transaction that has not been approved or denied by the user.

Signature

async clearSuggestedTransactions(): Promise<ClearSuggestionsResponse>

Response

Returns LogResponse:

  • success (boolean): Whether the pending suggestions were cleared

  • error (string | null): Error message if clearing failed

Examples

await agent.clearSuggestedTransactions();

Last updated