Skip to main content

Module pi_message

Module pi_message 

Source
Expand description

Reading Pi message JSON ({role, content, ...}), whose content is a string or a list of blocks.

Functions§

content_text
A content’s text blocks joined by separator (a string content as it is).
text
The text blocks of a message joined (a string content as it is).