atef.tools.get_result_value_by_key
- atef.tools.get_result_value_by_key(result: ToolResult, key: str) Any [source]
Retrieve the value indicated by the dotted key name from the ToolResult.
Supports attributes of generic types, items (for mappings as in dictionaries), and iterables (by numeric index).
- Parameters:
- resultobject
The result dataclass instance.
- keystr
The (optionally) dotted key name.
- Returns:
- Any
The data found by the key.
- Raises:
- KeyError
If the key is blank or otherwise invalid.