Decision Tree¶
Cluster: Uncategorised | Type: component | MCP Tools: 8
Overview¶
Public API¶
DecisionTreeInput(BaseModel)¶
| Field | Type | Default |
|---|---|---|
op | Literal['run', 'ops', 'help'] | 'run' |
tree_yaml | str | '' |
context | dict | Field(default_factory=dict) |
DecisionTreeBlock(AIBlock[DecisionTreeInput, dict, dict])¶
Constructor:
| Parameter | Type | Default |
|---|---|---|
name | str | 'decision_tree' |
state | dict \| None | None |
Methods:
infer(data: DecisionTreeInput) -> Result[dict]¶
DecisionPath(BaseModel)¶
| Field | Type | Default |
|---|---|---|
tree_name | str | required |
visited | list[str] | Field(default_factory=list) |
recommendation | str | '' |
DecisionTreeRunner¶
Methods:
run(tree_yaml: str | Path, context: dict[str, object], planner: DecisionTreePlanner | None = None) -> DecisionPath¶
run_with_decision(tree_yaml: str | Path, context: dict[str, object], planner: DecisionTreePlanner | None = None) -> tuple[DecisionPath, DecisionTreeDecision]¶
MCP Tools¶
| Operation | Source |
|---|---|
ops | decision_tree_mcp |
help | decision_tree_mcp |
run | decision_tree_mcp |
list_strategies | decision_tree_mcp |
explain_recommendation | decision_tree_mcp |
list_patterns | decision_tree_mcp |
list_skills | decision_tree_mcp |
recommendation_confidence | decision_tree_mcp |