Optional ReadonlycontentThe reason this choice completed for the generation.
Optional ReadonlyfinishThe reason this choice completed for the generation.
ReadonlymetadataStaticfromFactory method used to construct a new ChatGenerationMetadata from the given finish reason and content filter metadata.
OptionalfinishReason: string
The reason for completion.
OptionalcontentFilterMetadata: any
The content filter metadata.
A new instance of ChatGenerationMetadata.
Interface representing metadata associated with the results of an AI model. This interface focuses on providing additional context and insights into the results generated by AI models. It could include information like computation time, model version, or other relevant details that enhance understanding and management of AI model outputs in various applications.