@@ -7,7 +7,7 @@ import { type ToolProviderContext } from 'src/engine/core-modules/tool-provider/
77import { type ToolRetrievalOptions } from 'src/engine/core-modules/tool-provider/interfaces/tool-retrieval-options.type' ;
88
99import { TOOL_PROVIDERS } from 'src/engine/core-modules/tool-provider/constants/tool-providers.token' ;
10- import { compactToolOutput } from 'src/engine/core-modules/tool-provider/output-serialization /compact-tool-output.util' ;
10+ import { compactToolOutput } from 'src/engine/core-modules/tool-provider/output-transforms /compact-tool-output.util' ;
1111import { ToolExecutorService } from 'src/engine/core-modules/tool-provider/services/tool-executor.service' ;
1212import { type LearnToolsAspect } from 'src/engine/core-modules/tool-provider/tools/learn-tools.tool' ;
1313import { type ToolContext } from 'src/engine/core-modules/tool-provider/types/tool-context.type' ;
@@ -107,12 +107,12 @@ export class ToolRegistryService {
107107 options ?: {
108108 wrapWithErrorContext ?: boolean ;
109109 includeLoadingMessage ?: boolean ;
110- serializeOutput ?: boolean ;
110+ compactOutput ?: boolean ;
111111 } ,
112112 ) : ToolSet {
113113 const toolSet : ToolSet = { } ;
114114 const includeLoadingMessage = options ?. includeLoadingMessage ?? true ;
115- const serializeOutput = options ?. serializeOutput ?? false ;
115+ const compactOutput = options ?. compactOutput ?? false ;
116116
117117 for ( const descriptor of descriptors ) {
118118 const baseSchema = descriptor . inputSchema as Record < string , unknown > ;
@@ -133,7 +133,7 @@ export class ToolRegistryService {
133133 context ,
134134 ) ;
135135
136- return serializeOutput
136+ return compactOutput
137137 ? ( compactToolOutput ( result ) as ToolOutput )
138138 : result ;
139139 } ;
@@ -170,7 +170,7 @@ export class ToolRegistryService {
170170 context : ToolContext ,
171171 options ?: {
172172 includeLoadingMessage ?: boolean ;
173- serializeOutput ?: boolean ;
173+ compactOutput ?: boolean ;
174174 } ,
175175 ) : Promise < ToolSet > {
176176 const fullContext = this . buildContextFromToolContext ( context ) ;
@@ -190,7 +190,7 @@ export class ToolRegistryService {
190190
191191 return this . hydrateToolSet ( descriptors , fullContext , {
192192 includeLoadingMessage : options ?. includeLoadingMessage ,
193- serializeOutput : options ?. serializeOutput ,
193+ compactOutput : options ?. compactOutput ,
194194 } ) ;
195195 }
196196
@@ -236,7 +236,7 @@ export class ToolRegistryService {
236236 toolName : string ,
237237 args : Record < string , unknown > | undefined ,
238238 context : ToolContext ,
239- options ?: { serializeOutput ?: boolean } ,
239+ options ?: { compactOutput ?: boolean } ,
240240 ) : Promise < ToolOutput > {
241241 try {
242242 const fullContext = this . buildContextFromToolContext ( context ) ;
@@ -258,7 +258,7 @@ export class ToolRegistryService {
258258 fullContext ,
259259 ) ;
260260
261- return options ?. serializeOutput
261+ return options ?. compactOutput
262262 ? ( compactToolOutput ( result ) as ToolOutput )
263263 : result ;
264264 } catch ( error ) {
@@ -286,7 +286,7 @@ export class ToolRegistryService {
286286 excludeTools,
287287 wrapWithErrorContext,
288288 includeLoadingMessage,
289- serializeOutput ,
289+ compactOutput ,
290290 } = options ;
291291 const categorySet = categories ? new Set ( categories ) : undefined ;
292292
@@ -321,7 +321,7 @@ export class ToolRegistryService {
321321 const toolSet = this . hydrateToolSet ( filteredDescriptors , context , {
322322 wrapWithErrorContext,
323323 includeLoadingMessage,
324- serializeOutput ,
324+ compactOutput ,
325325 } ) ;
326326
327327 this . logger . log (
0 commit comments