Class VideoBlockParser

java.lang.Object
io.agentscope.core.a2a.agent.message.BaseMediaBlockParser<io.agentscope.core.message.VideoBlock>
io.agentscope.core.a2a.agent.message.VideoBlockParser
All Implemented Interfaces:
ContentBlockParser<io.agentscope.core.message.VideoBlock>

public class VideoBlockParser extends BaseMediaBlockParser<io.agentscope.core.message.VideoBlock>
Parser for VideoBlock to FilePart.
  • Constructor Details

    • VideoBlockParser

      public VideoBlockParser()
  • Method Details

    • getMediaType

      protected String getMediaType()
      Description copied from class: BaseMediaBlockParser
      Get the media type for the content block.
      Specified by:
      getMediaType in class BaseMediaBlockParser<io.agentscope.core.message.VideoBlock>
      Returns:
      the media type string
    • parse

      public io.a2a.spec.Part<?> parse(io.agentscope.core.message.VideoBlock contentBlock)
      Description copied from interface: ContentBlockParser
      Parse the given ContentBlock and convert it to a Part.
      Parameters:
      contentBlock - the content block to parse, not null
      Returns:
      the parsed part