How can you extend a tool to handle multiple commands dynamically within the same function when used by an agent?
AUse a Tool with no function and rely on the agent to handle commands
BCreate multiple Tools each handling one command and switch between them manually
CModify the agent code to ignore tool functions and handle commands internally
DWrite a function that parses the input command and executes different logic accordingly, then wrap it in a Tool