Просмотр исходного кода

refactor(ptc): share the prompt section return type

_Kerman 3 недель назад
Родитель
Сommit
5a673b8a59
1 измененных файлов с 1 добавлено и 1 удалено
  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'),