withToolObject

open override fun withToolObject(toolObject: Any): SimpleAgenticTool

Create a copy with tools extracted from an object with @LlmTool methods. If the object has no @LlmTool methods, returns this unchanged.