plan_generator¶
Typed statistical plans over the providers' shared synchronous prompt API.
request_fitted_plan(client, column_info, column_descriptions, task_description, domain, max_rules, has_target)
¶
Request and validate one bounded plan, never executing provider text.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
client
|
FeatureClient
|
Trusted synchronous provider with send_prompt support. SemanticEngine selects isolated_plan=True for Copilot; other backends use tool-free chat completions. Explicitly injected test clients are trusted. |
required |
column_info
|
dict
|
Original column names and dtypes, without data samples. |
required |
column_descriptions
|
dict
|
Human-readable column meanings. |
required |
task_description
|
str
|
Prediction context. |
required |
domain
|
str or None
|
Optional domain context. |
required |
max_rules
|
int
|
Maximum rules accepted (also capped at 100). |
required |
has_target
|
bool
|
Whether supervised target_mean rules may be proposed. |
required |
Returns:
| Type | Description |
|---|---|
list[FittedRuleSpec]
|
Strictly validated, allowlisted rules. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the response is malformed or exceeds the requested rule budget. Provider errors propagate without fallback or fabricated features. |