Skip to content

iter_list_invocation_steps

iter_list_invocation_steps(
    session_identifier: SessionIdentifier,
    *,
    config_overrides: Optional[BedrockAgentRuntimeClientConfig] = None,
    invocation_identifier: Optional[InvocationIdentifier] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
) -> Iterator[InvocationStepSummary]
Source code in docs_src/capo_bedrock_agent_runtime/_services/bedrock_agent_runtime.py
def iter_list_invocation_steps(
    self,
    session_identifier: "capo_bedrock_agent_runtime.types.session_identifier.SessionIdentifier",
    *,
    config_overrides: Optional[BedrockAgentRuntimeClientConfig] = 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,
) -> "Iterator[capo_bedrock_agent_runtime.types.invocation_step_summary.InvocationStepSummary]":
    _token = next_token
    while True:
        _response = 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