Contract at server dev 2fd3c03: the tree frame, and a subagent asking
CI / check (push) Canceled after 0s
CI / check (push) Canceled after 0s
The server's /api/v2 now carries the 3.4.0 subagents (2fd3c03):
- the stream's `tree` frame {tree} (event_tree.json): LiveReply keeps it,
ChatState keeps the last one after the reply ends (cleared when another
chat opens), and the activity sheet draws it as the reduced list. The
provisional `Activity.tree` is gone -- the tree never came that way.
- an ask item's `subagent {id, name, position}` (event_ask.json card4): the
approval names it with the page's sentence ("Subagent parser (s1),
reviews the parser, asks:"), translated from the server's catalogue.
- an agent chat's `subagents.offered` is true where the instance allows
them (chat_agent.json): the Subagents setting shows for an existing agent
chat by the chat's own word.
ContractTest: the tree frame, the subagent's card; the agent chat offered.
Screenshot 24-approval-subagent; 26-subagents from the tree.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
24 files changed
+239
-62
No files matched your search
@@ -419,8 +419,13 @@ data class CardItem(
|
||||
val plan: JsonObject? = null,
|
||||
@SerialName("mode_choice") val modeChoice: Boolean = false,
|
||||
val job: String = "",
|
||||
/** The tree subagent asking (spec 3.4.0), for a call nobody in the tree may allow; null otherwise. */
|
||||
val subagent: CardSubagent? = null,
|
||||
)
|
||||
|
||||
@Serializable
|
||||
data class CardSubagent(val id: String = "", val name: String = "", val position: String = "")
|
||||
|
||||
@Serializable
|
||||
data class Card(
|
||||
val id: String,
|
||||
@@ -485,6 +490,10 @@ data class SteeredFrame(val ids: List<String> = emptyList())
|
||||
@Serializable
|
||||
data class StatusFrame(val text: String = "", val progress: Progress? = null)
|
||||
|
||||
/** The `tree` frame (spec 3.4.0): the subagent tree, once there is one, whenever it changes. */
|
||||
@Serializable
|
||||
data class TreeFrame(val tree: SubagentTree? = null)
|
||||
|
||||
@Serializable
|
||||
data class AskFrame(val cards: List<Card> = emptyList())
|
||||
|
||||
@@ -648,11 +657,6 @@ data class Activity(
|
||||
val context: ContextUse? = null,
|
||||
val outputs: List<Output> = emptyList(),
|
||||
val plan: JsonObject? = null,
|
||||
/**
|
||||
* The subagent tree (harness spec 3.4.0, `subagents.md` §12), where the server sends it;
|
||||
* null from an older one, which the Tasks section's team members stand for.
|
||||
*/
|
||||
val tree: SubagentTree? = null,
|
||||
)
|
||||
|
||||
@Serializable
|
||||
|
||||
Reference in new issue
Block a user