MCPcopy Create free account
hub / github.com/openai/plugins / renderNextAction

Function renderNextAction

plugins/plugin-eval/src/renderers/html.js:137–148  ·  view source on GitHub ↗
(nextAction)

Source from the content-addressed store, hash-verified

135}
136
137function renderNextAction(nextAction) {
138 if (!nextAction) {
139 return "<p>No recommended next step.</p>";
140 }
141
142 return renderList([
143 nextAction.label,
144 `Why: ${nextAction.why}`,
145 ...(nextAction.chatPrompt ? [`Chat request: "${nextAction.chatPrompt}"`] : []),
146 ...(nextAction.command ? [`Local command: ${nextAction.command}`] : []),
147 ]);
148}
149
150export function renderHtml(result) {
151 if (result.kind === "workflow-guide") {

Callers 1

renderHtmlFunction · 0.70

Calls 1

renderListFunction · 0.85

Tested by

no test coverage detected