list_chats
¶
list_chats(
agent_space_id: AgentSpaceIdentifier,
*,
config_overrides: Optional[DevOpsAgentClientConfig] = None,
user_id: Optional[ResourceId] = None,
max_results: Optional[int] = None,
next_token: Optional[str] = None,
) -> ListChatsResponse
Retrieves a paginated list of the user's recent chat executions
Parameters:
-
agent_space_id(AgentSpaceIdentifier) –The unique identifier for the agent space to list chats from.
-
user_id(Optional[ResourceId], default:None) –The user identifier to list chats for. This field is deprecated and will be ignored — the service resolves user identity from the authenticated session.
-
max_results(Optional[int], default:None) –Maximum number of results to return
-
next_token(Optional[str], default:None) –Token for pagination
Raises:
-
AccessDeniedException–Access to the requested resource is denied due to insufficient permissions.
-
ConflictException–The request conflicts with the current state of the resource.
-
ContentSizeExceededException–This exception is thrown when the content size exceeds the allowed limit.
-
InternalServerException–This exception is thrown when an unexpected error occurs in the processing of a request.
-
InvalidParameterException–One or more parameters provided in the request are invalid.
-
ResourceNotFoundException–The requested resource could not be found.
-
ServiceQuotaExceededException–The request would exceed the service quota limit.
-
ThrottlingException–The request was throttled due to too many requests. Please slow down and try again.
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_devops_agent/_services/dev_ops_agent.py
1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 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 | |