TODO: add a function that flattens all content, e.g., tool descriptions, for better token management.
TODO: add a function that flattens all content, e.g., tool descriptions, for better token management.