json_defs.message package#

Submodules#

json_defs.message.message module#

Message module.

This module contains class and related object/attribute definitions for application message structure.

class json_defs.message.message.MessageJSON(*, content: str, thread_id: int, context_id: int, partition_hint: int, parent_message_id: int | None)[source]#

Bases: BaseModel

TypedDict-like definition of JSON object schema for generated message

content: str#
context_id: int#
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'content': FieldInfo(annotation=str, required=True), 'context_id': FieldInfo(annotation=int, required=True), 'parent_message_id': FieldInfo(annotation=Union[int, NoneType], required=True), 'partition_hint': FieldInfo(annotation=int, required=True), 'thread_id': FieldInfo(annotation=int, required=True)}#

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

parent_message_id: int | None#
partition_hint: int#
thread_id: int#

Module contents#