bxcore: a turn's speaker, SessionUpdated's turn, the session-state messages
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
This commit is contained in:
@@ -94,6 +94,8 @@ impl MemorySource for MemoryPort {
|
||||
fn updated(&self, session: &SessionId) -> Result<(), String> {
|
||||
match self.ask(Message::SessionUpdated(SessionUpdated {
|
||||
session: session.clone(),
|
||||
// Set in M5c-1 task 02. `memoryd` does not read it before M5c-1 task 09.
|
||||
turn: 0,
|
||||
}))? {
|
||||
Message::Ok(_) => Ok(()),
|
||||
Message::Error(e) => Err(format!("memoryd: {}", e.detail)),
|
||||
|
||||
@@ -123,6 +123,9 @@ pub fn run_turn(
|
||||
.append(LogRecord::User {
|
||||
time: Timestamp::now(),
|
||||
content: neutralise(content).into_owned(),
|
||||
// Set in M5c-1 task 02, from the turn. `None` is not written: the record's bytes
|
||||
// are as before.
|
||||
speaker: None,
|
||||
})
|
||||
.map_err(TurnError::Session)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user