Skip to content

Commit 31f00df

Browse files
Merge pull request #147 from openai/chore/moustafa/remove-deprecated-resultCanProduceWidget
removed deprecated resultCanProduceWidget
2 parents dca768a + 90f0460 commit 31f00df

File tree

5 files changed

+4
-7
lines changed

5 files changed

+4
-7
lines changed

kitchen_sink_server_node/src/server.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ function toolDescriptorMeta() {
9191
"openai/toolInvocation/invoking": "Preparing the kitchen sink widget",
9292
"openai/toolInvocation/invoked": "Widget rendered",
9393
"openai/widgetAccessible": true,
94-
"openai/resultCanProduceWidget": true,
9594
} as const;
9695
}
9796

@@ -107,7 +106,10 @@ const widgetHtml = readWidgetHtml();
107106
const toolInputSchema = {
108107
type: "object",
109108
properties: {
110-
message: { type: "string", description: "Message to render in the widget." },
109+
message: {
110+
type: "string",
111+
description: "Message to render in the widget.",
112+
},
111113
accentColor: {
112114
type: "string",
113115
description: "Optional accent color (hex).",

kitchen_sink_server_python/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ def tool_meta(invocation: str):
6161
"openai/toolInvocation/invoking": "Preparing the kitchen sink widget",
6262
"openai/toolInvocation/invoked": "Widget rendered",
6363
"openai/widgetAccessible": True,
64-
"openai/resultCanProduceWidget": True,
6564
"invocation": invocation,
6665
}
6766

pizzaz_server_node/src/server.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ function widgetDescriptorMeta(widget: PizzazWidget) {
8080
"openai/toolInvocation/invoking": widget.invoking,
8181
"openai/toolInvocation/invoked": widget.invoked,
8282
"openai/widgetAccessible": true,
83-
"openai/resultCanProduceWidget": true,
8483
} as const;
8584
}
8685

pizzaz_server_python/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ def _tool_meta(widget: PizzazWidget) -> Dict[str, Any]:
151151
"openai/toolInvocation/invoking": widget.invoking,
152152
"openai/toolInvocation/invoked": widget.invoked,
153153
"openai/widgetAccessible": True,
154-
"openai/resultCanProduceWidget": True,
155154
}
156155

157156

solar-system_server_python/main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ def _tool_meta(widget: SolarWidget) -> Dict[str, Any]:
123123
"openai/toolInvocation/invoking": widget.invoking,
124124
"openai/toolInvocation/invoked": widget.invoked,
125125
"openai/widgetAccessible": True,
126-
"openai/resultCanProduceWidget": True,
127126
"annotations": {
128127
"destructiveHint": False,
129128
"openWorldHint": False,
@@ -273,7 +272,6 @@ async def _call_tool_request(req: types.CallToolRequest) -> types.ServerResult:
273272
"openai/toolInvocation/invoking": WIDGET.invoking,
274273
"openai/toolInvocation/invoked": WIDGET.invoked,
275274
"openai/widgetAccessible": True,
276-
"openai/resultCanProduceWidget": True,
277275
}
278276

279277
description = PLANET_DESCRIPTIONS.get(planet, "")

0 commit comments

Comments
 (0)