All Known Implementing Classes:
Content.AudioContent, Content.CodeExecutionCallContent, Content.CodeExecutionResultContent, Content.DocumentContent, Content.FileSearchCallContent, Content.FileSearchResultContent, Content.FunctionCallContent, Content.FunctionResultContent, Content.GoogleSearchCallContent, Content.GoogleSearchResultContent, Content.ImageContent, Content.McpServerToolCallContent, Content.McpServerToolResultContent, Content.TextContent, Content.ThoughtContent, Content.UrlContextCallContent, Content.UrlContextResultContent, Content.VideoContent

Represents the content of the response or input. This is a sealed interface corresponding to the 'Content' schema in the OpenAPI spec.
  • Method Details

    • type

      String type()
      Returns the type of content.
      Returns:
      The content type.