Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions crates/libsy/src/algorithms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub mod llm_class;
pub mod noop;
pub mod passthrough;
pub mod rand;
pub mod rlcd;
pub mod stage;
pub mod subagent;

Expand Down
2 changes: 1 addition & 1 deletion crates/libsy/src/algorithms/llm_class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ fn window_start(tail: &[&Message], recent_turn_window: usize) -> usize {
}

/// Keeps the opening task and the latest user follow-up when they differ.
fn task_messages(messages: &[Message]) -> Vec<Message> {
pub(crate) fn task_messages(messages: &[Message]) -> Vec<Message> {
// Decoders also use the user role for tool results. Select ordinary user content
// first, so a tool result cannot replace the opening task or latest follow-up.
let is_task_content = |block: &ContentBlock| {
Expand Down
Loading
Loading