get_agent_memory
async
¶
get_agent_memory(
agent_id: AgentId,
agent_alias_id: AgentAliasId,
memory_type: MemoryType,
memory_id: MemoryId,
*,
config_overrides: Optional[AsyncBedrockAgentRuntimeClientConfig] = None,
next_token: Optional[NextToken] = None,
max_items: Optional[MaxResults] = None,
) -> GetAgentMemoryResponse
Gets the sessions stored in the memory of the agent.
Parameters:
-
next_token(Optional[NextToken], default:None) –If the total number of results is greater than the maxItems value provided in the request, enter the token returned in the
nextTokenfield in the response in this field to return the next batch of results. -
max_items(Optional[MaxResults], default:None) –The maximum number of items to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results. -
agent_id(AgentId) –The unique identifier of the agent to which the alias belongs.
-
agent_alias_id(AgentAliasId) –The unique identifier of an alias of an agent.
-
memory_type(MemoryType) –The type of memory.
-
memory_id(MemoryId) –The unique identifier of the memory.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions. Check your permissions and retry your request.
-
BadGatewayException–There was an issue with a dependency due to a server issue. Retry your request.
-
ConflictException–There was a conflict performing an operation. Resolve the conflict and retry your request.
-
DependencyFailedException–There was an issue with a dependency. Check the resource configurations and retry the request.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ResourceNotFoundException–The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
-
ServiceQuotaExceededException–The number of requests exceeds the service quota. Resubmit your request later.
-
ThrottlingException–The number of requests exceeds the limit. Resubmit your request later.
-
ValidationException–Input validation failed. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock_agent_runtime/_services/async_bedrock_agent_runtime.py
1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 | |