Browse Source

refactor(ptc): share the prompt section return type

_Kerman 1 month ago
parent
commit
5a673b8a59
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/core/tools/src/index.ts

+ 1 - 1
packages/core/tools/src/index.ts

@@ -844,7 +844,7 @@ export class ToolRuntime extends Service {
    * `both` renders empty: native calls do execute there, so the rule is false.
    * `both` renders empty: native calls do execute there, so the rule is false.
    * @returns the section registration.
    * @returns the section registration.
    */
    */
-  private collapseSection(): { name: string; order: number; text: (context: { scope?: ScopeKey }) => string } {
+  private collapseSection(): PromptSection {
     return {
     return {
       name: 'tools:ptc-only',
       name: 'tools:ptc-only',
       order: this.ctx.systemPrompt.getSectionOrder('PTC_ONLY'),
       order: this.ctx.systemPrompt.getSectionOrder('PTC_ONLY'),