sendCoalescing

abstract suspend fun sendCoalescing(content: MessageContent): Delivery(source)

向 agent 发送消息,与 send 不同,如果 agent 刚刚结束轮次,或正处于空闲状态,sendCoalescing 不会触发新的 LLM 思考。

sendCoalescing 入队的消息仅会在每次 THINKING 开始前被合并到请求中,适用于发送 MessageContent.injections 来注入提示。

See also

Throws