Metadata-Version: 2.5
Name: a4ui-agent
Version: 0.1.0
Summary: Agent-side A2UI chart runtime for @haystackedai/a4react clients. One function (answer(prompt)->rows,answer) gives an AgentCore agent a validated, drillable A2UI chart surface — no a2ui-core, catalog assembly, surface-message building, validation or rechart/drill wiring to write. Contract (catalogId + schemas) is baked, overridable.
Requires-Python: >=3.10
Requires-Dist: a2ui-core<0.3.0,>=0.2.0
Requires-Dist: bedrock-agentcore>=1.9.1
Requires-Dist: pydantic>=2.7
Requires-Dist: strands-agents>=1.15.0
Provides-Extra: dev
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: pytest-asyncio; extra == 'dev'
Description-Content-Type: text/markdown

# a4ui-agent

Agent-side A2UI chart runtime for [`@haystackedai/a4react`](../A4React) clients.

Write one function — `answer(prompt) -> (rows, columns, text)` — and
`make_a4ui_agent(answer)` returns a ready AgentCore app that turns a prompt into a
validated, drillable A2UI chart surface. No `a2ui-core`, catalog assembly, surface-message
building, validation, or rechart/drill wiring to write. The contract (catalogId + schemas)
is baked and overridable.

```python
from a4ui_agent import make_a4ui_agent

def answer(prompt: str):
    rows, columns, text = my_data_lookup(prompt)
    return rows, columns, text

app = make_a4ui_agent(answer)          # deterministic charts, zero config
if __name__ == "__main__":
    app.run()
```

See **instruction_agent.md** for the full DO list, LLM mode, and the contract rules.
