Урок из полного доступа, первые уроки курса бесплатно Официальный курс OpenAI Academy на русском
Урок 65 · Текст · ~5 мин

Structured Outputs в мультиагентных системах

Урок 65 из 303 курса «OpenAI Cookbook»: официальный курс OpenAI Academy (ОпенАИ) на русском языке. Урок входит в платный доступ; первые уроки курса бесплатно.

О чём урок

In this cookbook, we will explore how to use Structured Outputs to build multi-agent systems.

Structured Outputs is a new capability that builds upon JSON mode and function calling to enforce a strict schema in a model output.

By using the new parameter strict: true, we are able to guarantee the response abides by a provided schema.

To demonstrate the power of this feature, we will use it to build a multi-agent system.

When using function calling, if the number of functions (or tools) increases, the performance may suffer.

To mitigate this, we can logically group the tools together and have specialized "agents" that are able to solve specific tasks or sub-tasks, which will increase the overall system performance.

The use case we will tackle is a data analysis task.

Let's first set up our 4-agents system:

  1. Triaging agent: Decides which agent(s) to call
  2. Data pre-processing Agent: Prepares data for analysis - for example by cleaning it up
  3. Data Analysis Agent: Performs analysis on the data
  4. Data Visualization Agent: Visualizes the output of the analysis to extract insights

We will start by defining the system prompts for each of these agents.

We will then define the tools for each agent.

Apart from the triaging agent, each agent will be equipped with tools specific to their role:

  1. Clean data
  2. Transform data
  3. Aggregate data
  1. Statistical analysis
  2. Correlation analysis
  3. Regression Analysis
  1. Create bar chart
  2. Create line chart
  3. Create pie chart

План урока

  1. Why build a Multi-Agent System?
  2. Environment set up
  3. Agents set up
  4. Data pre-processing agent
  5. Data analysis agent
  6. Data visualization agent

Урок входит в полный доступ. Полный текст и видео открываются после оплаты. Первые уроки каждого курса бесплатны.

Откройте полный доступ

Вы прошли бесплатные уроки. Выберите тариф, чтобы продолжить обучение.

Курсы OpenAI 1 490 ₽ Разовый платёж, навсегда
  • Все курсы от OpenAI (1 шт.)
  • Именной сертификат по каждому пройденному курсу
Оплатить
Полный доступ 4 900 ₽ Разовый платёж, навсегда
  • Все 77 курсов от 11 AI-провайдеров
  • Библиотека промптов и новые курсы
Оплатить

Безопасная оплата через Robokassa: СБП, карты, электронные кошельки. Доступ откроется в этом браузере и придёт письмом. Уже оплатили? Восстановить доступ

Полезные гиды