(modelId: string)
| 76 | |
| 77 | /** The mounting dock takes the handed-over model. A model of another choice is unloaded. */ |
| 78 | export function takeAgent(modelId: string): AgentHandover | undefined { |
| 79 | const handover = handed; |
| 80 | if (!handover) return undefined; |
| 81 | handed = undefined; |
| 82 | if (handover.modelId === modelId) return handover; |
| 83 | handover.runtime.dispose(); |
| 84 | return undefined; |
| 85 | } |
no test coverage detected