ToolDecision

data class ToolDecision(val approved: Boolean, val reason: String? = null, val editedInput: JsonObject? = null, val remember: Boolean = false)(source)

A user's answer to a tool approval request.

Constructors

Link copied to clipboard
constructor(approved: Boolean, reason: String? = null, editedInput: JsonObject? = null, remember: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
val editedInput: JsonObject?

arguments the user changed before approving; they replace the proposed ones.

Link copied to clipboard

why they denied (or a note on approving); passed to the agent.

Link copied to clipboard

approve this tool for the rest of the conversation without asking again (ChatController remembers it; ACP answers with the agent's allow_always option).