Assistant Message With Tool Calls
class AssistantMessageWithToolCalls constructor(content: String = "", val toolCalls: List<ToolCall>, val name: String? = null, val timestamp: Instant = Instant.now()) : BaseMessage, AssistantContent
An assistant message that includes tool calls. When an LLM requests tool calls, it may or may not include text content. This class handles both cases - empty content is valid for tool-call-only responses.
Constructors
Properties
Functions
Link copied to clipboard
fun Message.toSpringAiMessage(toolResponseContentAdapter: ToolResponseContentAdapter = ToolResponseContentAdapter.PASSTHROUGH): <Error class: unknown class>
Convert one of our messages to a Spring AI message with multimodal support.