AgenticToolSupport

Shared support utilities for agentic tool implementations.

Functions

Link copied to clipboard
fun createResult(output: String, artifacts: List<Any>): Tool.Result

Convert artifacts to a Tool.Result.

Link copied to clipboard

Execute the agentic tool loop with the given configuration.

Link copied to clipboard
fun getAgentProcessOrError(toolName: String, logger: <Error class: unknown class>): <Error class: unknown class><AgentProcess?, Tool.Result?>

Get the current AgentProcess or return an error result.