MCPcopy Index your code
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / BatchResult

Class BatchResult

scrapegraphai/utils/batch_api.py:71–84  ·  view source on GitHub ↗

The result of a single request within a completed batch.

Source from the content-addressed store, hash-verified

69
70@dataclass
71class BatchResult:
72 """The result of a single request within a completed batch."""
73
74 custom_id: str
75 """The custom ID that was provided in the request."""
76
77 content: Optional[str] = None
78 """The response content from the LLM."""
79
80 error: Optional[str] = None
81 """Error message if this individual request failed."""
82
83 usage: Optional[Dict[str, int]] = None
84 """Token usage for this request."""
85
86
87@dataclass

Callers 3

test_failed_resultMethod · 0.90
retrieve_batch_resultsFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_failed_resultMethod · 0.72