MCPcopy Index your code
hub / github.com/AI45Lab/Code / parse_lane

Function parse_lane

sdk/python/src/lib.rs:5796–5807  ·  view source on GitHub ↗
(lane: &str)

Source from the content-addressed store, hash-verified

5794// ============================================================================
5795
5796fn parse_lane(lane: &str) -> PyResult<RustSessionLane> {
5797 match lane {
5798 "control" => Ok(RustSessionLane::Control),
5799 "query" => Ok(RustSessionLane::Query),
5800 "execute" => Ok(RustSessionLane::Execute),
5801 "generate" => Ok(RustSessionLane::Generate),
5802 _ => Err(PyValueError::new_err(format!(
5803 "Invalid lane '{}'. Must be: control, query, execute, or generate",
5804 lane
5805 ))),
5806 }
5807}
5808
5809fn parse_handler_mode(mode: &str) -> PyResult<RustTaskHandlerMode> {
5810 match mode {

Callers 2

set_lane_handlerMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected