feat(agent): align harness execution tools

This commit is contained in:
Mario Zechner
2026-07-22 15:36:06 +02:00
parent 2d0b2294cd
commit e32c1491b5
19 changed files with 763 additions and 174 deletions
+4 -2
View File
@@ -58,7 +58,7 @@ const agent = new AgentHarness({
model,
thinkingLevel: "low",
tools: [createReadTool(), createWriteTool(), createEditTool(), createBashTool()],
toolContext: async () => ({ env, sessionId: (await session.getMetadata()).id }),
toolContext: { env },
systemPrompt: ({ resources }) =>
[
"You are a helpful assistant.",
@@ -73,5 +73,7 @@ const agent = new AgentHarness({
},
});
const response = await agent.prompt("What skills do you have? Any duplicates?");
const response = await agent.prompt(
"What skills do you have? Any duplicates? Also use bash to get the current date and time, then read README.md and tell me what this project is about.",
);
console.log(response);