MCPcopy Create free account
hub / github.com/AI45Lab/Code / gen_step_outcome

Function gen_step_outcome

core/tests/test_persisted_schema_roundtrip.rs:608–621  ·  view source on GitHub ↗
(rng: &mut Rng)

Source from the content-addressed store, hash-verified

606}
607
608fn gen_step_outcome(rng: &mut Rng) -> StepOutcome {
609 StepOutcome {
610 task_id: rng.string(),
611 session_id: rng.string(),
612 agent: rng.string(),
613 output: rng.string(),
614 success: rng.boolean(),
615 structured: if rng.boolean() {
616 Some(rng.json_value_non_null(2))
617 } else {
618 None
619 },
620 }
621}
622
623fn gen_workflow_checkpoint(rng: &mut Rng) -> WorkflowCheckpoint {
624 let n = rng.below(4);

Calls 3

stringMethod · 0.80
booleanMethod · 0.80
json_value_non_nullMethod · 0.80

Tested by

no test coverage detected