You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[**get_agent**](AIAgentsApi.md#get_agent) | **GET** /api/v1/cloud-ai/agents/{id} | Получение AI агента
11
11
[**get_agent_statistics**](AIAgentsApi.md#get_agent_statistics) | **GET** /api/v1/cloud-ai/agents/{id}/statistic | Получение статистики использования токенов агента
12
12
[**get_agents**](AIAgentsApi.md#get_agents) | **GET** /api/v1/cloud-ai/agents | Получение списка AI агентов
[**get_models**](AIAgentsApi.md#get_models) | **GET** /api/v1/cloud-ai/models | Получение списка моделей
13
16
[**update_agent**](AIAgentsApi.md#update_agent) | **PATCH** /api/v1/cloud-ai/agents/{id} | Обновление AI агента
14
17
15
18
@@ -504,6 +507,240 @@ This endpoint does not need any parameter.
504
507
505
508
[[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)
Чтобы получить список доступных пакетов токенов для 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:
**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)
Чтобы получить список доступных пакетов токенов для баз знаний, отправьте 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:
**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:
**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)
0 commit comments