Update

sealed interface Update(source)

What a running tool reports before it returns.

Inheritors

Types

Link copied to clipboard
data class Data(val id: String, val name: String, val data: JsonElement) : ToolCallContext.Update

A data part of the reply (same id replaces), e.g. a live plan.

Link copied to clipboard
data class File(val id: String, val mediaType: String, val url: String, val forModel: Boolean = false) : ToolCallContext.Update

A file the call produced (a screenshot, an image), shown after the call; with forModel also sent to the model (see content).

Link copied to clipboard
data class Preliminary(val output: String) : ToolCallContext.Update

An interim result shown in place of the output until the tool returns.

Link copied to clipboard
data class Subagent(val message: Message) : ToolCallContext.Update

The current state of a delegated agent's reply.