async def iter_list_invocation_steps(
self,
session_identifier: "capo_bedrock_agent_runtime.types.session_identifier.SessionIdentifier",
*,
config_overrides: Optional[AsyncBedrockAgentRuntimeClientConfig] = None,
invocation_identifier: Optional[
"capo_bedrock_agent_runtime.types.invocation_identifier.InvocationIdentifier"
] = None,
next_token: Optional[
"capo_bedrock_agent_runtime.types.next_token.NextToken"
] = None,
max_results: Optional[
"capo_bedrock_agent_runtime.types.max_results.MaxResults"
] = None,
) -> "AsyncIterator[capo_bedrock_agent_runtime.types.invocation_step_summary.InvocationStepSummary]":
_token = next_token
while True:
_response = await self.list_invocation_steps(
session_identifier,
config_overrides=config_overrides,
invocation_identifier=invocation_identifier,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("invocation_step_summaries",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break