Elffuss BraidHub

kikocis/continue public

9d8db5fc402e · 3.8 KiBRenderedRawPermalink
1# openapi-client
2API for Continue IDE to fetch assistants and other related information.
3These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains.
4
5
6This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
7
8- API version: 1.0.0
9- Package version: 1.0.0
10- Generator version: 7.12.0
11- Build package: org.openapitools.codegen.languages.PythonClientCodegen
12For more information, please visit [https://continue.dev](https://continue.dev)
13
14## Requirements.
15
16Python 3.8+
17
18## Installation & Usage
19### pip install
20
21If the python package is hosted on a repository, you can install directly using:
22
23```sh
24pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
25```
26(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
27
28Then import the package:
29```python
30import openapi_client
31```
32
33### Setuptools
34
35Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
36
37```sh
38python setup.py install --user
39```
40(or `sudo python setup.py install` to install the package for all users)
41
42Then import the package:
43```python
44import openapi_client
45```
46
47### Tests
48
49Execute `pytest` to run the tests.
50
51## Getting Started
52
53Please follow the [installation procedure](#installation--usage) and then run the following:
54
55```python
56
57import openapi_client
58from openapi_client.rest import ApiException
59from pprint import pprint
60
61# Defining the host is optional and defaults to https://api.continue.dev
62# See configuration.py for a list of all supported configuration parameters.
63configuration = openapi_client.Configuration(
64 host = "https://api.continue.dev"
65)
66
67# The client must configure the authentication and authorization parameters
68# in accordance with the API server security policy.
69# Examples for each auth method are provided below, use the example that
70# satisfies your auth use case.
71
72# Configure Bearer authorization: apiKeyAuth
73configuration = openapi_client.Configuration(
74 access_token = os.environ["BEARER_TOKEN"]
75)
76
77
78# Enter a context with an instance of the API client
79with openapi_client.ApiClient(configuration) as api_client:
80 # Create an instance of the API class
81 api_instance = openapi_client.DefaultApi(api_client)
82 always_use_proxy = 'always_use_proxy_example' # str | Whether to always use the Continue-managed proxy for model requests (optional)
83 organization_id = 'organization_id_example' # str | ID of the organization to scope assistants to. If not provided, personal assistants are returned. (optional)
84
85 try:
86 # List assistants for IDE
87 api_response = api_instance.list_assistants(always_use_proxy=always_use_proxy, organization_id=organization_id)
88 print("The response of DefaultApi->list_assistants:\n")
89 pprint(api_response)
90 except ApiException as e:
91 print("Exception when calling DefaultApi->list_assistants: %s\n" % e)
92
93```
94
95## Documentation for API Endpoints
96
97All URIs are relative to *https://api.continue.dev*
98
99Class | Method | HTTP request | Description
100------------ | ------------- | ------------- | -------------
101*DefaultApi* | [**list_assistants**](docs/DefaultApi.md#list_assistants) | **GET** /ide/list-assistants | List assistants for IDE
102
103
104## Documentation For Models
105
106 - [ListAssistants200ResponseInner](docs/ListAssistants200ResponseInner.md)
107 - [ListAssistants200ResponseInnerConfigResult](docs/ListAssistants200ResponseInnerConfigResult.md)
108 - [ListAssistants401Response](docs/ListAssistants401Response.md)
109 - [ListAssistants404Response](docs/ListAssistants404Response.md)
110
111
112<a id="documentation-for-authorization"></a>
113## Documentation For Authorization
114
115
116Authentication schemes defined for the API:
117<a id="apiKeyAuth"></a>
118### apiKeyAuth
119
120- **Type**: Bearer authentication
121
122
123## Author
124
125
126
127