feat: add read_file tool
This commit is contained in:
+4
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user