Skip to main content

aip_sdk.Message

aip_sdk.Message

A role-tagged message composed of typed parts.

aip_sdk.Message.model_config​

aip_sdk.Message.model_config = ConfigDict(extra='allow')

No docstring is defined in the source.

aip_sdk.Message.parts​

aip_sdk.Message.parts: list[MessagePart] = Field(default_factory=list[MessagePart])

No docstring is defined in the source.

aip_sdk.Message.role​

aip_sdk.Message.role: str

No docstring is defined in the source.

aip_sdk.Message.text​

aip_sdk.Message.text: str

Concatenate the text content of this message's parts.

Returns

  • str: The joined text-part content, or an empty string if the message
  • str: carries no text parts. Non-string content on a text part is skipped.