Skip to main content

module cleanlab_codex.types.entry

Types for Codex entries.


class EntryCreate

Input type for creating a new Entry in a Codex project. Use this class to add a new Question-Answer pair to a project.

class EntryCreate(TypedDict):
question: 'str'
answer: 'typing.Optional[str]'

class Entry

Type representing an Entry in a Codex project. This is the complete data structure returned from the Codex API, including system-generated fields like ID and timestamps.

class Entry:
created_at: 'datetime'
question: 'str'
id: 'typing.Optional[str]'
answer: 'typing.Optional[str]'
answered_at: 'typing.Optional[datetime.datetime]'

property model_extra

Get extra fields set during validation.

Returns: A dictionary of extra fields, or None if config.extra is not set to "allow".


property model_fields_set

Returns the set of fields that have been explicitly set on this model instance.

Returns: A set of strings representing the fields that have been set, i.e. that were not filled from defaults.