(prompt: string)
| 229 | } |
| 230 | |
| 231 | function createPromptOnlyFile(prompt: string): DeepnoteFile { |
| 232 | return { |
| 233 | metadata: { |
| 234 | createdAt: new Date().toISOString(), |
| 235 | }, |
| 236 | project: { |
| 237 | id: randomUUID(), |
| 238 | name: 'Agent', |
| 239 | notebooks: [ |
| 240 | { |
| 241 | id: randomUUID(), |
| 242 | name: 'Notebook', |
| 243 | blocks: [createAgentBlock(prompt, 0)], |
| 244 | }, |
| 245 | ], |
| 246 | }, |
| 247 | version: '1.0.0', |
| 248 | } |
| 249 | } |
| 250 | |
| 251 | /** |
| 252 | * Common project setup: resolve path, parse/convert file, validate requirements. |
no test coverage detected