@dudousxd/nestjs-agent 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -115,12 +115,13 @@ var AgentRunSteps = class {
115
115
  const opened = await deps.sink.open(input.sinkRunId);
116
116
  writer = input.childSink ? childSinkWriter(opened) : opened;
117
117
  }
118
- const turn = await (0, import_nestjs_agent_core.traceLlmTurn)(input.runId, input.step, () => deps.model.runTurn({
118
+ const frames = (0, import_nestjs_agent_core.observeTurnFrames)(writer);
119
+ const turn = (0, import_nestjs_agent_core.withTurnFrames)(await (0, import_nestjs_agent_core.traceLlmTurn)(input.runId, input.step, () => deps.model.runTurn({
119
120
  system: input.system,
120
121
  messages: input.messages,
121
122
  tools,
122
- sink: writer
123
- }));
123
+ sink: frames.writer
124
+ })), frames.summary());
124
125
  const stamped = (0, import_nestjs_agent_core.stampToolKinds)(turn, deps);
125
126
  return buffer === void 0 ? stamped : {
126
127
  ...stamped,