fix: Increase the default max num of planning actions (#126)

This commit is contained in:
Brace Sproul 2025-06-11 17:50:21 -07:00 • committed by GitHub
parent 013061d8ab
commit 001d38228a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -176,6 +176,16 @@ export const GraphConfigurationMetadata: {
| { type: "hidden" };
};
} = {
maxContextActions: {
x_open_swe_ui_config: {
type: "number",
default: 10,
min: 1,
max: 50,
description:
"Maximum number of context gathering actions during planning",
},
},
plannerModelName: {
x_open_swe_ui_config: {
type: "select",
@ -266,16 +276,6 @@ export const GraphConfigurationMetadata: {
description: "Controls randomness (0 = deterministic, 2 = creative)",
},
},
maxContextActions: {
x_open_swe_ui_config: {
type: "number",
default: 6,
min: 1,
max: 20,
description:
"Maximum number of context gathering actions during planning",
},
},
maxTokens: {
x_open_swe_ui_config: {
type: "number",
@ -294,6 +294,17 @@ export const GraphConfigurationMetadata: {
};
export const GraphConfiguration = z.object({
/**
* The maximum number of context gathering actions to take during planning.
* Each action consists of 2 messages (request & result), plus 1 human message.
* Total messages = maxContextActions * 2 + 1
* @default 10
*/
maxContextActions: z
.number()
.optional()
.langgraph.metadata(GraphConfigurationMetadata.maxContextActions),
/**
* The model ID to use for the planning step.
* This includes initial planning, and rewriting.
@ -391,16 +402,6 @@ export const GraphConfiguration = z.object({
.optional()
.langgraph.metadata(GraphConfigurationMetadata.summarizerTemperature),
/**
* The maximum number of context gathering actions to take during planning.
* Each action consists of 2 messages (request & result), plus 1 human message.
* Total messages = maxContextActions * 2 + 1
* @default 6
*/
maxContextActions: z
.number()
.optional()
.langgraph.metadata(GraphConfigurationMetadata.maxContextActions),
/**
* The maximum number of tokens to generate in an individual generation.
* @default 10_000