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

Function parse_py_worker_agent_kind

sdk/python/src/lib.rs:4651–4654  ·  view source on GitHub ↗
(kind: &str)

Source from the content-addressed store, hash-verified

4649}
4650
4651fn parse_py_worker_agent_kind(kind: &str) -> PyResult<RustWorkerAgentKind> {
4652 kind.parse::<RustWorkerAgentKind>()
4653 .map_err(|e| PyValueError::new_err(e.to_string()))
4654}
4655
4656fn py_worker_agent_spec_to_rust(spec: PyWorkerAgentSpec) -> PyResult<RustWorkerAgentSpec> {
4657 if spec.name.trim().is_empty() {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected