list_chats
async
¶
list_chats(
agent_space_id: AgentSpaceIdentifier,
*,
config_overrides: Optional[AsyncDevOpsAgentClientConfig] = None,
user_id: Optional[ResourceId] = None,
max_results: Optional[int] = None,
next_token: Optional[str] = None,
archive_status: Optional[ChatArchiveStatus] = 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
-
archive_status(Optional[ChatArchiveStatus], default:None) –The archive status to filter by. Use this parameter to list only archived chat executions or only active ones.
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/async_dev_ops_agent.py
1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 | |