parse_attachments_from_messages
| Name | Type | Description |
|---|---|---|
messages | List[GenerationRequestMessage] | The messages to parse attachments from. |
| Name | Description |
|---|---|
tuple | A tuple containing the modified messages and the list of attachments. |
Utility functions and helpers for Components integration.
def parse_attachments_from_messages(
messages: list["GenerationRequestMessage"]
) -> Tuple[list["GenerationRequestMessage"], list["Attachment"]]
| Name | Type | Description |
|---|---|---|
messages | List[GenerationRequestMessage] | The messages to parse attachments from. |
| Name | Description |
|---|---|
tuple | A tuple containing the modified messages and the list of attachments. |
Was this page helpful?