Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 2 KB

File metadata and controls

47 lines (38 loc) · 2 KB

ChunkResponse

Chunk response model.

Properties

Name Type Description Notes
id UUID Chunk ID
path_part_id UUID PathPart ID
content_id UUID ChunkContent ID
content str Chunk text content
chunk_type ChunkType
chunk_metadata ChunkMetadataOutput
num_tokens int Number of tokens in chunk content [optional]
parent_path_id UUID Parent PathPart ID
prev_sibling_path_id UUID Previous sibling PathPart ID [optional]
next_sibling_path_id UUID Next sibling PathPart ID [optional]
materialized_path str Full materialized path from root
system_managed bool Whether this chunk is system-managed
tenant_id UUID Tenant ID
created_at datetime Creation timestamp
updated_at datetime Last update timestamp
asset_s3_urls List[str] Presigned URLs to download the chunk's visual assets (6-hour validity) [optional]
document ChunkDocumentResponse [optional]
document_version ChunkDocumentVersionResponse [optional]

Example

from ksapi.models.chunk_response import ChunkResponse

# TODO update the JSON string below
json = "{}"
# create an instance of ChunkResponse from a JSON string
chunk_response_instance = ChunkResponse.from_json(json)
# print the JSON string representation of the object
print(ChunkResponse.to_json())

# convert the object into a dict
chunk_response_dict = chunk_response_instance.to_dict()
# create an instance of ChunkResponse from a dict
chunk_response_from_dict = ChunkResponse.from_dict(chunk_response_dict)

[Back to Model list] [Back to API list] [Back to README]