MCPcopy Create free account
hub / github.com/altic-dev/Pilot / renderInput

Function renderInput

src/components/tool-invocation.tsx:447–468  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

445
446 // Render tool-specific input
447 const renderInput = () => {
448 switch (toolName) {
449 case "projectRetrieval":
450 return formatProjectRetrievalInput(invocation.input);
451 case "experimentCreation":
452 return formatExperimentCreationInput(invocation.input);
453 case "experimentCodeUpdate":
454 return formatExperimentCodeUpdateInput(invocation.input);
455 case "textVariation":
456 return formatTextVariationInput(invocation.input);
457 case "repoSetup":
458 return formatRepoSetupInput(invocation.input);
459 default:
460 return (
461 <div className="text-sm text-gray-300">
462 <pre className="whitespace-pre-wrap break-words">
463 {JSON.stringify(invocation.input, null, 2)}
464 </pre>
465 </div>
466 );
467 }
468 };
469
470 // Render tool-specific output
471 const renderOutput = () => {

Callers 1

ToolInvocationFunction · 0.85

Tested by

no test coverage detected