Nous.Eval.Reporter.Json (nous v0.15.6)

View Source

JSON output for evaluation reports.

Summary

Functions

Write report to JSON file.

Generate JSON report.

Convert result to a map suitable for JSON encoding.

Functions

to_file(result, path)

@spec to_file(Nous.Eval.SuiteResult.t(), String.t()) :: :ok | {:error, term()}

Write report to JSON file.

to_json(result)

@spec to_json(Nous.Eval.SuiteResult.t()) :: String.t()

Generate JSON report.

to_map(result)

@spec to_map(Nous.Eval.SuiteResult.t()) :: map()

Convert result to a map suitable for JSON encoding.