Two Actors, one agent, and the three ways my chain broke
说明与用途
两个演员,一个代理,以及我的链条崩溃的三种方式
问题
A client needed to identify risky sellers on marketplaces, requiring two distinct steps: extracting sellers from listings and checking their legal entities against public risk registries. The existing two separate Actors were chained via an agent, but the chain failed in three subtle ways, producing incorrect results.
结果
The chain now correctly filters sellers without tax IDs, avoids permission errors, and produces accurate risk assessments.
工作流
- 1. Configure the seller scraper Actor to output records with a 'checkable' flag and a 'checkableReason' field.
- 2. Update the input schema of the seller scraper to expose an 'items' array as the primary input, and demote 'sourceDatasetId' to a fallback.
- 3. In the risk checker Actor, add logic to skip records with empty tax IDs and push a 'skipped_no_inn' status.
- 4. Chain the two Actors via an agent, ensuring the agent passes the 'items' array by value.
- 5. Run the chain and verify that only sellers with valid tax IDs are processed and risk scores are returned.
- 6. Monitor logs for permission errors and adjust dataset access if necessary.
证据
The agent never sees the log. It saw a list of sellers, mapped it to the risk checker's input, and passed the whole thing. Records without a tax ID went in as empty strings.
The fix is to pass values, and the part specific to chaining is this: your input schema decides which wiring the agent tries first.
Second, the risk Actor refuses to invent an answer for input it cannot use.
- 记录日期: 2026-09-08T12:15:24.950Z