Skip to content

Commit cf9b008

Browse files
committed
Updated: 2026-01-16
1 parent 530e439 commit cf9b008

10 files changed

Lines changed: 674 additions & 763 deletions

File tree

.openapi-generator/FILES

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
.travis.yml
66
README.md
77
docs/AIAgentsApi.md
8-
docs/AIModelsApi.md
98
docs/APIKeysApi.md
109
docs/AccountApi.md
1110
docs/AddBalancerToProject200Response.md
@@ -533,7 +532,6 @@ test/test_agent_model_settings.py
533532
test/test_agent_settings.py
534533
test/test_agent_settings_widget.py
535534
test/test_ai_agents_api.py
536-
test/test_ai_models_api.py
537535
test/test_api_key.py
538536
test/test_api_keys_api.py
539537
test/test_app.py
@@ -991,7 +989,6 @@ timeweb_cloud_api/__init__.py
991989
timeweb_cloud_api/api/__init__.py
992990
timeweb_cloud_api/api/account_api.py
993991
timeweb_cloud_api/api/ai_agents_api.py
994-
timeweb_cloud_api/api/ai_models_api.py
995992
timeweb_cloud_api/api/api_keys_api.py
996993
timeweb_cloud_api/api/apps_api.py
997994
timeweb_cloud_api/api/balancers_api.py

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,10 @@ Class | Method | HTTP request | Description
245245
*AIAgentsApi* | [**get_agent**](docs/AIAgentsApi.md#get_agent) | **GET** /api/v1/cloud-ai/agents/{id} | Получение AI агента
246246
*AIAgentsApi* | [**get_agent_statistics**](docs/AIAgentsApi.md#get_agent_statistics) | **GET** /api/v1/cloud-ai/agents/{id}/statistic | Получение статистики использования токенов агента
247247
*AIAgentsApi* | [**get_agents**](docs/AIAgentsApi.md#get_agents) | **GET** /api/v1/cloud-ai/agents | Получение списка AI агентов
248+
*AIAgentsApi* | [**get_agents_token_packages**](docs/AIAgentsApi.md#get_agents_token_packages) | **GET** /api/v1/cloud-ai/token-packages/agents | Получение списка пакетов токенов для агентов
249+
*AIAgentsApi* | [**get_knowledgebases_token_packages**](docs/AIAgentsApi.md#get_knowledgebases_token_packages) | **GET** /api/v1/cloud-ai/token-packages/knowledge-bases | Получение списка пакетов токенов для баз знаний
250+
*AIAgentsApi* | [**get_models**](docs/AIAgentsApi.md#get_models) | **GET** /api/v1/cloud-ai/models | Получение списка моделей
248251
*AIAgentsApi* | [**update_agent**](docs/AIAgentsApi.md#update_agent) | **PATCH** /api/v1/cloud-ai/agents/{id} | Обновление AI агента
249-
*AIModelsApi* | [**get_agents_token_packages**](docs/AIModelsApi.md#get_agents_token_packages) | **GET** /api/v1/cloud-ai/token-packages/agents | Получение списка пакетов токенов для агентов
250-
*AIModelsApi* | [**get_knowledgebases_token_packages**](docs/AIModelsApi.md#get_knowledgebases_token_packages) | **GET** /api/v1/cloud-ai/token-packages/knowledge-bases | Получение списка пакетов токенов для баз знаний
251-
*AIModelsApi* | [**get_models**](docs/AIModelsApi.md#get_models) | **GET** /api/v1/cloud-ai/models | Получение списка моделей
252252
*APIKeysApi* | [**create_token**](docs/APIKeysApi.md#create_token) | **POST** /api/v1/auth/api-keys | Создание токена
253253
*APIKeysApi* | [**delete_token**](docs/APIKeysApi.md#delete_token) | **DELETE** /api/v1/auth/api-keys/{token_id} | Удалить токен
254254
*APIKeysApi* | [**get_tokens**](docs/APIKeysApi.md#get_tokens) | **GET** /api/v1/auth/api-keys | Получение списка выпущенных токенов

docs/AIAgentsApi.md

Lines changed: 237 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Method | HTTP request | Description
1010
[**get_agent**](AIAgentsApi.md#get_agent) | **GET** /api/v1/cloud-ai/agents/{id} | Получение AI агента
1111
[**get_agent_statistics**](AIAgentsApi.md#get_agent_statistics) | **GET** /api/v1/cloud-ai/agents/{id}/statistic | Получение статистики использования токенов агента
1212
[**get_agents**](AIAgentsApi.md#get_agents) | **GET** /api/v1/cloud-ai/agents | Получение списка AI агентов
13+
[**get_agents_token_packages**](AIAgentsApi.md#get_agents_token_packages) | **GET** /api/v1/cloud-ai/token-packages/agents | Получение списка пакетов токенов для агентов
14+
[**get_knowledgebases_token_packages**](AIAgentsApi.md#get_knowledgebases_token_packages) | **GET** /api/v1/cloud-ai/token-packages/knowledge-bases | Получение списка пакетов токенов для баз знаний
15+
[**get_models**](AIAgentsApi.md#get_models) | **GET** /api/v1/cloud-ai/models | Получение списка моделей
1316
[**update_agent**](AIAgentsApi.md#update_agent) | **PATCH** /api/v1/cloud-ai/agents/{id} | Обновление AI агента
1417

1518

@@ -504,6 +507,240 @@ This endpoint does not need any parameter.
504507

505508
[[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)
506509

510+
# **get_agents_token_packages**
511+
> GetAgentsTokenPackages200Response get_agents_token_packages()
512+
513+
Получение списка пакетов токенов для агентов
514+
515+
Чтобы получить список доступных пакетов токенов для AI агентов, отправьте GET-запрос на `/api/v1/cloud-ai/token-packages/agents`. Тело ответа будет представлять собой объект JSON с ключом `token_packages`.
516+
517+
### Example
518+
519+
* Bearer (JWT) Authentication (Bearer):
520+
```python
521+
import time
522+
import os
523+
import timeweb_cloud_api
524+
from timeweb_cloud_api.models.get_agents_token_packages200_response import GetAgentsTokenPackages200Response
525+
from timeweb_cloud_api.rest import ApiException
526+
from pprint import pprint
527+
528+
# Defining the host is optional and defaults to https://api.timeweb.cloud
529+
# See configuration.py for a list of all supported configuration parameters.
530+
configuration = timeweb_cloud_api.Configuration(
531+
host = "https://api.timeweb.cloud"
532+
)
533+
534+
# The client must configure the authentication and authorization parameters
535+
# in accordance with the API server security policy.
536+
# Examples for each auth method are provided below, use the example that
537+
# satisfies your auth use case.
538+
539+
# Configure Bearer authorization (JWT): Bearer
540+
configuration = timeweb_cloud_api.Configuration(
541+
access_token = os.environ["BEARER_TOKEN"]
542+
)
543+
544+
# Enter a context with an instance of the API client
545+
with timeweb_cloud_api.ApiClient(configuration) as api_client:
546+
# Create an instance of the API class
547+
api_instance = timeweb_cloud_api.AIAgentsApi(api_client)
548+
549+
try:
550+
# Получение списка пакетов токенов для агентов
551+
api_response = api_instance.get_agents_token_packages()
552+
print("The response of AIAgentsApi->get_agents_token_packages:\n")
553+
pprint(api_response)
554+
except Exception as e:
555+
print("Exception when calling AIAgentsApi->get_agents_token_packages: %s\n" % e)
556+
```
557+
558+
559+
### Parameters
560+
This endpoint does not need any parameter.
561+
562+
### Return type
563+
564+
[**GetAgentsTokenPackages200Response**](GetAgentsTokenPackages200Response.md)
565+
566+
### Authorization
567+
568+
[Bearer](../README.md#Bearer)
569+
570+
### HTTP request headers
571+
572+
- **Content-Type**: Not defined
573+
- **Accept**: application/json
574+
575+
### HTTP response details
576+
| Status code | Description | Response headers |
577+
|-------------|-------------|------------------|
578+
**200** | Объект JSON c ключами `token_packages` и `meta` | - |
579+
**400** | | - |
580+
**401** | | - |
581+
**403** | | - |
582+
**404** | | - |
583+
**429** | | - |
584+
**500** | | - |
585+
586+
[[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)
587+
588+
# **get_knowledgebases_token_packages**
589+
> GetAgentsTokenPackages200Response get_knowledgebases_token_packages()
590+
591+
Получение списка пакетов токенов для баз знаний
592+
593+
Чтобы получить список доступных пакетов токенов для баз знаний, отправьте GET-запрос на `/api/v1/cloud-ai/token-packages/knowledge-bases`. Тело ответа будет представлять собой объект JSON с ключом `token_packages`.
594+
595+
### Example
596+
597+
* Bearer (JWT) Authentication (Bearer):
598+
```python
599+
import time
600+
import os
601+
import timeweb_cloud_api
602+
from timeweb_cloud_api.models.get_agents_token_packages200_response import GetAgentsTokenPackages200Response
603+
from timeweb_cloud_api.rest import ApiException
604+
from pprint import pprint
605+
606+
# Defining the host is optional and defaults to https://api.timeweb.cloud
607+
# See configuration.py for a list of all supported configuration parameters.
608+
configuration = timeweb_cloud_api.Configuration(
609+
host = "https://api.timeweb.cloud"
610+
)
611+
612+
# The client must configure the authentication and authorization parameters
613+
# in accordance with the API server security policy.
614+
# Examples for each auth method are provided below, use the example that
615+
# satisfies your auth use case.
616+
617+
# Configure Bearer authorization (JWT): Bearer
618+
configuration = timeweb_cloud_api.Configuration(
619+
access_token = os.environ["BEARER_TOKEN"]
620+
)
621+
622+
# Enter a context with an instance of the API client
623+
with timeweb_cloud_api.ApiClient(configuration) as api_client:
624+
# Create an instance of the API class
625+
api_instance = timeweb_cloud_api.AIAgentsApi(api_client)
626+
627+
try:
628+
# Получение списка пакетов токенов для баз знаний
629+
api_response = api_instance.get_knowledgebases_token_packages()
630+
print("The response of AIAgentsApi->get_knowledgebases_token_packages:\n")
631+
pprint(api_response)
632+
except Exception as e:
633+
print("Exception when calling AIAgentsApi->get_knowledgebases_token_packages: %s\n" % e)
634+
```
635+
636+
637+
### Parameters
638+
This endpoint does not need any parameter.
639+
640+
### Return type
641+
642+
[**GetAgentsTokenPackages200Response**](GetAgentsTokenPackages200Response.md)
643+
644+
### Authorization
645+
646+
[Bearer](../README.md#Bearer)
647+
648+
### HTTP request headers
649+
650+
- **Content-Type**: Not defined
651+
- **Accept**: application/json
652+
653+
### HTTP response details
654+
| Status code | Description | Response headers |
655+
|-------------|-------------|------------------|
656+
**200** | Объект JSON c ключами `token_packages` и `meta` | - |
657+
**400** | | - |
658+
**401** | | - |
659+
**403** | | - |
660+
**404** | | - |
661+
**429** | | - |
662+
**500** | | - |
663+
664+
[[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)
665+
666+
# **get_models**
667+
> GetModels200Response get_models()
668+
669+
Получение списка моделей
670+
671+
Чтобы получить список доступных AI моделей, отправьте GET-запрос на `/api/v1/cloud-ai/models`. Тело ответа будет представлять собой объект JSON с ключом `models`.
672+
673+
### Example
674+
675+
* Bearer (JWT) Authentication (Bearer):
676+
```python
677+
import time
678+
import os
679+
import timeweb_cloud_api
680+
from timeweb_cloud_api.models.get_models200_response import GetModels200Response
681+
from timeweb_cloud_api.rest import ApiException
682+
from pprint import pprint
683+
684+
# Defining the host is optional and defaults to https://api.timeweb.cloud
685+
# See configuration.py for a list of all supported configuration parameters.
686+
configuration = timeweb_cloud_api.Configuration(
687+
host = "https://api.timeweb.cloud"
688+
)
689+
690+
# The client must configure the authentication and authorization parameters
691+
# in accordance with the API server security policy.
692+
# Examples for each auth method are provided below, use the example that
693+
# satisfies your auth use case.
694+
695+
# Configure Bearer authorization (JWT): Bearer
696+
configuration = timeweb_cloud_api.Configuration(
697+
access_token = os.environ["BEARER_TOKEN"]
698+
)
699+
700+
# Enter a context with an instance of the API client
701+
with timeweb_cloud_api.ApiClient(configuration) as api_client:
702+
# Create an instance of the API class
703+
api_instance = timeweb_cloud_api.AIAgentsApi(api_client)
704+
705+
try:
706+
# Получение списка моделей
707+
api_response = api_instance.get_models()
708+
print("The response of AIAgentsApi->get_models:\n")
709+
pprint(api_response)
710+
except Exception as e:
711+
print("Exception when calling AIAgentsApi->get_models: %s\n" % e)
712+
```
713+
714+
715+
### Parameters
716+
This endpoint does not need any parameter.
717+
718+
### Return type
719+
720+
[**GetModels200Response**](GetModels200Response.md)
721+
722+
### Authorization
723+
724+
[Bearer](../README.md#Bearer)
725+
726+
### HTTP request headers
727+
728+
- **Content-Type**: Not defined
729+
- **Accept**: application/json
730+
731+
### HTTP response details
732+
| Status code | Description | Response headers |
733+
|-------------|-------------|------------------|
734+
**200** | Объект JSON c ключами `models` и `meta` | - |
735+
**400** | | - |
736+
**401** | | - |
737+
**403** | | - |
738+
**404** | | - |
739+
**429** | | - |
740+
**500** | | - |
741+
742+
[[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)
743+
507744
# **update_agent**
508745
> CreateAgent201Response update_agent(id, update_agent)
509746

0 commit comments

Comments
 (0)