Module part_converter

Module part_converter 

Source
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.