Skip to content

SDKControlGenerateSessionTitleRequest

Base classes

Name Children Inherits
_ControlBase
clawd_code_sdk.models.control
Frozen base for all SDK control request models.

⋔ Inheritance diagram

graph TD
  486106122["control.SDKControlGenerateSessionTitleRequest"]
  1268774935["control._ControlBase"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  1268774935 --> 486106122
  3879467795 --> 1268774935
  2751680898 --> 3879467795

🛈 DocStrings

Bases: _ControlBase

Generates a title for a session from a description of it.

Source code in src/clawd_code_sdk/models/control.py
class SDKControlGenerateSessionTitleRequest(_ControlBase):
    """Generates a title for a session from a description of it."""

    subtype: Literal["generate_session_title"] = "generate_session_title"
    description: str
    """Text to title, e.g. the conversation's latest user and assistant text."""
    persist: bool | None = None
    """Store the title as the current session's title. A session that has one already
    (the CLI titles new sessions itself) returns it instead of generating another."""

description instance-attribute

description: str

Text to title, e.g. the conversation's latest user and assistant text.

persist class-attribute instance-attribute

persist: bool | None = None

Store the title as the current session's title. A session that has one already (the CLI titles new sessions itself) returns it instead of generating another.

:fa-brands-github: Show source on GitHub