@creature-ai/sdk 0.1.13 → 0.1.14
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/server/index.d.ts
CHANGED
|
@@ -557,6 +557,7 @@ declare class App {
|
|
|
557
557
|
/**
|
|
558
558
|
* Format tool result for serverless response.
|
|
559
559
|
* Shared between Vercel and Lambda adapters.
|
|
560
|
+
* Must include all fields that formatToolResult includes (title, inlineHeight, etc.).
|
|
560
561
|
*/
|
|
561
562
|
private formatServerlessResult;
|
|
562
563
|
/**
|
package/dist/server/index.js
CHANGED
|
@@ -14121,6 +14121,7 @@ var App = class {
|
|
|
14121
14121
|
/**
|
|
14122
14122
|
* Format tool result for serverless response.
|
|
14123
14123
|
* Shared between Vercel and Lambda adapters.
|
|
14124
|
+
* Must include all fields that formatToolResult includes (title, inlineHeight, etc.).
|
|
14124
14125
|
*/
|
|
14125
14126
|
formatServerlessResult(result, instanceId, websocketUrl) {
|
|
14126
14127
|
const text = result.text || JSON.stringify(result.data || {});
|
|
@@ -14135,6 +14136,8 @@ var App = class {
|
|
|
14135
14136
|
content: [{ type: "text", text }],
|
|
14136
14137
|
structuredContent: {
|
|
14137
14138
|
...result.data,
|
|
14139
|
+
...result.title && { title: result.title },
|
|
14140
|
+
...result.inlineHeight && { inlineHeight: result.inlineHeight },
|
|
14138
14141
|
instanceId,
|
|
14139
14142
|
...websocketUrl && { websocketUrl }
|
|
14140
14143
|
},
|