Metadata-Version: 2.1
Name: promptbuilder
Version: 0.1.2
Summary: Library for building prompts for LLMs
Home-page: https://github.com/kapulkin/promptbuilder
Author: Kapulkin Stanislav
Author-email: kapulkin@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pydantic
Requires-Dist: aisuite

# Prompt Builder

Library for building prompts for LLMs.

## Installation

From PyPI:
```bash
pip install promptbuilder
```

From source:
```bash
git clone https://github.com/kapulkin/promptbuilder.git
cd promptbuilder
pip install -e .
```

## Features

- Prompt templates with variables and content tags
- Structured output with TypeScript-like schema definition
- LLM client with native structured output support and caching option
- Integration with multiple LLM providers through aisuite

## Quick Start

```python
from promptbuilder.llm_client import LLMClient
from promptbuilder.prompt_builder import PromptBuilder

# Build prompt template
prompt_template = PromptBuilder() \
    .text("What is the capital of ").variable("country").text("?") \
    .build()

# Use with LLM
llm_client = LLMClient(model="your-model", api_key="your-api-key")
response = llm_client.make_request(
    prompt_template.render(country="France")
)
print(response)
```

See examples for more details.

## License

MIT License - see LICENSE file for details.

## Contributing

Contributions are welcome! Please feel free to submit a pull request.
