Create a PlainTextContentBlock.
create_plaintext_block(
text: str | None = None,
url: str | None = None,
base64: str | None = None,
file_id: str | None = None,
title: str | None = None,
context: str | None = None,
id: str | None = None,
index: int | str | None = None,
**kwargs: Any = {}
) -> PlainTextContentBlockThe id is generated automatically if not provided, using a UUID4 format
prefixed with 'lc_' to indicate it is a LangChain-generated ID.
| Name | Type | Description |
|---|---|---|
text | str | None | Default: NoneThe plaintext content. |
url | str | None | Default: NoneURL of the plaintext file. |
base64 | str | None | Default: NoneBase64-encoded plaintext data. |
file_id | str | None | Default: NoneID of the plaintext file from a file storage system. |
title | str | None | Default: NoneTitle of the text data. |
context | str | None | Default: NoneContext or description of the text content. |
id | str | None | Default: NoneContent block identifier. Generated automatically if not provided. |
index | int | str | None | Default: NoneIndex of block in aggregate response. Used during streaming. |