fix: resolve lint errors for PR #2781
Fix gci import grouping, golines long line, and misspell (behaviours → behaviors). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
cb176e16ff
commit
c0bc4624be
3 changed files with 22 additions and 22 deletions
|
|
@ -208,7 +208,6 @@ func (cb *ContextBuilder) BuildSystemPromptParts() []PromptPart {
|
|||
})
|
||||
}
|
||||
|
||||
|
||||
// Memory context
|
||||
memoryContext := cb.memory.GetMemoryContext()
|
||||
if memoryContext != "" {
|
||||
|
|
@ -697,12 +696,13 @@ func (cb *ContextBuilder) BuildMessagesFromPrompt(req PromptBuildRequest) []prov
|
|||
}
|
||||
|
||||
// Determine whether to inject the skill catalog.
|
||||
// Both skip behaviours are opt-in via config (default: always include).
|
||||
// Both skip behaviors are opt-in via config (default: always include).
|
||||
isToolContinuation := len(req.History) > 0 && req.History[len(req.History)-1].Role == "tool"
|
||||
isFirstTurn := len(req.History) == 0
|
||||
isAfterCompaction := req.Summary != ""
|
||||
skipForTools := cb.skillCatalogCfg.SkipOnTools && isToolContinuation
|
||||
skipForSubsequent := cb.skillCatalogCfg.SkipOnSubsequent && !isFirstTurn && !isAfterCompaction && !isToolContinuation
|
||||
skipForSubsequent := cb.skillCatalogCfg.SkipOnSubsequent &&
|
||||
!isFirstTurn && !isAfterCompaction && !isToolContinuation
|
||||
if !skipForTools && !skipForSubsequent {
|
||||
if skillsSummary := cb.skillsLoader.BuildSkillsSummary(); skillsSummary != "" {
|
||||
catalogPart := PromptPart{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue