Sample
"# Sample\n\n```python\nfrom modal_dojo import Sample\n```\n\nA prompt, response, parsed structure, score, and metadata from one model call.\n\n**Attributes**\n\n<div class=\"tg-param\">\n<p><strong>score</strong> <code>float</code></p>\n<p>Reward or eval score for this call. <span class=\"tg-param-default\">Default: 0.0</span></p>\n</div>\n\n<div class=\"tg-param\">\n<p><strong>prompt</strong> <code>str</code></p>\n<p>Text sent to the model for this call. <span class=\"tg-param-default\">Default: \"\"</span></p>\n</div>\n\n<div class=\"tg-param\">\n<p><strong>response</strong> <code>str</code></p>\n<p>Raw model output. <span class=\"tg-param-default\">Default: \"\"</span></p>\n</div>\n\n<div class=\"tg-param\">\n<p><strong>parsed_response</strong> <code>ParsedResponse | None</code></p>\n<p>Structured parse of <code>response</code>, if available.</p>\n</div>\n\n<div class=\"tg-param\">\n<p><strong>metadata</strong> <code>dict[str, Any]</code></p>\n<p>Custom metadata attached to this call by a reward or rollout function. <span class=\"tg-param-default\">Default: {}</span></p>\n</div>\n\n<div class=\"tg-param\">\n<p><strong>trace</strong> <code>list[TraceSpan] | None</code></p>\n<p>Execution spans for a sampled subset of rollouts when recording is on. <code>None</code> otherwise.</p>\n</div>\n"
from modal_dojo import SampleA prompt, response, parsed structure, score, and metadata from one model call.
Attributes
score float
Reward or eval score for this call. Default: 0.0
prompt str
Text sent to the model for this call. Default: ""
response str
Raw model output. Default: ""
parsed_response ParsedResponse | None
Structured parse of response, if available.
metadata dict[str, Any]
Custom metadata attached to this call by a reward or rollout function. Default: {}
trace list[TraceSpan] | None
Execution spans for a sampled subset of rollouts when recording is on. None otherwise.