Kod jako akcja agenta (wywoływanie narzędzi z kodu)

Code as action (programmatic tool calling) · id codeact · aliases: code actions, programmatic tool calling, kod jako akcja

Wyrażanie akcji agenta jako wykonywalnego kodu (zwykle Pythona), który wywołuje narzędzia, steruje przepływem i filtruje wyniki przed powrotem do modelu.

Expressing agent actions as executable code (usually Python) that calls tools, controls flow and filters results before they return to the model.

In one sentence

Zamiast wywoływać narzędzia po jednym, agent pisze krótki program, który sam je wywołuje, łączy wyniki i oddaje tylko podsumowanie.

Instead of calling tools one at a time, the agent writes a short program that calls them, combines the results and returns only a summary.

Problem it solves

Zadanie wymagające dziesiątek wywołań narzędzi ciągnie się długo, a surowe wyniki zapychają pamięć rozmowy.

A task needing dozens of tool calls drags on, and raw results clog the conversation's memory.

What it does

Przypomina napisanie makra w arkuszu zamiast klikania tej samej czynności sto razy.

It is like writing a spreadsheet macro instead of clicking the same action a hundred times.

Everyday example

Asystent ma sprawdzić wydatki dwudziestu pracowników; pisze pętlę, która pobiera dane każdego, i pokazuje tylko osoby powyżej limitu.

An assistant must check twenty employees' expenses; it writes a loop that fetches each one and shows only those over the limit.

This concerns you if you…

Sources