Metadata-Version: 2.4
Name: swarmauri_tool_askuser
Version: 0.1.0
Summary: Collect validated human input through an application-provided handler.
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Keywords: swarmauri,sdk,askuser,tools
Author: Jacob Stewart
Author-email: jacob@swarmauri.com
Requires-Python: >=3.10,<3.15
Classifier: Development Status :: 1 - Planning
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: License :: OSI Approved :: Apache Software License
Requires-Dist: jsonschema (>=4.18)
Requires-Dist: swarmauri_base (>=0.11.0.dev6,<0.12)
Requires-Dist: swarmauri_standard (>=0.11.0.dev8,<0.12)
Project-URL: Repository, https://github.com/swarmauri/swarmauri-sdk
Description-Content-Type: text/markdown

# AskUserTool

![Swarmauri](https://github.com/swarmauri/swarmauri-sdk/blob/3d4d1cfa949399d7019ae9d8f296afba773dfb7f/assets/swarmauri.brand.theme.svg)

[![Downloads](https://img.shields.io/pypi/dm/swarmauri_tool_askuser)](https://pepy.tech/projects/swarmauri_tool_askuser)
[![Hits](https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_tool_askuser.svg)](https://github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_tool_askuser)
[![Python](https://img.shields.io/pypi/pyversions/swarmauri_tool_askuser)](https://pypi.org/project/swarmauri_tool_askuser/)
[![License](https://img.shields.io/pypi/l/swarmauri_tool_askuser)](LICENSE)
[![Release](https://img.shields.io/pypi/v/swarmauri_tool_askuser?label=swarmauri_tool_askuser&color=green)](https://pypi.org/project/swarmauri_tool_askuser/)

Collect validated human input through an application-provided handler.

## Features

- Collect validated human input through an application-provided handler.
- Supports Python 3.10 through 3.12.

## Installation

```sh
uv add swarmauri_tool_askuser
pip install swarmauri_tool_askuser
```

## Usage

```python
from swarmauri_tool_askuser import AskUserTool

ask = AskUserTool(input_handler=lambda question: input(question.content + " "))
answer = ask("Which package?", choices=["core", "base"])
print(answer.answer)
```

