Generate Upsonic Agent and Direct Graphs
default_agent
: The default agent to use for tasks that don’t specify their ownparallel_execution
: Whether to execute independent tasks in parallelmax_parallel_tasks
: Maximum number of tasks to execute in parallel (default: 4)show_progress
: Whether to display a progress bar during execution (default: True)Note: Tasks in a graph work exactly the same as regular Tasks in Upsonic. You can provide prompts, tools, and context just as you would with standalone tasks.
DecisionFunc
allows you to use a custom Python function to determine which path to take in your graph based on the output of previous tasks.
DecisionLLM
uses an AI model to make decisions based on the output of previous tasks, allowing for more complex decision-making without writing custom code.