@voltagent/server-core 1.0.23 → 1.0.25

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.
package/dist/edge.js CHANGED
@@ -982,7 +982,14 @@ async function handleGenerateText(agentId, body, deps, logger, signal) {
982
982
  finishReason: result.finishReason,
983
983
  toolCalls: result.toolCalls,
984
984
  toolResults: result.toolResults,
985
- ...result.experimental_output && { experimental_output: result.experimental_output }
985
+ // Try to access experimental_output safely - getter throws if not defined
986
+ ...(() => {
987
+ try {
988
+ return result.experimental_output ? { experimental_output: result.experimental_output } : {};
989
+ } catch {
990
+ return {};
991
+ }
992
+ })()
986
993
  }
987
994
  };
988
995
  } catch (error) {