Support non interactive mode and model selection

This commit is contained in:
Illia Polosukhin
2026-02-03 14:47:26 -08:00
parent 2cc9aed364
commit 2c26ba8431
17 changed files with 999 additions and 141 deletions
+9 -7
View File
@@ -115,13 +115,15 @@ impl Router {
fn extract_intent(&self, content: &str) -> MessageIntent {
let lower = content.to_lowercase();
// Job creation patterns
if lower.starts_with("create ")
|| lower.starts_with("make ")
|| lower.starts_with("new job")
|| lower.contains("i need")
|| lower.contains("can you")
{
// Job creation patterns - must be explicit about creating a job
// More specific patterns to avoid capturing general conversation
let is_job_creation = lower.starts_with("create job ")
|| lower.starts_with("new job ")
|| lower.starts_with("schedule job ")
|| lower.starts_with("run job ")
|| (lower.contains("create") && lower.contains("job"));
if is_job_creation {
return MessageIntent::CreateJob {
title: extract_title(content),
description: content.to_string(),