Overview of promptic features
mainpromptic is designed to be a productive and pythonic library for LLM application development. It leverages LiteLLM to prevent provider lock-in, allowing you to switch LLM providers by changing a single line of code.
Key features include:
- Type-safe structured outputs: Uses Pydantic for reliable data extraction.
- Agent building: Easy implementation of agents using function calling.
- Streaming: Built-in support for real-time response streaming.
- Prompt caching: Automatic caching for supported models to reduce latency and cost.
- Conversation memory: Built-in mechanisms to manage chat history.