kodeagent.kutils.parse_param_descriptions#

kodeagent.kutils.parse_param_descriptions(doc: str) dict[str, str][source]#

Extract per-parameter descriptions from a docstring.

Supports Google-style (Args:) and Sphinx-style (:param name:) formats.

Parameters:

doc – The docstring to parse.

Returns:

A dictionary mapping parameter names to their descriptions.