mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-03 08:53:36 +00:00
feat: enhance suggestion generation with structured output and increased max turns
- Updated MAX_TURNS to allow for more iterations in suggestion generation: quick (5 to 50), standard (20 to 100), and extended (50 to 250). - Introduced a JSON schema for structured output in suggestions, improving the format and consistency of generated suggestions. - Modified the generateSuggestions function to utilize structured output when available, with a fallback to text parsing for compatibility. This enhances the suggestion generation process, allowing for more thorough exploration and better output formatting.
This commit is contained in:
@@ -40,9 +40,9 @@ describe("sdk-options.ts", () => {
|
||||
describe("MAX_TURNS", () => {
|
||||
it("should export turn presets", async () => {
|
||||
const { MAX_TURNS } = await import("@/lib/sdk-options.js");
|
||||
expect(MAX_TURNS.quick).toBe(5);
|
||||
expect(MAX_TURNS.standard).toBe(20);
|
||||
expect(MAX_TURNS.extended).toBe(50);
|
||||
expect(MAX_TURNS.quick).toBe(50);
|
||||
expect(MAX_TURNS.standard).toBe(100);
|
||||
expect(MAX_TURNS.extended).toBe(250);
|
||||
expect(MAX_TURNS.maximum).toBe(1000);
|
||||
});
|
||||
});
|
||||
@@ -141,7 +141,7 @@ describe("sdk-options.ts", () => {
|
||||
const options = createSuggestionsOptions({ cwd: "/test/path" });
|
||||
|
||||
expect(options.cwd).toBe("/test/path");
|
||||
expect(options.maxTurns).toBe(MAX_TURNS.quick);
|
||||
expect(options.maxTurns).toBe(MAX_TURNS.extended);
|
||||
expect(options.allowedTools).toEqual([...TOOL_PRESETS.readOnly]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user