SessionSummary#

Restore model context and preserve immutable original messages. See the guide.

class zett_agent.extensions.persistence.SessionSummary(*, session_id, parent_session_id=None, session_type, title=None, agent_name=None, message_count, created_at, updated_at)[源代码]#

Small read model used to list persisted conversation sessions.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

参数:
  • session_id (str)

  • parent_session_id (str | None)

  • session_type (int)

  • title (Annotated[str | None, MinLen(min_length=1), MaxLen(max_length=200)])

  • agent_name (Annotated[str | None, MinLen(min_length=1), MaxLen(max_length=64)])

  • message_count (int)

  • created_at (datetime)

  • updated_at (datetime)

Fields#

session_id (required)

Stable conversation identifier

parent_session_id (optional)

Parent conversation for a delegated subagent; null for a root session

session_type (required)

Storage-owned integer code describing the session origin

title (optional)

Human-readable session title; applications may update it

agent_name (optional)

Provider-neutral agent profile owning the session

message_count (required)

Number of immutable Raw Log messages

created_at (required)

UTC time of the first Raw Log message

updated_at (required)

UTC time of the latest Raw Log message