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.

Any(*args, **kwargs)

Special type indicating an unconstrained type.

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.

Tool(*[, type, description, ignore_errors])

A callable tool that can be used by AI models to perform specific functions.

ToolExecutionResult(*[, type, ...])

Represents the result of a tool execution within a step.

ToolExecutionSuggestion(*[, type, id, args])

Represents a suggestion to execute a specific tool.