agentle.agents.a2a.message_parts.adapters.agent_part_to_generation_part_adapter

A2A Message Part to Generation Message Part Adapter

This module provides an adapter for converting A2A message parts to Generation message parts. The adapter ensures compatibility between the A2A protocol’s message parts and the generation system’s message parts.

Classes

Adapter()

AgentPartToGenerationPartAdapter()

Adapter for converting A2A message parts to Generation message parts.

DataPart(*[, type])

Represents a structured data component of a message in the A2A protocol.

FilePart(*[, type])

Represents a file component of a message in the A2A protocol.

GenerationFilePart

alias of FilePart

GenerationTextPart

alias of TextPart

TextPart(*[, type])

Represents a text component of a message in the A2A protocol.