This had been used to return additional information about the generation because we didn't have a first class place to store the metadata. Now we do have that location, as Generation implements ModelResult<AssistantMessage> which has a place for metadata.

We should then remove Map<String, Object> getMetadata(); from interface Content

Places to look for removing the assignment of metadata are in the various model class implementation such as OpenAiChatModel and moving metadata such as finish_reason into ChatGenerationMetadata