poll
fun AgentMailClient.poll(inboxId: String, interval: Duration = 10.seconds, filter: (Message) -> Boolean? = null, scope: CoroutineScope = CoroutineScope(Dispatchers.Default + SupervisorJob()), handler: suspend (Message) -> Unit): Job
Simplified inbox polling that invokes a handler for each new message at a fixed interval.