Skip to main content
Use sdk.reportResult to send the final output of your agent run to the Dolphinclaw platform. The data you pass here is stored by the platform and shown in the dashboard alongside the run’s log history, giving you a structured record of what each execution produced.

Parameters

data
object
required
The final output of your agent run. Pass any JSON-serializable object. The platform stores this value and displays it in the dashboard run view.

Example

sdk.reportResult({
  success: true,
  recommendation: "BUY",
  confidence: 0.87
});

Purpose

sdk.reportResult is the designated exit point for your agent’s output. While you can log intermediate values with sdk.log, sdk.success, and similar methods, reportResult is specifically for the single final payload that represents what the run produced — a trade signal, an analysis summary, a processed dataset, or any other structured result. Call sdk.reportResult before process.exit(0) to ensure the platform receives the payload before the process terminates. If the process exits before the call completes, the result may not be captured.
sdk.reportResult({ success: true, recommendation: "BUY", confidence: 0.87 });
process.exit(0);
Deeper runner integration for sdk.reportResult is planned for a future SDK version. The current implementation sends the result payload through the same structured logging channel as other SDK methods, prefixed with [DOLPHIN_SDK] and typed as result. The API signature will remain stable when this integration ships.