illuma-agents 1.0.76 → 1.0.78

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.
@@ -1210,10 +1210,13 @@ If I seem to be missing something we discussed earlier, just give me a quick rem
1210
1210
  const finalMsg = result.messages?.[0];
1211
1211
  if (finalMsg && 'response_metadata' in finalMsg) {
1212
1212
  const meta = finalMsg.response_metadata;
1213
+ // Bedrock streaming nests stopReason inside messageStop: { stopReason: '...' }
1214
+ const messageStop = meta.messageStop;
1213
1215
  this.lastFinishReason =
1214
1216
  meta.finish_reason ?? // OpenAI/Azure
1215
1217
  meta.stop_reason ?? // Anthropic direct API
1216
- meta.stopReason ?? // Bedrock (Anthropic/Amazon)
1218
+ meta.stopReason ?? // Bedrock invoke (non-streaming)
1219
+ messageStop?.stopReason ?? // Bedrock streaming
1217
1220
  meta.finishReason ?? // VertexAI/Google
1218
1221
  undefined;
1219
1222
  }