ToolReference

A reference to a tool in the tool configuration. Used with ToolAdditionBlock and ToolRemovalBlock to identify which tool to add or remove mid-conversation.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val name: String?

The name of the tool. Must match the name of a tool declared in the top-level tool configuration.

Link copied to clipboard

The name of the MCP server that provides the tool. Required when referencing an MCP tool.

Link copied to clipboard
val type: String?

The type of tool reference.

Functions

Link copied to clipboard
inline fun copy(block: ToolReference.Builder.() -> Unit = {}): ToolReference
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String