API/CreateResult

Data Objects

CreateResult

Read paths, identity, version, digest, and validation report returned by create_octx().

CreateResult is the immutable result object returned after create_octx() succeeds. It provides the published Package path, identity, version, digest, and validation report in one place.

Getting the object

python
from octx import create_octx

result = create_octx(
    "./.octx-workspace",
    source="./knowledge",
    name="Product Guide",
    output="./product-guide.octx",
)

A CreateResult is returned only after the Package has been completely built, validated, and successfully published.

Fields

FieldPurpose
outputAbsolute Path to the published .octx file.
workspaceAbsolute Path to the production workspace.
asset_idAsset UUIDv7.
versionSemVer of this Release.
created_atRelease creation time.
package_digestsha256: Package Digest.
document_idsRead-only mapping from knowledge/...md to Document UUIDv7.
reportValidationReport completed before publication.
statusAlways "ready".

Serialization

result.to_dict() returns a JSON-serializable structure suitable for CLIs, logs, or API responses:

python
payload = result.to_dict()
print(payload["asset_id"], payload["package_digest"])