proto: memory, the arguments of recall and memory and eight message kinds
Implemented-By: OpenCode session (model recorded in docs/implementer-log.md)
This commit is contained in:
@@ -88,7 +88,7 @@ impl Broker {
|
||||
}
|
||||
}
|
||||
|
||||
/// The snake_case wire name of a message: all eighteen kinds, none with a leading underscore.
|
||||
/// The snake_case wire name of a message: all twenty-six kinds, none with a leading underscore.
|
||||
pub fn kind(msg: &Message) -> &'static str {
|
||||
match msg {
|
||||
Message::ToolRequest(_) => "tool_request",
|
||||
@@ -109,6 +109,14 @@ pub fn kind(msg: &Message) -> &'static str {
|
||||
Message::ApprovalPosted(_) => "approval_posted",
|
||||
Message::ApprovalReply(_) => "approval_reply",
|
||||
Message::ApprovalOutcome(_) => "approval_outcome",
|
||||
Message::MemoryBlock(_) => "memory_block",
|
||||
Message::MemoryBlockReply(_) => "memory_block_reply",
|
||||
Message::SessionUpdated(_) => "session_updated",
|
||||
Message::MemoryCall(_) => "memory_call",
|
||||
Message::Reindex(_) => "reindex",
|
||||
Message::Reindexed(_) => "reindexed",
|
||||
Message::MemoryAdmin(_) => "memory_admin",
|
||||
Message::MemoryAdminReply(_) => "memory_admin_reply",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user