(options: {
blocks: ContentBlock[]
match: SpawnAgentMatch
realAgentId: string
realAgentType?: string
parentAgentId?: string
params?: Record<string, unknown>
prompt?: string
})
| 25 | } |
| 26 | |
| 27 | export const resolveSpawnAgentToReal = (options: { |
| 28 | blocks: ContentBlock[] |
| 29 | match: SpawnAgentMatch |
| 30 | realAgentId: string |
| 31 | realAgentType?: string |
| 32 | parentAgentId?: string |
| 33 | params?: Record<string, unknown> |
| 34 | prompt?: string |
| 35 | }): ContentBlock[] => { |
| 36 | const { |
| 37 | blocks, |
| 38 | match, |
| 39 | realAgentId, |
| 40 | realAgentType, |
| 41 | parentAgentId, |
| 42 | params: agentParams, |
| 43 | prompt, |
| 44 | } = options |
| 45 | |
| 46 | return moveSpawnAgentBlock( |
| 47 | blocks, |
| 48 | match.tempId, |
| 49 | realAgentId, |
| 50 | parentAgentId, |
| 51 | agentParams, |
| 52 | prompt, |
| 53 | realAgentType, |
| 54 | ) |
| 55 | } |
no test coverage detected