Procházet zdrojové kódy

refactor(ptc): share the prompt section return type

_Kerman před 2 týdny
rodič
revize
5a673b8a59
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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.
    * @returns the section registration.
    */
-  private collapseSection(): { name: string; order: number; text: (context: { scope?: ScopeKey }) => string } {
+  private collapseSection(): PromptSection {
     return {
       name: 'tools:ptc-only',
       order: this.ctx.systemPrompt.getSectionOrder('PTC_ONLY'),