Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit afd1b08

Browse files
authored
feat: enhance context summarization with standardized templates and configuration (tailcallhq#605)
1 parent 81503d0 commit afd1b08

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

crates/forge_services/src/template.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ impl<F: Infrastructure, T: ToolService> TemplateService for ForgeTemplateService
149149
compaction
150150
.prompt
151151
.as_deref()
152-
.unwrap_or("Summarize the following conversation:\n{{context}}"),
152+
.unwrap_or("{{> system-prompt-context-summarizer.hbs}}"),
153153
&ctx,
154154
)?;
155155
Ok(result)

forge.default.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ agents:
4646
- user_help_query
4747

4848
- id: software-engineer
49+
compact:
50+
max_tokens: 2000
51+
token_threshold: 80000
52+
model: *advanced_model
53+
retention_window: 6
54+
prompt: "{{> system-prompt-context-summarizer.hbs }}"
4955
tool_supported: true
5056
model: *advanced_model
5157
system_prompt: "{{> system-prompt-engineer.hbs }}"
@@ -136,7 +142,7 @@ agents:
136142
- tool_supported: true
137143
id: git-commit
138144
model: *advanced_model
139-
hide_content: true
145+
hide_content: true
140146
ephemeral: true
141147
system_prompt: "{{> system-prompt-git-commit.hbs }}"
142148
user_prompt: "Go ahead and make the commit, {{event.value}}"

forge.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ agents:
99
max_walker_depth: 1024
1010
subscribe:
1111
- fixme
12-
compact:
13-
max_tokens: 2000
14-
token_threshold: 80000
15-
model: google/gemini-2.0-flash-001
16-
retention_window: 6
17-
prompt: "{{> system-prompt-context-summarizer.hbs }}"
1812
custom_rules: |
1913
Handling Errors:
2014
@@ -51,4 +45,4 @@ agents:
5145
- run the following command to format and validate if the code is working:
5246
```
5347
cargo +nightly fmt --all; cargo +nightly clippy --fix --allow-staged --allow-dirty --workspace;
54-
```
48+
```

0 commit comments

Comments
 (0)