MCPcopy Create free account
hub / github.com/modelscope/ms-agent / _validate_priority

Function _validate_priority

ms_agent/tools/todolist_tool.py:49–55  ·  view source on GitHub ↗
(priority: str)

Source from the content-addressed store, hash-verified

47
48
49def _validate_priority(priority: str) -> str:
50 allowed = {'high', 'medium', 'low'}
51 if priority not in allowed:
52 raise ValueError(
53 f'Invalid todo priority "{priority}", must be one of {sorted(allowed)}.'
54 )
55 return priority
56
57
58@dataclass

Callers 2

_normalize_todosMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected