fix: apply golines formatting to context.go
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
21eb926736
commit
bc7afbee59
1 changed files with 15 additions and 9 deletions
|
|
@ -706,17 +706,23 @@ func (cb *ContextBuilder) BuildMessagesFromPrompt(req PromptBuildRequest) []prov
|
||||||
if !skipForTools && !skipForSubsequent {
|
if !skipForTools && !skipForSubsequent {
|
||||||
if skillsSummary := cb.skillsLoader.BuildSkillsSummary(); skillsSummary != "" {
|
if skillsSummary := cb.skillsLoader.BuildSkillsSummary(); skillsSummary != "" {
|
||||||
catalogPart := PromptPart{
|
catalogPart := PromptPart{
|
||||||
ID: "capability.skill_catalog",
|
ID: "capability.skill_catalog",
|
||||||
Layer: PromptLayerCapability,
|
Layer: PromptLayerCapability,
|
||||||
Slot: PromptSlotSkillCatalog,
|
Slot: PromptSlotSkillCatalog,
|
||||||
Source: PromptSource{ID: PromptSourceSkillCatalog, Name: "skill:index"},
|
Source: PromptSource{ID: PromptSourceSkillCatalog, Name: "skill:index"},
|
||||||
Title: "skill catalog",
|
Title: "skill catalog",
|
||||||
Content: fmt.Sprintf("# Skills\n\nThe following skills extend your capabilities. To use a skill, read its SKILL.md file using the read_file tool.\n\n%s", skillsSummary),
|
Content: fmt.Sprintf(
|
||||||
Stable: true,
|
"# Skills\n\nThe following skills extend your capabilities. To use a skill, read its SKILL.md file using the read_file tool.\n\n%s",
|
||||||
Cache: PromptCacheEphemeral,
|
skillsSummary,
|
||||||
|
),
|
||||||
|
Stable: true,
|
||||||
|
Cache: PromptCacheEphemeral,
|
||||||
}
|
}
|
||||||
stringParts = append(stringParts, catalogPart.Content)
|
stringParts = append(stringParts, catalogPart.Content)
|
||||||
contentBlocks = append(contentBlocks, promptContentBlock(catalogPart, &providers.CacheControl{Type: "ephemeral"}))
|
contentBlocks = append(
|
||||||
|
contentBlocks,
|
||||||
|
promptContentBlock(catalogPart, &providers.CacheControl{Type: "ephemeral"}),
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue