You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fix: legacy llm_call/llm_chat/llm_embed match arms now cfg-gated with
#[cfg(feature = "llm-builtins")] so the modern native-llm arms at the
bottom of the match actually fire in default builds (they were blocked)
- Fix: deduplicate is_known_builtin() LLM pattern list — duplicate arms
caused "unreachable pattern" warnings in 14 spots; now only listed once
- New: llm_call(prompt, model?, system?) supports optional 3rd system-prompt
argument (matches usage in examples/lib/llm.omc)
- New: llm_system(prompt, system, model?) convenience builtin for one-shot
system-prompt calls; llm_call_sys() internal helper shared with llm_system
- New: multi_agent_debate.omc — agents argue FOR/AGAINST via batch_llm_call,
judge evaluates all rounds and returns winner + confidence via json_extract
- Docs: llm_system entry added to llm_workflow category in docs.rs
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
prompt = str_concat(prompt, "\n\nMake your 2 best arguments for the ", position, " side.")
20
+
return {prompt: prompt, system: sys}
21
+
}
22
+
23
+
fn judge_debate(topic, for_args, against_args) {
24
+
h sys = "You are an impartial judge. Evaluate the quality of arguments on both sides. Respond in JSON: {winner: 'FOR'|'AGAINST', confidence: 1-10, reasoning: '...'}"
25
+
h combined_for = arr_join(for_args, "\n---\n")
26
+
h combined_against = arr_join(against_args, "\n---\n")
27
+
h prompt = str_concat(
28
+
"Topic: ", topic,
29
+
"\n\nFOR arguments:\n", combined_for,
30
+
"\n\nAGAINST arguments:\n", combined_against,
31
+
"\n\nWho made the stronger case? Reply with JSON only."
0 commit comments