@@ -164,11 +164,9 @@ protected Single<ResponseProcessingResult> postprocess(
164
164
updatedResponse , Iterables .concat (eventIterables ), Optional .empty ()));
165
165
}
166
166
167
- logger .debug ("Response after processors: {}" , updatedResponse );
168
167
Event modelResponseEvent =
169
168
buildModelResponseEvent (baseEventForLlmResponse , llmRequest , updatedResponse );
170
169
eventIterables .add (Collections .singleton (modelResponseEvent ));
171
- logger .debug ("Model response event: {}" , modelResponseEvent .toJson ());
172
170
173
171
Maybe <Event > maybeFunctionCallEvent =
174
172
modelResponseEvent .functionCalls ().isEmpty ()
@@ -183,7 +181,6 @@ protected Single<ResponseProcessingResult> postprocess(
183
181
Optional <String > transferToAgent = Optional .empty ();
184
182
if (functionCallEventOpt .isPresent ()) {
185
183
Event functionCallEvent = functionCallEventOpt .get ();
186
- logger .debug ("Function call event generated: {}" , functionCallEvent );
187
184
eventIterables .add (Collections .singleton (functionCallEvent ));
188
185
transferToAgent = functionCallEvent .actions ().transferToAgent ();
189
186
}
@@ -332,7 +329,6 @@ private Flowable<Event> runOneStep(InvocationContext context) {
332
329
LlmRequest llmRequestAfterPreprocess = preResult .updatedRequest ();
333
330
Iterable <Event > preEvents = preResult .events ();
334
331
335
- logger .debug ("Pre-processing result: {}" , preResult );
336
332
if (context .endInvocation ()) {
337
333
logger .debug ("End invocation requested during preprocessing." );
338
334
return Flowable .fromIterable (preEvents );
@@ -353,16 +349,10 @@ private Flowable<Event> runOneStep(InvocationContext context) {
353
349
.branch (context .branch ())
354
350
.build ();
355
351
356
- logger .debug ("Starting LLM call with request: {}" , llmRequestAfterPreprocess );
357
352
Flowable <Event > restOfFlow =
358
353
callLlm (context , llmRequestAfterPreprocess , mutableEventTemplate )
359
354
.concatMap (
360
355
llmResponse -> {
361
- logger .debug (
362
- "Processing LlmResponse with Event ID: {}" ,
363
- mutableEventTemplate .id ());
364
- logger .debug ("LLM response for current step: {}" , llmResponse );
365
-
366
356
Single <ResponseProcessingResult > postResultSingle =
367
357
postprocess (
368
358
context ,
@@ -385,7 +375,6 @@ private Flowable<Event> runOneStep(InvocationContext context) {
385
375
})
386
376
.concatMap (
387
377
postResult -> {
388
- logger .debug ("Post-processing result: {}" , postResult );
389
378
Flowable <Event > postProcessedEvents =
390
379
Flowable .fromIterable (postResult .events ());
391
380
if (postResult .transferToAgent ().isPresent ()) {
0 commit comments