Fortschritts-Quest v1.0 — Automatisches RPG mit lokalem LLM

This commit is contained in:
arch_agent
2026-07-25 18:39:29 +02:00
commit f3f165bf78
3270 changed files with 542895 additions and 0 deletions
@@ -0,0 +1,17 @@
from typing import Optional
def pick_bool(*values: Optional[bool]) -> bool:
"""Pick the first non-none bool or return the last value.
Args:
*values (bool): Any number of boolean or None values.
Returns:
bool: First non-none boolean.
"""
assert values, "1 or more values required"
for value in values:
if value is not None:
return value
return bool(value)