]> git.giacomolli.uk - onechat/commit
Name the tool schemas of the prompt
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Sat, 7 Nov 2026 16:56:02 +0000 (13:56 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Sat, 7 Nov 2026 16:56:02 +0000 (13:56 -0300)
commita4cfb030bf949e2fc9cd0ddace9e33f24b791b18
tree84f800057ab3ee3b3f7dd4abfa915009a5fc8c32
parentec38dadaaf127d8bd2ffb72df450e8d3f5ac88c0
Name the tool schemas of the prompt

The function tools that every model call sends are promptTools, and
their schema helpers start with prompt too. The turns and the
compactions send the same prompt and tools, so the tools are a part of
the prompt, and agentTools read as the tools of an agent next to the
agent config. The parts of the prompt text, such as the task sentence
and the clause on the instructions, start with prompt as well.

The declarations of prompt.go already follow the order of the go-code
skill. The behavior does not change.

Issue: 947bddb
compactor.go
compactor_test.go
prompt.go
prompt_test.go
turn.go