feat: add read_file tool

This commit is contained in:
2026-05-31 12:11:09 -05:00
parent 3f0d9a80c7
commit 0dc0f7eb53
5 changed files with 49 additions and 10 deletions
+4 -1
View File
@@ -117,6 +117,7 @@ async function runOllamaLoop(ctx: AgentRunContext): Promise<AgentResult> {
model,
messages,
tools,
keep_alive: "10m",
options: {
think: false,
} as Record<string, unknown>,
@@ -140,7 +141,9 @@ async function runOllamaLoop(ctx: AgentRunContext): Promise<AgentResult> {
// of whether the mode nudge is still pending (the model may have stopped
// right after select_mode before acting on the guidance).
if (!calledOutputTool && !addedContinueNudge) {
log.info("» model stopped before completing task — nudging to continue");
log.info(
"» model stopped before completing task — nudging to continue",
);
addedContinueNudge = true;
messages.push({
role: "user",