deferredBackend

fun deferredBackend(create: suspend () -> ChatBackend): ChatBackend(source)

A backend whose construction needs I/O — e.g. listing MCP tools or fetching an A2A agent card — built fresh for every turn inside the turn's coroutine, so failures surface as the turn's error.