mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-21 08:02:38 +00:00
chore: keep the empty messages comment within the line width
This commit is contained in:
@@ -995,7 +995,7 @@ pub async fn run_agent(
|
||||
.map(|m| !m.is_empty())
|
||||
.unwrap_or(false);
|
||||
|
||||
// An empty list, such as a messages expression that evaluated to null, is no conversation to send.
|
||||
// An empty list, as a messages expression evaluating to null gives, is no conversation to send.
|
||||
if !matches!(&history, HistorySource::Messages(m) if !m.is_empty()) && !has_user_message {
|
||||
return Err(Error::internal_err(
|
||||
"Either 'messages' or 'user_message' must be provided".to_string(),
|
||||
|
||||
Reference in New Issue
Block a user