(prompt: string, sortIndex: number)
| 214 | } |
| 215 | |
| 216 | function createAgentBlock(prompt: string, sortIndex: number): AgentBlock { |
| 217 | return { |
| 218 | id: randomUUID().replace(/-/g, ''), |
| 219 | blockGroup: randomUUID().replace(/-/g, ''), |
| 220 | sortingKey: `z${String(sortIndex).padStart(6, '0')}`, |
| 221 | type: 'agent', |
| 222 | content: prompt, |
| 223 | metadata: { |
| 224 | deepnote_agent_model: 'auto', |
| 225 | }, |
| 226 | executionCount: null, |
| 227 | outputs: [], |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | function createPromptOnlyFile(prompt: string): DeepnoteFile { |
| 232 | return { |
no outgoing calls
no test coverage detected