This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /api/python/results/parse-result.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. ParseResult

The artifacts produced by parse: the same files, under the same names and with the same content, that the hosted service returns for the same request.

from nutrient_sdk import ParseResult

Construction

ParseResult cannot be instantiated directly. Obtain instances through static factory methods or via other SDK classes.

Methods

get_artifact

def get_artifact(self, name: str) -> str

Returns the content of an artifact, exactly as the run produced it.

Parameters:

NameTypeDescription
namestrThe artifact file name, for example document.json.

Returns: str - The artifact content. Raises:


has_artifact

def has_artifact(self, name: str) -> bool

Whether this run produced an artifact with the given file name.

Parameters:

NameTypeDescription
namestrThe artifact file name, for example document.json.

Returns: bool - True when the artifact was produced.


save_to

def save_to(self, directory: str) -> None

Writes every artifact into a directory under its own file name, creating the directory when needed and replacing files that already exist.

Parameters:

NameTypeDescription
directorystrThe directory to write into.

Raises:


Properties

artifact_names

@property
def artifact_names(self) -> list

The file names of the artifacts this run produced, sorted.

Type: list

Read-only property.


document_json

@property
def document_json(self) -> str

The content of document.json, or null when this run did not produce it.

Type: str

Read-only property.


document_md

@property
def document_md(self) -> str

The content of document.md, or null when this run did not produce it.

Type: str

Read-only property.