From 51373c462d13a39ff944f91047e2fdd1bdce44d1 Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Tue, 22 Oct 2024 04:44:07 +0100 Subject: [PATCH] tweak examples readme --- examples/README.md | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/examples/README.md b/examples/README.md index f8fcdee8f..d942b9a23 100644 --- a/examples/README.md +++ b/examples/README.md @@ -7,12 +7,12 @@ Examples of how to use Pydantic AI and what it can do. To run the examples, run: ```bash -uv run -m examples. +uv run -m examples. ``` ## Examples -### `pydantic_model` +### `pydantic_model.py` Simple example of using Pydantic AI to construct a Pydantic model from a text input. @@ -27,15 +27,9 @@ with Gemini using: PYDANTIC_AI_MODEL=gemini-1.5-pro uv run -m examples.pydantic_model ``` -or +(or `PYDANTIC_AI_MODEL=gemini-1.5-flash...`) -```bash -PYDANTIC_AI_MODEL=gemini-1.5-flash uv run -m examples.pydantic_model -``` - -```bash - -### `sql_gen` +### `sql_gen.py` Example demonstrating how to use Pydantic AI to generate SQL queries based on user input. @@ -45,7 +39,7 @@ uv run -m examples.sql_gen This model uses `gemini-1.5-flash` by default since Gemini is good at single shot queries. -### `weather` +### `weather.py` Example of Pydantic AI with multiple tools which the LLM needs to call in turn to answer a question.