Elffuss BraidHub

kikocis/continue public

cfc91aa76b54 · 4.0 KiBSourceRawPermalink

openapi_client.DefaultApi

All URIs are relative to https://api.continue.dev

MethodHTTP requestDescription
list_assistantsGET /ide/list-assistantsList assistants for IDE

list_assistants

List[ListAssistants200ResponseInner] list_assistants(always_use_proxy=always_use_proxy, organization_id=organization_id)

List assistants for IDE

Returns a complete list of assistants available to the user, with their full configurations, icons, and other metadata needed by the IDE to display and use them.

This endpoint performs a full refresh of the list of assistants, including unrolling configurations and resolving secrets.

Example

import openapi_client
from openapi_client.models.list_assistants200_response_inner import ListAssistants200ResponseInner
from openapi_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.continue.dev
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
    host = "https://api.continue.dev"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: apiKeyAuth
configuration = openapi_client.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = openapi_client.DefaultApi(api_client)
    always_use_proxy = 'always_use_proxy_example' # str | Whether to always use the Continue-managed proxy for model requests (optional)
    organization_id = 'organization_id_example' # str | ID of the organization to scope assistants to. If not provided, personal assistants are returned. (optional)

    try:
        # List assistants for IDE
        api_response = api_instance.list_assistants(always_use_proxy=always_use_proxy, organization_id=organization_id)
        print("The response of DefaultApi->list_assistants:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling DefaultApi->list_assistants: %s\n" % e)

Parameters

NameTypeDescriptionNotes
always_use_proxystrWhether to always use the Continue-managed proxy for model requests[optional]
organization_idstrID of the organization to scope assistants to. If not provided, personal assistants are returned.[optional]

Return type

List[ListAssistants200ResponseInner]

Authorization

apiKeyAuth

HTTP request headers

HTTP response details

Status codeDescriptionResponse headers
200Successfully retrieved assistants-
401Unauthorized - Authentication failed-
404User not found-

[Back to top] [Back to API list] [Back to Model list] [Back to README]