Elffuss BraidHub

kikocis/continue public

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