Skip to content

Commit 80b79c4

Browse files
agent: raise default SPROUT_AGENT_MAX_OUTPUT_TOKENS to 32768 (#565)
Co-authored-by: Tyler Longwell <tlongwell-block@users.noreply.github.com>
1 parent cacfe6b commit 80b79c4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

crates/sprout-agent/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Everything is environment variables. No flags, no config files. (We are a subpro
134134
| `SPROUT_AGENT_SYSTEM_PROMPT` | built-in | Inline system prompt. |
135135
| `SPROUT_AGENT_SYSTEM_PROMPT_FILE` || File path. Mutually exclusive with the above. |
136136
| `SPROUT_AGENT_MAX_ROUNDS` | `0` | Tool-loop iteration cap. 0 = unlimited. |
137-
| `SPROUT_AGENT_MAX_OUTPUT_TOKENS` | `4096` | Per LLM call. |
137+
| `SPROUT_AGENT_MAX_OUTPUT_TOKENS` | `32768` | Per LLM call. Headroom for large tool-call inputs (e.g. file writes via heredoc); Sonnet 4 / Opus 4 cap at 64K. |
138138
| `SPROUT_AGENT_LLM_TIMEOUT_SECS` | `120` | |
139139
| `SPROUT_AGENT_TOOL_TIMEOUT_SECS` | `660` | Per-tool call timeout in seconds |
140140
| `SPROUT_AGENT_MAX_PARALLEL_TOOLS` | `8` | Max concurrent tool calls per turn (1 = sequential) |

crates/sprout-agent/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl Config {
9393
base_url,
9494
anthropic_api_version: env_or("ANTHROPIC_API_VERSION", "2023-06-01"),
9595
max_rounds: parse_env("SPROUT_AGENT_MAX_ROUNDS", 0)?,
96-
max_output_tokens: parse_env("SPROUT_AGENT_MAX_OUTPUT_TOKENS", 4096)?,
96+
max_output_tokens: parse_env("SPROUT_AGENT_MAX_OUTPUT_TOKENS", 32_768)?,
9797
llm_timeout: Duration::from_secs(parse_env("SPROUT_AGENT_LLM_TIMEOUT_SECS", 120)?),
9898
tool_timeout: Duration::from_secs(parse_env("SPROUT_AGENT_TOOL_TIMEOUT_SECS", 660)?),
9999
mcp_init_timeout: Duration::from_secs(parse_env(

0 commit comments

Comments
 (0)