ollie/agent
Ollie Agent 7bbdbd1f7f agent: refresh tool definitions from server on every turn
Previously the agent loop used a frozen Tools slice from BuildRuntime.
When tool_load promoted a tool, it was added to the registry but the
runtime's Tools slice was never updated — the LLM never saw the new
tool's schema until a session rebuild.

Fix: on each turn, call ToolServer.ListTools() to get the current set
of built-in + dynamically loaded tools, then convert to backend.Tool.
This makes tool_load behave identically to a built-in: the schema is
injected into the tool definitions on the very next turn.
2026-07-30 20:37:35 +02:00
..
agent.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
agent_config.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
build_runtime.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
commands.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
compaction.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
complete.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
config_paths.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
cost.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
fifo.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
fifo_test.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
history.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
hooks.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
loop.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
new.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
prompt_resolver.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
runtime.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
state.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00
turn.go agent: refresh tool definitions from server on every turn 2026-07-30 20:37:35 +02:00
usage_log.go flatten: absorb submodules into single Go module 2026-07-30 18:57:51 +02:00