mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 11:33:14 +00:00
fix: Increase the default max num of planning actions (#126)
This commit is contained in:
parent
013061d8ab
commit
001d38228a
1 changed files with 21 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue