# Dostrajanie do wywoływania funkcji i narzędzi

EN: **Function-calling and tool-use fine-tuning** · id `toolcallingft` · aliases: function-calling fine-tuning, tool-use fine-tuning, dostrajanie do wywoływania funkcji, dostrajanie do używania narzędzi

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [Trenowanie i dostrajanie](https://aiatlasgraph.com/t/training.md) › [Post-training](https://aiatlasgraph.com/t/posttraining.md) › [SFT / instruction tuning](https://aiatlasgraph.com/t/sft.md) › Dostrajanie do wywoływania funkcji i narzędzi

## Description

- PL: Dostrajanie modelu na przykładach, w których odpowiedzią jest poprawne, ustrukturyzowane wywołanie narzędzia z argumentami.
- EN: Fine-tuning a model on examples whose answer is a correct, structured tool call with arguments.

## In one sentence

- PL: Uczenie modelu, kiedy i jak poprosić o pomoc zewnętrzny program, na przykład kalkulator, wyszukiwarkę albo kalendarz.
- EN: Teaching a model when and how to ask an outside program for help, such as a calculator, a search engine or a calendar.

## Problem it solves

- PL: Model zmyśla wyniki obliczeń i fakty albo wywołuje programy z błędnymi danymi, przez co automatyzacja się sypie.
- EN: A model invents calculations and facts, or calls programs with wrong inputs, so automations keep breaking.

## What it does

- PL: Jak szkolenie nowej osoby w recepcji: uczy się, w którym momencie zajrzeć do grafiku i jak poprawnie wypełnić formularz rezerwacji.
- EN: Like training a new receptionist: they learn when to check the schedule and how to fill in the booking form correctly.

## Everyday example

- PL: Asystent w aplikacji bankowej sam sprawdza saldo w systemie, zamiast zgadywać kwotę na podstawie rozmowy.
- EN: An assistant in a banking app looks up the balance in the system instead of guessing the amount from the conversation.

## This concerns you if you…

- PL: chcesz, żeby model obsługiwał twoje własne systemy
- PL: mały model myli nazwy pól i argumentów
- PL: budujesz agenta, który wykonuje działania
- EN: want a model to operate your own systems
- EN: find a small model mixes up field and argument names
- EN: build an agent that takes actions

## Keywords

Toolformer · APIGen · xLAM · Berkeley Function-Calling Leaderboard · JSON schema · parallel function calling · ToolBench

## How it works

- PL: Dane zawierają schematy narzędzi (zwykle JSON), zapytania i wzorcowe wywołania, często z wynikami narzędzi w kolejnych turach. Przykłady bywają generowane i sprawdzane automatycznie: format, faktyczne wykonanie, zgodność z intencją. Model uczy się przez SFT lub RL na wywołaniach i końcowej odpowiedzi.
- EN: Data holds tool schemas (usually JSON), queries and reference calls, often with tool results in later turns. Examples are frequently generated and checked automatically: format, actual execution, match with intent. The model learns via SFT or RL on the calls and final answer.

## Limits

- PL: Model przyswaja schematy widziane w treningu i słabiej uogólnia na nowe API. Trudno nauczyć go, kiedy nie wywoływać narzędzia; błędne wywołania w danych się utrwalają. Format musi zgadzać się z szablonem czatu używanym przy wdrożeniu.
- EN: The model absorbs schemas seen in training and generalises less well to new APIs. Teaching when not to call a tool is hard; faulty calls in data get reinforced. The format must match the chat template used in deployment.

## Key terms

- PL: **function call**: Ustrukturyzowane polecenie z nazwą funkcji i argumentami do wykonania.
- PL: **schemat narzędzia**: Opis narzędzia: nazwa, parametry i ich typy, zwykle w JSON.
- PL: **wywołania równoległe**: Kilka wywołań narzędzi wygenerowanych w jednej odpowiedzi.
- EN: **function call**: A structured command with a function name and arguments to execute.
- EN: **tool schema**: A tool's description: name, parameters and types, usually in JSON.
- EN: **parallel calls**: Several tool calls generated within one response.

## Know first

- [Narzędzia i integracje (Tool use and integration)](https://aiatlasgraph.com/t/tools.md)
- [Structured outputs i walidacja (Structured outputs and validation)](https://aiatlasgraph.com/t/structured.md)

## Related topics

Untyped, symmetric "see also" links.

- [Syntetyczne trajektorie i dane wywołań narzędzi dla agentów (Synthetic agent trajectories and tool-use data)](https://aiatlasgraph.com/t/agenttrajectories.md)

## Sources

- [APIGen: Automated Pipeline for Generating Verifiable and Diverse Function-Calling Datasets](<https://arxiv.org/abs/2406.18518>) `liu-2024-apigen` · by Zuxin Liu, Thai Hoang, Jianguo Zhang, Ming Zhu, Tian Lan, Shirley Kokane, Juntao Tan, Weiran Yao, Zhiwei Liu, Yihao Feng, Rithesh Murthy, Liangwei Yang, Silvio Savarese, Juan Carlos Niebles, Huan Wang, Shelby Heinecke, Caiming Xiong
- [Toolformer: Language Models Can Teach Themselves to Use Tools](<https://arxiv.org/abs/2302.04761>) `schick-2023-toolformer` · by Timo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Luke Zettlemoyer, Nicola Cancedda, Thomas Scialom

---

AI Atlas revision 122 (2026-10-30) · HTML: https://aiatlasgraph.com/t/toolcallingft · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
