Skip to content

iter_list_batch_evaluations async

iter_list_batch_evaluations(
    *,
    config_overrides: Optional[AsyncBedrockAgentCoreClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional[str] = None,
) -> AsyncIterator[BatchEvaluationSummary]
Source code in docs_src/capo_bedrock_agentcore/_services/async_bedrock_agent_core.py
async def iter_list_batch_evaluations(
    self,
    *,
    config_overrides: Optional[AsyncBedrockAgentCoreClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional[str] = None,
) -> "AsyncIterator[capo_bedrock_agentcore.types.batch_evaluation_summary.BatchEvaluationSummary]":
    _token = next_token
    while True:
        _response = await self.list_batch_evaluations(
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("batch_evaluations",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break