mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-07 15:32:21 +02:00
Consolidate Odysseus agent harness and tool contracts
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
"""Validation shared by direct native generation paths."""
|
||||
import math
|
||||
|
||||
|
||||
def validate_temperature(value):
|
||||
if type(value) not in (int, float) or not math.isfinite(value) or value < 0:
|
||||
raise ValueError('temperature must be a finite nonnegative number')
|
||||
return float(value)
|
||||
Reference in New Issue
Block a user