This PR applies some refactorings made in our other repos to this version of the `anthropic` crate. Release Notes: - N/A