ToolResult

data class ToolResult(val text: String, val content: List<FilePart> = emptyList())(source)

What a tool call gives the model: its text result and the content it returned for the model (ToolCallContext.content; Pydantic AI ToolReturn.content), which a model loop sends in a user message after the tool results.

Constructors

Link copied to clipboard
constructor(text: String, content: List<FilePart> = emptyList())

Properties

Link copied to clipboard
Link copied to clipboard