@segmentstream/ontology 0.98.0 → 0.98.1

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.
@@ -460,9 +460,13 @@ function runTool(server, tool, args, request, preview) {
460
460
  input: args,
461
461
  identityToken: identityToken(request),
462
462
  });
463
+ // Structured content only when the provider sent it: a stand-in would repeat the text, and
464
+ // a client that prefers structured content would read the provider's answer twice wrapped.
463
465
  return {
464
466
  text: resultText(result),
465
- structured: (result.structuredContent ?? { content: result.content }),
467
+ ...(result.structuredContent === undefined
468
+ ? {}
469
+ : { structured: result.structuredContent }),
466
470
  };
467
471
  }
468
472
  case "action": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@segmentstream/ontology",
3
- "version": "0.98.0",
3
+ "version": "0.98.1",
4
4
  "description": "Define a SegmentStream workspace app's ontology: entities, relationships, roles and actions, written with Effect.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "SegmentStream",