MCPcopy Create free account
hub / github.com/deepnote/deepnote / createAgentBlock

Function createAgentBlock

packages/cli/src/commands/run.ts:216–229  ·  view source on GitHub ↗
(prompt: string, sortIndex: number)

Source from the content-addressed store, hash-verified

214}
215
216function 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
231function createPromptOnlyFile(prompt: string): DeepnoteFile {
232 return {

Callers 2

createPromptOnlyFileFunction · 0.85
setupProjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected