withToolObject

fun withToolObject(toolObject: Any): AgenticTool

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