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

Function createEntry

plugins/plugin-eval/src/core/workflow-guide.js:327–340  ·  view source on GitHub ↗
(goal, target, status)

Source from the content-addressed store, hash-verified

325}
326
327function createEntry(goal, target, status) {
328 const commandTargetPath = formatCommandPath(target.path);
329 const chatPrompt = chatPromptForGoal(goal, target);
330 const commands = commandsForGoal(goal, target, status);
331 return {
332 id: goal,
333 label: workflowLabel(goal, target),
334 chatPrompt,
335 summary: summaryForGoal(goal, target, status),
336 firstCommand: commands[0],
337 commands,
338 startCommand: `plugin-eval start ${commandTargetPath} --request ${shellQuote(chatPrompt)} --format markdown`,
339 };
340}
341
342export async function buildWorkflowGuide(targetPath, options = {}) {
343 const target = await resolveTarget(targetPath);

Callers 1

buildWorkflowGuideFunction · 0.85

Calls 6

formatCommandPathFunction · 0.90
chatPromptForGoalFunction · 0.85
commandsForGoalFunction · 0.85
workflowLabelFunction · 0.85
summaryForGoalFunction · 0.85
shellQuoteFunction · 0.70

Tested by

no test coverage detected