Skip to main content

Module conversation

Module conversation 

Source
Expand description

Helpers for composing agent conversations and bridging provider-specific message formats.

Functionsยง

build_conversation
Build the initial conversation payload (without the system instruction message).
build_messages_from_conversation
Convert Gemini Content structures into universal provider messages.
conversation_from_messages
Rebuild Gemini-style conversation content from archived provider messages.
messages_from_conversation
Convert Gemini Content structures into universal provider messages.