Package-level declarations

Types

Link copied to clipboard
data class ToolCallCompletedContext(val runId: String, val toolCallId: String?, val tool: Tool<*, *>, val toolArgs: Any?, val result: Any?) : ToolCallEventContext

Represents the context used when handling the result of a tool call.

Link copied to clipboard

Represents the context for handling tool-specific events within the framework.

Link copied to clipboard

Handler for executing tools with customizable behaviors for tool calls, validation errors, failures, and results.

Link copied to clipboard
data class ToolCallFailedContext(val runId: String, val toolCallId: String?, val tool: Tool<*, *>, val toolArgs: Any?, val throwable: Throwable) : ToolCallEventContext

Represents the context provided to handle a failure during the execution of a tool.

Link copied to clipboard

Functional interface for handling failures that occur during the execution of a tool. This interface provides a mechanism to manage errors resulting from tool operations, including access to the tool, its arguments, and the associated error.

Link copied to clipboard
fun interface ToolCallHandler

Functional interface representing a handler for tool calls. This interface allows the implementation of custom logic to handle the execution of tools and their associated arguments.

Link copied to clipboard
fun interface ToolCallResultHandler

A functional interface designed for handling the result of tool executions in a structured manner. Implementations can define custom logic for processing the result of a tool based on the provided tool instance, its arguments, and the execution result.

Link copied to clipboard
data class ToolCallStartingContext(val runId: String, val toolCallId: String?, val tool: Tool<*, *>, val toolArgs: Any?) : ToolCallEventContext

Represents the context for handling a tool call event.

Link copied to clipboard

A functional interface to handle validation errors that occur during the execution or configuration of a tool. This interface provides a mechanism for processing or logging errors associated with tools and their arguments.

Link copied to clipboard
data class ToolValidationFailedContext(val runId: String, val toolCallId: String?, val tool: Tool<*, *>, val toolArgs: Any?, val error: String) : ToolCallEventContext

Represents the context for handling validation errors that occur during the execution of a tool.