Expand description
Bidirectional conversion between A2A parts and GenAI parts. Bidirectional GenAI <-> A2A Part conversion.
Constants§
- ADK_
IS_ LONG_ RUNNING_ KEY - Metadata key flagging a function call as long-running.
- ADK_
THOUGHT_ KEY - Metadata key for thought/reasoning content.
- ADK_
TYPE_ KEY - Metadata key identifying the ADK type of a data part.
- DATA_
TYPE_ CODE_ EXEC_ RESULT - Type tag for code execution result data parts.
- DATA_
TYPE_ EXECUTABLE_ CODE - Type tag for executable code data parts.
- DATA_
TYPE_ FUNCTION_ CALL - Type tag for function call data parts.
- DATA_
TYPE_ FUNCTION_ RESPONSE - Type tag for function response data parts.
Functions§
- to_
a2a_ part - Convert a single GenAI Part to an A2A Part.
- to_
a2a_ parts - Convert GenAI Parts to A2A Parts.
- to_
genai_ part - Convert a single A2A Part to a GenAI Part.
- to_
genai_ parts - Convert A2A Parts to GenAI Parts.