Intent Engine¶
Cluster: Uncategorised | Type: component | MCP Tools: None
Overview¶
Public API¶
IntentEngineInput(BaseModel)¶
| Field | Type | Default |
|---|---|---|
op | Literal['elicit', 'ops', 'help'] | 'elicit' |
initial_request | str | '' |
answers | dict | Field(default_factory=dict) |
prior | dict | Field(default_factory=dict) |
user_declined | bool | False |
IntentEngineBlock(AIBlock[IntentEngineInput, dict, dict])¶
Constructor:
| Parameter | Type | Default |
|---|---|---|
name | str | 'intent_engine' |
state | dict \| None | None |
Methods:
infer(data: IntentEngineInput) -> Result[dict]¶
list_patterns() -> dict¶
Read-only introspection of the deterministic applied-pattern + skill catalog.
IntentElicitor¶
Constructor:
| Parameter | Type | Default |
|---|---|---|
max_questions | int | 5 |
confidence_threshold | float | 0.82 |
Methods:
elicit(initial_request: str, answers: dict[str, object] | None = None, prior: IntentContract | None = None, user_declined: bool = False) -> IntentSession¶
Assumption(BaseModel)¶
| Field | Type | Default |
|---|---|---|
statement | str | required |
confidence | float | 0.5 |
source | Literal['explicit', 'inferred', 'fallback'] | 'fallback' |
IntentQuestion(BaseModel)¶
| Field | Type | Default |
|---|---|---|
field | str | required |
question | str | required |
reason | str | required |
IntentContract(GoalInput)¶
IntentSession(BaseModel)¶
| Field | Type | Default |
|---|---|---|
session_id | str | required |
initial_request | str | required |
questions | list[IntentQuestion] | Field(default_factory=list) |
contract | IntentContract | required |
ended_by | Literal['accepted', 'declined', 'idle_timeout', 'question_budget', 'confidence'] | 'confidence' |