AskUser

Object representation of a tool that provides an interface for agent-user interaction. It allows the agent to ask the user for input (via stdout/stdin).

Types

Link copied to clipboard
@Serializable
data class Args(val message: String) : Tool.Args

Properties

Link copied to clipboard
open override val argsSerializer: KSerializer<AskUser.Args>
Link copied to clipboard
open override val descriptor: ToolDescriptor
Link copied to clipboard

Functions

Link copied to clipboard
fun decodeArgs(rawArgs: JsonObject): AskUser.Args
Link copied to clipboard
Link copied to clipboard
open suspend override fun doExecute(args: AskUser.Args): String
Link copied to clipboard
fun encodeArgs(args: AskUser.Args): JsonObject
Link copied to clipboard
Link copied to clipboard
open override fun encodeResultToString(result: ToolResult.Text): String
Link copied to clipboard
Link copied to clipboard