toSpringAiMessage

fun Message.toSpringAiMessage(toolResponseContentAdapter: ToolResponseContentAdapter = ToolResponseContentAdapter.PASSTHROUGH): <Error class: unknown class>

Convert one of our messages to a Spring AI message with multimodal support.

Parameters

toolResponseContentAdapter

Adapts tool response content for provider-specific format requirements (e.g., JSON wrapping for Google GenAI). Defaults to ToolResponseContentAdapter.PASSTHROUGH.