Skip to content

trulens.core.schema.types

trulens.core.schema.types

Type aliases.

Attributes

RecordID module-attribute

RecordID: TypeAlias = str

Unique identifier for a record.

By default these hashes of record content as json. Record.record_id.

CallID module-attribute

CallID: TypeAlias = str

Unique identifier for a record app call.

See RecordAppCall.call_id.

AppID module-attribute

AppID: TypeAlias = str

Unique identifier for an app.

By default these are hashes of app content as json. See AppDefinition.app_id.

AppName module-attribute

AppName: TypeAlias = str

Unique App name.

See AppDefinition.app_name.

AppVersion module-attribute

AppVersion: TypeAlias = str

Version identifier for an app.

See AppDefinition.app_version.

Tags module-attribute

Tags: TypeAlias = str

Tags for an app or record.

See AppDefinition.tags and Record.tags.

Metadata module-attribute

Metadata: TypeAlias = Dict

Metadata for an app, record, groundtruth, or dataset.

See AppDefinition.metadata, Record.meta, GroundTruth.meta, and Dataset.meta.

FeedbackDefinitionID module-attribute

FeedbackDefinitionID: TypeAlias = str

Unique identifier for a feedback definition.

By default these are hashes of feedback definition content as json. See FeedbackDefinition.feedback_definition_id.

FeedbackResultID module-attribute

FeedbackResultID: TypeAlias = str

Unique identifier for a feedback result.

By default these are hashes of feedback result content as json. See FeedbackResult.feedback_result_id.

GroundTruthID module-attribute

GroundTruthID: TypeAlias = str

Unique identifier for a groundtruth.

By default these are hashes of ground truth content as json.

DatasetID module-attribute

DatasetID: TypeAlias = str

Unique identifier for a dataset.

By default these are hashes of dataset content as json.

Functions

new_call_id

new_call_id() -> CallID

Generate a new call id.