withToolObject

abstract fun withToolObject(toolObject: Any): THIS

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