Interface PartParser<T extends io.a2a.spec.Part<?>>

All Known Implementing Classes:
DataPartParser, FilePartParser, TextPartParser

public interface PartParser<T extends io.a2a.spec.Part<?>>
Part parser interface, used to parse Part and convert to ContentBlock.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.agentscope.core.message.ContentBlock
    parse(T part)
    Parse the given part and convert it to a ContentBlock.
  • Method Details

    • parse

      io.agentscope.core.message.ContentBlock parse(T part)
      Parse the given part and convert it to a ContentBlock.
      Parameters:
      part - the part to parse, not null
      Returns:
      the parsed content block