tooluniverse.compose_scripts.tool_graph_composer module¶
Simplified and fixed tool_graph_composer.py This version includes better error handling and avoids the ‘unhashable type’ issue.
- class tooluniverse.compose_scripts.tool_graph_composer.datetime(year, month, day[, hour[, minute[, second[, microsecond[, tzinfo]]]]])[source][source]¶
Bases:
date
The year, month and day arguments are required. tzinfo may be None, or an instance of a tzinfo subclass. The remaining arguments may be ints.
- now()[source]¶
Returns new datetime object representing current time local to tz.
- tz
Timezone object.
If no tz is specified, uses local timezone.
- isoformat()[source]¶
[sep] -> string in ISO 8601 format, YYYY-MM-DDT[HH[:MM[:SS[.mmm[uuu]]]]][+HH:MM]. sep is used to separate the year from the time, and defaults to ‘T’. The optional argument timespec specifies the number of additional terms of the time to include. Valid options are ‘auto’, ‘hours’, ‘minutes’, ‘seconds’, ‘milliseconds’ and ‘microseconds’.
- tooluniverse.compose_scripts.tool_graph_composer.compose(arguments, tooluniverse, call_tool)[source][source]¶
Compose function for building tool compatibility graphs.
- Parameters:
arguments – Dictionary with composition parameters
tooluniverse – ToolUniverse instance
call_tool – Function to call other tools
- Returns:
Dictionary with results and file paths