Interface ChatResponseMetadata

All Superinterfaces:
ResponseMetadata
All Known Implementing Classes:
AzureOpenAiChatResponseMetadata, OpenAiChatResponseMetadata, VertexAiChatResponseMetadata

public interface ChatResponseMetadata extends ResponseMetadata
Abstract Data Type (ADT) modeling common AI provider metadata returned in an AI response.
Since:
0.7.0
Author:
John Blum
  • Field Details

  • Method Details

    • getRateLimit

      default RateLimit getRateLimit()
      Returns AI provider specific metadata on rate limits.
      Returns:
      AI provider specific metadata on rate limits.
      See Also:
    • getUsage

      default Usage getUsage()
      Returns AI provider specific metadata on API usage.
      Returns:
      AI provider specific metadata on API usage.
      See Also:
    • getPromptMetadata

      default PromptMetadata getPromptMetadata()