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