climb.tool package¶
Subpackages¶
- climb.tool.impl package
- Subpackages
- Submodules
- climb.tool.impl.sub_agents module
- climb.tool.impl.tool_autoprognosis module
AutoprognosisClassificationAutoprognosisClassificationTrainTestAutoprognosisRegressionAutoprognosisRegressionTrainTestAutoprognosisSubgroupEvaluationAutoprognosisSurvivalAutoprognosisSurvivalTrainTestBasicProgressReportautoprognosis_classification()autoprognosis_classification_train_test()autoprognosis_regression()autoprognosis_regression_train_test()autoprognosis_subgroup_evaluation()autoprognosis_survival()autoprognosis_survival_train_test()
- climb.tool.impl.tool_autoprognosis_explainers module
- climb.tool.impl.tool_balance_data module
- climb.tool.impl.tool_conformal_prediction module
- climb.tool.impl.tool_data_centric module
- climb.tool.impl.tool_data_suite module
- climb.tool.impl.tool_descriptive_stats module
- climb.tool.impl.tool_exploratory_data_analysis module
- climb.tool.impl.tool_feature_extraction_from_text module
- climb.tool.impl.tool_feature_importance module
- climb.tool.impl.tool_feature_selection module
- climb.tool.impl.tool_hardware module
- climb.tool.impl.tool_imputation module
- climb.tool.impl.tool_paper module
- climb.tool.impl.tool_smart_testing module
- climb.tool.impl.tool_upload module
- Module contents
- climb.tool.impl_agpl package
Submodules¶
climb.tool.tool_comms module¶
- class climb.tool.tool_comms.ToolThread(*args: Any, **keywords: Any)[source]¶
Bases:
Thread- SYSTEM_EXIT_MSG = 'ThreadWithTrace killed'¶
- join(timeout: int | None = None) None[source]¶
Wait until the thread terminates.
This blocks the calling thread until the thread whose join() method is called terminates – either normally or through an unhandled exception or until the optional timeout occurs.
When the timeout argument is present and not None, it should be a floating point number specifying a timeout for the operation in seconds (or fractions thereof). As join() always returns None, you must call is_alive() after join() to decide whether a timeout happened – if the thread is still alive, the join() call timed out.
When the timeout argument is not present or None, the operation will block until the thread terminates.
A thread can be join()ed many times.
join() raises a RuntimeError if an attempt is made to join the current thread as that would cause a deadlock. It is also an error to join() a thread before it has been started and attempts to do so raises the same exception.
- start(std_q: Queue, exc_q: Queue, backup_output_file_path: str) None[source]¶
Start the thread’s activity.
It must be called at most once per thread object. It arranges for the object’s run() method to be invoked in a separate thread of control.
This method will raise a RuntimeError if called more than once on the same thread object.
- climb.tool.tool_comms.execute_tool(tool_func: Callable, wd: str, **kwargs: Any) Tuple[ToolThread, Iterable[str | ToolOutput]][source]¶
- climb.tool.tool_comms.live_output_iterable(thread: ToolThread, comm_q: Queue, exc_q: Queue, std_q: Queue, return_holder: ToolOutput, wd: str) Iterable[str | ToolOutput][source]¶
climb.tool.tools module¶
- class climb.tool.tools.ToolBase[source]¶
Bases:
ABC- abstract property description_for_user: str¶
A description of what this tool does, for the user. Should make sense in the context: “This tool <description_for_user>.”
- property logs_useful: bool¶
Return True if the logs of this tool are especially useful for the LLM to understand what has been done.
This will be used by the engine to determine whether to shorten the logs if needed for token reasons etc. This is up to the engine’s discretion, this property just provides a hint.
The user will always be able to see the full logs.
- Returns:
True if the logs of this tool are especially useful for the LLM to understand what has been done.
- Return type:
- receive_user_inputs_requested(user_input: UserInputRequest | None) None[source]¶
- property user_input_requested: List[UserInputRequest]¶
Module contents¶
- class climb.tool.ToolBase[source]¶
Bases:
ABC- abstract property description_for_user: str¶
A description of what this tool does, for the user. Should make sense in the context: “This tool <description_for_user>.”
- property logs_useful: bool¶
Return True if the logs of this tool are especially useful for the LLM to understand what has been done.
This will be used by the engine to determine whether to shorten the logs if needed for token reasons etc. This is up to the engine’s discretion, this property just provides a hint.
The user will always be able to see the full logs.
- Returns:
True if the logs of this tool are especially useful for the LLM to understand what has been done.
- Return type:
- receive_user_inputs_requested(user_input: UserInputRequest | None) None[source]¶
- property user_input_requested: List[UserInputRequest]¶
- class climb.tool.UserInputRequest(*, key: str, kind: Literal['text', 'file', 'multiple_files'], description: str | None = None, extra: Dict[str, Any] = {})[source]¶
Bases:
BaseModel- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].