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

Function formatExperimentCreationOutput

src/components/tool-invocation.tsx:102–135  ·  view source on GitHub ↗
(output: any)

Source from the content-addressed store, hash-verified

100}
101
102function formatExperimentCreationOutput(output: any) {
103 return (
104 <div className="space-y-2">
105 {output?.success !== undefined && (
106 <div className="flex items-center gap-2">
107 <span className="text-sm text-gray-400">Status:</span>
108 <span className="text-sm text-green-400">
109 {output.success ? "✓ Created successfully" : "✗ Failed"}
110 </span>
111 </div>
112 )}
113 {output?.experimentId && (
114 <div className="flex items-center gap-2">
115 <span className="text-sm text-gray-400">Experiment ID:</span>
116 <span className="text-sm text-gray-200">{output.experimentId}</span>
117 </div>
118 )}
119 {output?.name && (
120 <div className="flex items-center gap-2">
121 <span className="text-sm text-gray-400">Name:</span>
122 <span className="text-sm text-gray-200">{output.name}</span>
123 </div>
124 )}
125 {output?.featureFlagKey && (
126 <div className="flex items-center gap-2">
127 <span className="text-sm text-gray-400">Feature Flag:</span>
128 <code className="text-sm text-gray-200 bg-[#1a1a1a] px-2 py-0.5 rounded">
129 {output.featureFlagKey}
130 </code>
131 </div>
132 )}
133 </div>
134 );
135}
136
137function formatExperimentCodeUpdateInput(input: any) {
138 return (

Callers 1

renderOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected