attune-forms
Dynamic forms library for AI-agent <-> user communication: a declarative,
surface-agnostic FormSchema artifact, renderers for every surface the
agent might be on, and template-driven intake generation.
Extracted from attune-ai's
elicitation subsystem (the elicitation-form-surface and
workflow-intake-forms specs); attune-ai consumes this package.
What it does
- One artifact —
FormSchema/FormQuestionbuilt from plain data viaform_from_dict, with build-time validation. - Question types — text, single/multi select, boolean, number, date,
textarea, plus the communication-grammar constructs:
decision(recommended option + rationale + per-option tradeoffs),pushback(structured disagreement),progress(status report with a blocked-item picker). - Renderers —
form_to_widget_html(self-contained interactive widget with postback),form_to_askuserquestion(batched payloads),form_to_elicitation_schema(native MCP elicitation). - Surface routing —
select_form_surfacepicks widget vs fallback; keyboard-mode opt-out persisted per project. - Validation —
collect_form_responsevalidates answers (required + option membership) and never silently accepts malformed input. - Intake templates —
FormTemplate+FieldSlotgenerate a workflow's intake form at ask-time from named candidate providers (PROVIDERS); build-time boundary rules reject invalid templates. - Telemetry — local-only surface-decision log (
form_events), disabled viaDO_NOT_TRACKorATTUNE_FORM_TELEMETRY=0.
Install
pip install attune-forms
Quick start
from attune_forms import form_from_dict, select_form_surface, form_to_widget_html
form = form_from_dict({
"title": "Security audit scope",
"fields": [
{"id": "path", "type": "text_input", "label": "Which path?"},
{"id": "depth", "type": "single_select", "label": "How deep?",
"options": ["quick", "standard", "thorough"]},
],
})
if select_form_surface(form) == "widget":
html = form_to_widget_html(form) # render on your widget surface
Host integration seams
Workflow-bound intake templates need two host hooks:
import attune_forms.intake_template as it
it.WORKFLOW_SCHEMA_RESOLVER = my_schema_resolver # name -> input schema
it.TEMPLATE_LOADERS.append(my_registration_loader) # imports template modules
License
Apache 2.0. Copyright 2026 Smart AI Memory.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file attune_forms-0.3.0.tar.gz.
File metadata
- Download URL: attune_forms-0.3.0.tar.gz
- Upload date:
- Size: 88.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa5626ad5641d0609286e7b44896bbbdc519a133a2dafd64def150daedb06e3a
|
|
| MD5 |
7aba7d4e01c8206587c5a78a363292eb
|
|
| BLAKE2b-256 |
519e2035f82cbc076678a83dddbac3f23ee2321b703d6ec05b6c5b2decc115b7
|
Provenance
The following attestation bundles were made for attune_forms-0.3.0.tar.gz:
Publisher:
publish.yml on Smart-AI-Memory/attune-forms
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
attune_forms-0.3.0.tar.gz -
Subject digest:
aa5626ad5641d0609286e7b44896bbbdc519a133a2dafd64def150daedb06e3a - Sigstore transparency entry: 2440431251
- Sigstore integration time:
-
Permalink:
Smart-AI-Memory/attune-forms@67c8775d3b79cfbabc491c8e3b7d023e67ad6298 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/Smart-AI-Memory
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@67c8775d3b79cfbabc491c8e3b7d023e67ad6298 -
Trigger Event:
push
-
Statement type:
File details
Details for the file attune_forms-0.3.0-py3-none-any.whl.
File metadata
- Download URL: attune_forms-0.3.0-py3-none-any.whl
- Upload date:
- Size: 56.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75d637350d1a58b72b79685676e5dcf85fcbf2c7f207e945714c58426b69eb67
|
|
| MD5 |
bc959addf9b2945cc5058323210c8330
|
|
| BLAKE2b-256 |
e7af172c8ed7ca9e464339a70c51fa5a0ad6ca5e3ae39d5e1ffab36a2ef39a24
|
Provenance
The following attestation bundles were made for attune_forms-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on Smart-AI-Memory/attune-forms
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
attune_forms-0.3.0-py3-none-any.whl -
Subject digest:
75d637350d1a58b72b79685676e5dcf85fcbf2c7f207e945714c58426b69eb67 - Sigstore transparency entry: 2440431410
- Sigstore integration time:
-
Permalink:
Smart-AI-Memory/attune-forms@67c8775d3b79cfbabc491c8e3b7d023e67ad6298 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/Smart-AI-Memory
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@67c8775d3b79cfbabc491c8e3b7d023e67ad6298 -
Trigger Event:
push
-
Statement type: