framework.data_management.DataRetrievalResult#

class framework.data_management.DataRetrievalResult(context_data=<factory>, successful_sources=<factory>, failed_sources=<factory>, total_sources_attempted=0, retrieval_time_ms=None)[source]#

Bases: object

Result of data retrieval from multiple sources.

context_data: Dict[str, DataSourceContext]#
successful_sources: List[str]#
failed_sources: List[str]#
total_sources_attempted: int = 0#
retrieval_time_ms: float | None = None#
property has_data: bool#

Check if any data was successfully retrieved.

property success_rate: float#

Calculate the success rate of data retrieval.

get_summary()[source]#

Get a summary of the retrieval results.

Return type:

Dict[str, Any]

__init__(context_data=<factory>, successful_sources=<factory>, failed_sources=<factory>, total_sources_attempted=0, retrieval_time_ms=None)#