Read algorithm source.

Functions

Func

execute_read_algorithm

Line 8
execute_read_algorithm(**kwargs) -> Dict[str, Any]

Read the source code of a user or built-in algorithm.

Backs the tuiml_read_algorithm tool; delegates to tuiml.agent.user_algorithms.read_source.

Parameters

name
str
Algorithm class name. Required (arrives via **kwargs, like all parameters below).
version
str = None
Specific version to read; defaults to the latest.
builtin
bool = False
Read a built-in TuiML algorithm instead of a user algorithm.

Returns

result
dict
Result dict from user_algorithms.read_source with status and the source code, or an error dict when name is missing.