> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dolphinclaw.io/llms.txt
> Use this file to discover all available pages before exploring further.

# sdk.reportResult() — send final agent run output

> sdk.reportResult sends the final JSON result of your agent execution to the Dolphinclaw platform for storage and display in the dashboard run history.

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

<ParamField path="data" type="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.
</ParamField>

## Example

```javascript theme={null}
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.

```javascript theme={null}
sdk.reportResult({ success: true, recommendation: "BUY", confidence: 0.87 });
process.exit(0);
```

<Note>
  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.
</Note>
