Expose tool prompt guidelines to extensions

closes #4879
This commit is contained in:
Mario Zechner
2026-05-28 11:03:25 +02:00
parent 17d39ccfd4
commit edd26444af
5 changed files with 12 additions and 6 deletions

View File

@@ -72,6 +72,9 @@ describe("AgentSession dynamic tool registration", () => {
const readTool = allTools.find((tool) => tool.name === "read");
expect(allTools.map((tool) => tool.name)).toContain("dynamic_tool");
expect(dynamicTool?.promptGuidelines).toEqual([
"Use dynamic_tool when the user asks for dynamic behavior tests.",
]);
expect(dynamicTool?.sourceInfo).toMatchObject({
path: "<inline:1>",
source: "inline",