SDK
class yandex_cloud_ml_sdk.YCloudML
The main class that needs to be instantiated to work with SDK.
tools: Tools
Domain for creating various tools for assistants and function calling
models: Models
Domain for working with models (inference and tuning)
files: Files
Domain for working with files (a part of the Asssistants API)
threads: Threads
Domain for working with threads (a part of the Assistants API)
assistants: Assistants
Domain for working with assistants (a part of the Assistants API)
runs: Runs
Domain for working with assistants’ runs (a part of the Assistants API)
search_api: SearchAPIDomain
Domain for working with Search API
search_indexes: SearchIndexes
Domain for working with search indexes (a part of the Assistants API)
datasets: Datasets
Domain for working with datasets
tuning: Tuning
Domain for working with tuning
batch: Batch
Domain for working with batch tasks
chat: Chat
Domain for working with Yandex Cloud OpenAI Compatible API_BaseSDK_URL.
__init__(*, folder_id=Undefined, endpoint=Undefined, auth=Undefined, retry_policy=Undefined, yc_profile=Undefined, service_map=Undefined, interceptors=Undefined, enable_server_data_logging=Undefined, verify=Undefined)
Construct a new asynchronous sdk instance.
|
Parameters |
|
setup_default_logging(log_level='INFO', log_format='[%(levelname)1.1s %(asctime)s %(name)s:%(lineno)d] %(message)s', date_format='%Y-%m-%d %H:%M:%S')
Sets up the default logging configuration.
Read more about log_levels, log_format, and date_format in Python documentation (logging)
|
Parameters |
|
|
Returns |
The instance of the SDK with logging configured. |
|
Return type |
- Models domain
- Assistants domain
- Assistants
- Assistant
- Assistant.update()
- Assistant.delete()
- Assistant.list_versions()
- Assistant.run()
- Assistant.run_stream()
- Assistant.max_prompt_tokens
- Assistant.name
- Assistant.description
- Assistant.created_by
- Assistant.created_at
- Assistant.updated_by
- Assistant.updated_at
- Assistant.expires_at
- Assistant.labels
- Assistant.expiration_config
- Assistant.model
- Assistant.instruction
- Assistant.prompt_truncation_options
- Assistant.tools
- Assistant.response_format
- Assistant.id
- Tools domain
- Files domain
- Threads domain
- Runs domain
- Runs
- Run
- Run.listen()
- Run.submit_tool_results()
- Run.cancel()
- Run.custom_max_prompt_tokens
- Run.get_result()
- Run.get_status()
- Run.wait()
- Run.id
- Run.assistant_id
- Run.thread_id
- Run.created_by
- Run.created_at
- Run.labels
- Run.custom_temperature
- Run.custom_max_tokens
- Run.custom_prompt_truncation_options
- Run.custom_response_format
- Search indexes domain
- SearchIndexes
- SearchIndex
- SearchIndex.update()
- SearchIndex.delete()
- SearchIndex.get_file()
- SearchIndex.list_files()
- SearchIndex.add_files_deferred()
- SearchIndex.folder_id
- SearchIndex.name
- SearchIndex.description
- SearchIndex.created_by
- SearchIndex.created_at
- SearchIndex.updated_by
- SearchIndex.updated_at
- SearchIndex.expires_at
- SearchIndex.labels
- SearchIndex.index_type
- SearchIndex.expiration_config
- SearchIndex.id
- Search API domain
- Datasets domain
- Datasets
- Datasets.get()
- Datasets.list()
- Datasets.list_upload_formats()
- Datasets.list_upload_schemas()
- Datasets.completions
- Datasets.draft_from_path()
- Datasets.text_classifiers_binary
- Datasets.text_classifiers_multiclass
- Datasets.text_classifiers_multilabel
- Datasets.text_embeddings_pair
- Datasets.text_embeddings_triplet
- Dataset
- Dataset.update()
- Dataset.delete()
- Dataset.list_upload_formats()
- Dataset.download()
- Dataset.read()
- Dataset.folder_id
- Dataset.name
- Dataset.description
- Dataset.metadata
- Dataset.created_by
- Dataset.created_at
- Dataset.updated_at
- Dataset.labels
- Dataset.allow_data_logging
- Dataset.status
- Dataset.task_type
- Dataset.rows
- Dataset.size_bytes
- Dataset.validation_errors
- Dataset.id
- DatasetDraft
- Datasets
- Tuning domain
- Batch domain
- Chat domain