Domain Prototype¶
Cluster: Uncategorised | Type: component | MCP Tools: None
Overview¶
Public API¶
DomainPrototypeBlock(AIBlock[DomainPrototypeInput, dict, dict])¶
Constructor:
| Parameter | Type | Default |
|---|---|---|
name | str | 'domain_prototype' |
state | dict \| None | None |
Methods:
infer(data: DomainPrototypeInput) -> Result[dict]¶
ExpertExample(BaseModel)¶
| Field | Type | Default |
|---|---|---|
input | str | '' |
expected_output | str | '' |
domain | str | '' |
notes | str | '' |
constraints | list[str] | Field(default_factory=list) |
forbidden | list[str] | Field(default_factory=list) |
DomainPrototypeInput(BaseModel)¶
| Field | Type | Default |
|---|---|---|
op | Literal['prototype_from_example', 'ops', 'help'] | 'prototype_from_example' |
example | ExpertExample | Field(default_factory=ExpertExample) |
DraftHarness(BaseModel)¶
A reusable workflow harness draft generated from one expert example (qualified-draft).
| Field | Type | Default |
|---|---|---|
status | Literal['blocked', 'qualified_draft'] | 'qualified_draft' |
reason | str | '' |
rules | list[str] | Field(default_factory=list) |
assumptions | list[str] | Field(default_factory=list) |
eval_criteria | list[str] | Field(default_factory=list) |
ambiguous | bool | False |
validation_request | str | '' |
requires_expert_acceptance | bool | True |
llm_used | bool | False |