tool_store

This module contains the mosaic-orchestrator framework core functionality

class mosaic_orchestrator.tool_store.ToolHolder(base_class: Type, tool: Tool, used: bool)[source]

Simple holder class that marks used tools

base_class: Type
tool: Tool
used: bool

When True the tool is used by at least on of the tasks.

class mosaic_orchestrator.tool_store.ToolStore[source]

Holds all tools of a task hierarchy.

Can be used to get a list of used tools

get_tool(tool_type: Type[Tool]) Tool[source]
put(base_class: Union[Type[Tool], str], tool: Tool, overwrite: bool = False)[source]

add tool to store

set_used(tool_type: Type[Tool])[source]

set a tool to used

used_tools() List[Tool][source]

filter for used tools only