Harden LLM proposal parsing
This commit is contained in:
@@ -671,6 +671,17 @@ class CoreFlowTests(unittest.TestCase):
|
||||
self.assertEqual(state.best_request_rate, 2.0)
|
||||
self.assertEqual(state.next_trial_index, 3)
|
||||
|
||||
def test_proposal_expected_effects_accepts_string(self) -> None:
|
||||
proposal = Proposal.from_dict(
|
||||
{
|
||||
"observation": "obs",
|
||||
"diagnosis": "diag",
|
||||
"config_patch": {"env_patch": {}, "flag_patch": {}},
|
||||
"expected_effects": "higher throughput",
|
||||
}
|
||||
)
|
||||
self.assertEqual(proposal.expected_effects, ["higher throughput"])
|
||||
|
||||
def test_replay_requests_early_stops_when_slo_is_unrecoverable(self) -> None:
|
||||
requests = [
|
||||
TraceRequest(
|
||||
|
||||
Reference in New Issue
Block a user