ExitTool

An object representing the exit tool, primarily intended for ending conversations upon user request or based on agent decision. This tool finalizes interactions with a provided message.

The tool utilizes a structured set of arguments, which includes the final message of the agent to provide closure to the conversation. It returns the result as a standardized string, signaling the execution has been completed.

The descriptor defines the tool's metadata including its name, description, and required parameters.

Types

Link copied to clipboard
data class Args(val message: String)

Represents the arguments for the ExitTool tool

Properties

Link copied to clipboard
Link copied to clipboard
open override val description: String
Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val resultSerializer: KSerializer<String>

Functions

Link copied to clipboard
Link copied to clipboard
open suspend override fun doExecute(args: ExitTool.Args): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun execute(args: ExitTool.Args, enabler: DirectToolCallsEnabler): String
Link copied to clipboard
suspend fun executeUnsafe(args: Any?, enabler: DirectToolCallsEnabler): String