Skip to content

Merge root and Thread kinds; derive behavior from parent #4275

Todo

Description

@sentry-junior

root and thread are separate Conversation kinds, but most of what differs between them follows from whether the Conversation has a parent. The one difference that doesn't is that a person's Turn in a Thread can't start child agents (agents: "none"), because a Thread doesn't store who asked for it.

Proposed plan (from the review on #4273, #4273 (comment)):

  1. Store the person who asked for each child Conversation, which removes the agents: "none" case. This overlaps Resolve actor identity once and store it explicitly #2439.
  2. Have turnBehavior decide from "has a parent" plus the sender, not from root vs thread.
  3. Merge the thread kind into root, keep parent_id, and migrate the stored rows. The prompt becomes the root prompt plus a section only for Conversations that have a parent.
  4. Update TERMINOLOGY.md, the dashboard labels, the baseline, and the evals. Any design/ change needs confirmed text first.

via @dcramer.

--

View Session [Sentry]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions