Перейти к содержимому
Атлас ИИ

Вызов инструментов и функций

Пусть модель выберет API и заполнит аргументы

Агенты и работа с инструментамиСредний #35
входТекстДействие

Полный текст статьи представлен на английском; заголовок и аннотация локализованы.

ЧТО ЭТО ЗА ВОЗМОЖНОСТЬ

Takes a user request and a list of available tools — names, descriptions, argument schemas — and outputs a structured call such as get_weather with city set to Shanghai. The model executes nothing itself; it selects a tool and assembles arguments, while the actual call is made by external code whose result is fed back for further reasoning.

Как это устроено

Fine-tuning on many examples of when to call, which tool to use and what arguments look like teaches the model to emit a call when it needs external information or action; at inference the tool definitions go into the prompt and the output is constrained to a valid structure. With many tools, retrieval first narrows the candidates, and a multi-turn loop that feeds results back handles complex tasks.

Примеры продуктов

10

LangChain

2022
LangChain

Связывание моделей, инструментов и поиска

Инструмент Открытый исходный код

GPT-4o

2024
OpenAI

Универсальная модель с нативной мультимодальностью: текст, изображение и звук через один вход

Модель Закрытый
ТекстИзображениеАудиоТекстАудио

Claude

2023
Anthropic

Универсальная диалоговая модель, известная длинным контекстом и выравниванием по безопасности

Модель Закрытый
ТекстИзображениеТекст

Gemini

2023
Google DeepMind

Универсальная модель с нативной мультимодальностью, рассчитанная на очень длинный контекст

Модель Закрытый
ТекстИзображениеАудиоВидеоТекст

Qwen

2023
Alibaba (Qwen)

Семейство с открытыми весами, охватывающее разные размеры и мультимодальные версии

Модель Открытые веса
ТекстИзображениеТекст

MiniMax-M

2025
MiniMax

Модель рассуждений с открытыми весами, гибридным вниманием и контекстом в миллион токенов

Модель Открытые веса
ТекстТекст

Command R

2024
Cohere

Коммерческая модель, рассчитанная на дополнение поиском и вызов инструментов

Модель Открытые веса
ТекстТекст

Mistral Large

2024
Mistral AI

Флагманская коммерческая модель европейской лаборатории открытых весов

Модель Закрытый
ТекстТекст

GLM

2023
Zhipu AI

Китайская универсальная модель, начавшая с авторегрессивного заполнения пропусков

Модель Закрытый
ТекстТекст

Llama

2023
Meta AI (FAIR)

Семейство моделей, сделавшее открытые веса массовым путём

Модель Открытые веса
ТекстТекст

Связанные организации

Типичное применение

  • Fetching live data such as weather, prices or stock
  • Performing business actions such as orders and messages
  • Calling calculators, search and code executors
  • Chaining several APIs for a composite task

Как её оценивают

Function-selection accuracy
Share of requests where the right tool was chosen
Exact argument match
Share with arguments exactly matching the reference
End-to-end task success
Whether the task completes once tools actually run

Границы и трудности

  • Slightly complex argument shapes — nested objects, arrays, optional fields — are easily filled wrongly
  • As the tool list grows, wrong selections rise sharply, and similar-purpose tools are the most confusable
  • Recovery after a failed call is unreliable, and the model often loops on the error instead of adapting

Концепции в основе