Elffuss BraidHub

kikocis/continue public

ed46f5b1432f · 3.5 KiBRenderedRawPermalink
1# openapi_client.DefaultApi
2
3All URIs are relative to *https://api.continue.dev*
4
5Method | HTTP request | Description
6------------- | ------------- | -------------
7[**list_assistants**](DefaultApi.md#list_assistants) | **GET** /ide/list-assistants | List assistants for IDE
8
9
10# **list_assistants**
11> List[ListAssistants200ResponseInner] list_assistants(always_use_proxy=always_use_proxy, organization_id=organization_id)
12
13List assistants for IDE
14
15Returns a complete list of assistants available to the user, with their full configurations,
16icons, and other metadata needed by the IDE to display and use them.
17
18This endpoint performs a full refresh of the list of assistants, including unrolling
19configurations and resolving secrets.
20
21
22### Example
23
24* Bearer Authentication (apiKeyAuth):
25
26```python
27import openapi_client
28from openapi_client.models.list_assistants200_response_inner import ListAssistants200ResponseInner
29from openapi_client.rest import ApiException
30from pprint import pprint
31
32# Defining the host is optional and defaults to https://api.continue.dev
33# See configuration.py for a list of all supported configuration parameters.
34configuration = openapi_client.Configuration(
35 host = "https://api.continue.dev"
36)
37
38# The client must configure the authentication and authorization parameters
39# in accordance with the API server security policy.
40# Examples for each auth method are provided below, use the example that
41# satisfies your auth use case.
42
43# Configure Bearer authorization: apiKeyAuth
44configuration = openapi_client.Configuration(
45 access_token = os.environ["BEARER_TOKEN"]
46)
47
48# Enter a context with an instance of the API client
49with openapi_client.ApiClient(configuration) as api_client:
50 # Create an instance of the API class
51 api_instance = openapi_client.DefaultApi(api_client)
52 always_use_proxy = 'always_use_proxy_example' # str | Whether to always use the Continue-managed proxy for model requests (optional)
53 organization_id = 'organization_id_example' # str | ID of the organization to scope assistants to. If not provided, personal assistants are returned. (optional)
54
55 try:
56 # List assistants for IDE
57 api_response = api_instance.list_assistants(always_use_proxy=always_use_proxy, organization_id=organization_id)
58 print("The response of DefaultApi->list_assistants:\n")
59 pprint(api_response)
60 except Exception as e:
61 print("Exception when calling DefaultApi->list_assistants: %s\n" % e)
62```
63
64
65
66### Parameters
67
68
69Name | Type | Description | Notes
70------------- | ------------- | ------------- | -------------
71 **always_use_proxy** | **str**| Whether to always use the Continue-managed proxy for model requests | [optional]
72 **organization_id** | **str**| ID of the organization to scope assistants to. If not provided, personal assistants are returned. | [optional]
73
74### Return type
75
76[**List[ListAssistants200ResponseInner]**](ListAssistants200ResponseInner.md)
77
78### Authorization
79
80[apiKeyAuth](../README.md#apiKeyAuth)
81
82### HTTP request headers
83
84 - **Content-Type**: Not defined
85 - **Accept**: application/json
86
87### HTTP response details
88
89| Status code | Description | Response headers |
90|-------------|-------------|------------------|
91**200** | Successfully retrieved assistants | - |
92**401** | Unauthorized - Authentication failed | - |
93**404** | User not found | - |
94
95[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
96