Skip to main content

Quickstart

Install

Or with Poetry:

Configure a Model

Create provider.json in your project root:
This works with any OpenAI-compatible endpoint — OpenRouter, Together, local vLLM, etc.

Your First LLM Function

That’s it. The decorator:
  1. Builds a system prompt from the docstring + parameter types + return type schema
  2. Sends the function arguments as the user message
  3. Parses the LLM response into your Pydantic model
No message lists, no JSON mode flags, no output parsers.

Direct Construction (No provider.json)

For quick scripts, construct the model directly:

What’s Next

Build a Tool-Using Agent

Add tools and see the ReAct loop in action.

Build a Multi-Turn Chat

History management, streaming, and stateful conversations.