|
export class HarnessError extends Error {}
|
|
export class BlockAssembler {
|
|
constructor() { this.blocks = [] }
|
|
add(block) { this.blocks.push(block); return this }
|
|
build() { return this.blocks }
|
|
}
|
|
export function createUserMessage(input) {
|
|
return { role: 'user', ...input }
|
|
}
|