зеркало из
1
0
Форкнуть 0
This commit is contained in:
jhakulin 2024-09-14 12:28:20 -07:00
Родитель 2e2a80e11e
Коммит 2bf65fefba
1 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -10,7 +10,7 @@ urlFragment: model-assistants-samples
# Samples for Azure AI Assistants client library for Python
Samples in this folder use the a synchronous clients. Samples in the subfolder `async_samples` use the asynchronous clients. The concepts are similar, you can easily modify any of the synchronous samples to asynchronous.
Samples in this folder use the synchronous clients. Samples in the subfolder `async_samples` use the asynchronous clients. The concepts are similar, you can easily modify any of the synchronous samples to asynchronous.
## Prerequisites
@ -54,12 +54,12 @@ python sample_assistant_basics.py
Here is the list of available samples:
- `sample_assistant_basics.py`
- `sample_assistant_code_interpreter.py`
- `sample_assistant_file_search.py`
- `sample_assistant_functions.py`
- `sample_assistant_run_with_toolset.py`
- `sample_assistant_stream_iteration.py`
- `sample_assistant_basics.py`: This sample demonstrates how to use basic assistant operations from the Azure Assistants service using a synchronous client. It includes creating an assistant, sending messages, processing runs, and polling for the completion status.
- `sample_assistant_code_interpreter.py`: This sample shows how to use the Azure AI Assistants client for interpreting and processing code. It demonstrates uploading a file, creating a code interpreter tool, and generating charts based on data analysis.
- `sample_assistant_file_search.py`: This sample demonstrates how to use the Assistants client for file search and processing. It includes uploading a file, creating a vector store, and querying information about specific content present in the files.
- `sample_assistant_functions.py`: This sample showcases how to enhance assistant operations with user-defined functions. It covers creating an assistant with function tools, processing function calls, and handling tool outputs.
- `sample_assistant_run_with_toolset.py`: This sample illustrates how to use multiple tools in a single run of the Assistants client. It includes creating an assistant with various tools such as function tools and code interpreter tools, and managing threaded communication.
- `sample_assistant_stream_iteration.py`: This sample demonstrates how to use the streaming capabilities of the Azure Assistants service. It covers creating an assistant, sending messages, and handling streaming events to process responses in real time.
## Samples