Paginators#
Index > AgentsforBedrockRuntime > Paginators
Auto-generated documentation for AgentsforBedrockRuntime type annotations stubs module mypy-boto3-bedrock-agent-runtime.
GetAgentMemoryPaginator#
Type annotations and code completion for boto3.client("bedrock-agent-runtime").get_paginator("get_agent_memory")
.
boto3 documentation
# GetAgentMemoryPaginator usage example
from boto3.session import Session
from mypy_boto3_bedrock_agent_runtime.paginator import GetAgentMemoryPaginator
def get_get_agent_memory_paginator() -> GetAgentMemoryPaginator:
return Session().client("bedrock-agent-runtime").get_paginator("get_agent_memory")
# GetAgentMemoryPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_bedrock_agent_runtime.paginator import GetAgentMemoryPaginator
session = Session()
client = Session().client("bedrock-agent-runtime") # (1)
paginator: GetAgentMemoryPaginator = client.get_paginator("get_agent_memory") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: AgentsforBedrockRuntimeClient
- paginator: GetAgentMemoryPaginator
- item: GetAgentMemoryResponseTypeDef
paginate#
Type annotations and code completion for GetAgentMemoryPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
agentAliasId: str,
agentId: str,
memoryId: str,
memoryType: MemoryTypeType, # (1)
PaginationConfig: PaginatorConfigTypeDef = ..., # (2)
) -> _PageIterator[GetAgentMemoryResponseTypeDef]: # (3)
...
# paginate method usage example with argument unpacking
kwargs: GetAgentMemoryRequestGetAgentMemoryPaginateTypeDef = { # (1)
"agentAliasId": ...,
"agentId": ...,
"memoryId": ...,
"memoryType": ...,
}
parent.paginate(**kwargs)
RetrievePaginator#
Type annotations and code completion for boto3.client("bedrock-agent-runtime").get_paginator("retrieve")
.
boto3 documentation
# RetrievePaginator usage example
from boto3.session import Session
from mypy_boto3_bedrock_agent_runtime.paginator import RetrievePaginator
def get_retrieve_paginator() -> RetrievePaginator:
return Session().client("bedrock-agent-runtime").get_paginator("retrieve")
# RetrievePaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_bedrock_agent_runtime.paginator import RetrievePaginator
session = Session()
client = Session().client("bedrock-agent-runtime") # (1)
paginator: RetrievePaginator = client.get_paginator("retrieve") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: AgentsforBedrockRuntimeClient
- paginator: RetrievePaginator
- item: RetrieveResponseTypeDef
paginate#
Type annotations and code completion for RetrievePaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
knowledgeBaseId: str,
retrievalQuery: KnowledgeBaseQueryTypeDef, # (1)
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationPaginatorTypeDef = ..., # (2)
PaginationConfig: PaginatorConfigTypeDef = ..., # (3)
) -> _PageIterator[RetrieveResponseTypeDef]: # (4)
...
- See KnowledgeBaseQueryTypeDef
- See KnowledgeBaseRetrievalConfigurationPaginatorTypeDef
- See PaginatorConfigTypeDef
- See RetrieveResponseTypeDef
# paginate method usage example with argument unpacking
kwargs: RetrieveRequestRetrievePaginateTypeDef = { # (1)
"knowledgeBaseId": ...,
"retrievalQuery": ...,
}
parent.paginate(**kwargs)