to Spring Ai Message
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
tool Response Content Adapter
Adapts tool response content for provider-specific format requirements (e.g., JSON wrapping for Google GenAI). Defaults to ToolResponseContentAdapter.PASSTHROUGH.