MCPcopy
hub / github.com/wshobson/agents / to_json

Method to_json

plugins/plugin-eval/src/plugin_eval/reporter.py:27–29  ·  view source on GitHub ↗

Return a pretty-printed JSON string of the full result.

(self, result: PluginEvalResult)

Source from the content-addressed store, hash-verified

25 # ------------------------------------------------------------------
26
27 def to_json(self, result: PluginEvalResult) -> str:
28 """Return a pretty-printed JSON string of the full result."""
29 return result.model_dump_json(indent=2)
30
31 # ------------------------------------------------------------------
32 # Markdown

Callers 2

_run_scoreFunction · 0.95
test_json_outputMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_json_outputMethod · 0.76