Skip to content

Commit afb835b

Browse files
authored
readme links (pydantic#622)
1 parent 72300ae commit afb835b

File tree

5 files changed

+30
-21
lines changed

5 files changed

+30
-21
lines changed

.github/workflows/ci.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
env:
1212
CI: true
1313
COLUMNS: 120
14+
UV_PYTHON: 3.12
1415

1516
permissions:
1617
contents: read
@@ -21,12 +22,12 @@ jobs:
2122
steps:
2223
- uses: actions/checkout@v4
2324

24-
- uses: astral-sh/setup-uv@v3
25+
- uses: astral-sh/setup-uv@v5
2526
with:
2627
enable-cache: true
2728

2829
- name: Install dependencies
29-
run: uv sync --python 3.12 --frozen --all-extras --all-packages --group lint
30+
run: uv sync --frozen --all-extras --all-packages --group lint
3031

3132
- uses: pre-commit/action@v3.0.0
3233
with:
@@ -43,12 +44,12 @@ jobs:
4344
steps:
4445
- uses: actions/checkout@v4
4546

46-
- uses: astral-sh/setup-uv@v3
47+
- uses: astral-sh/setup-uv@v5
4748
with:
4849
enable-cache: true
4950

5051
- name: Install dependencies
51-
run: uv sync --python 3.12 --frozen --no-dev --group lint
52+
run: uv sync --frozen --no-dev --group lint
5253

5354
- run: make typecheck-mypy
5455

@@ -57,11 +58,11 @@ jobs:
5758
steps:
5859
- uses: actions/checkout@v4
5960

60-
- uses: astral-sh/setup-uv@v3
61+
- uses: astral-sh/setup-uv@v5
6162
with:
6263
enable-cache: true
6364

64-
- run: uv sync --python 3.12 --frozen --group docs
65+
- run: uv sync --frozen --group docs
6566

6667
# always build docs to check it works without insiders packages
6768
- run: make docs
@@ -80,7 +81,7 @@ jobs:
8081
steps:
8182
- uses: actions/checkout@v4
8283

83-
- uses: astral-sh/setup-uv@v3
84+
- uses: astral-sh/setup-uv@v5
8485
with:
8586
enable-cache: true
8687

@@ -90,7 +91,6 @@ jobs:
9091

9192
- run: >
9293
uv run
93-
--python 3.12
9494
--frozen
9595
--package pydantic-ai-slim
9696
--extra openai
@@ -122,7 +122,7 @@ jobs:
122122
steps:
123123
- uses: actions/checkout@v4
124124

125-
- uses: astral-sh/setup-uv@v3
125+
- uses: astral-sh/setup-uv@v5
126126
with:
127127
enable-cache: true
128128

@@ -162,7 +162,7 @@ jobs:
162162
merge-multiple: true
163163
path: coverage
164164

165-
- uses: astral-sh/setup-uv@v3
165+
- uses: astral-sh/setup-uv@v5
166166
with:
167167
enable-cache: true
168168

@@ -205,7 +205,7 @@ jobs:
205205
steps:
206206
- uses: actions/checkout@v4
207207

208-
- uses: astral-sh/setup-uv@v3
208+
- uses: astral-sh/setup-uv@v5
209209
with:
210210
enable-cache: true
211211

.pre-commit-config.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ repos:
99
- id: end-of-file-fixer
1010
- id: trailing-whitespace
1111

12+
- repo: https://github.com/sirosen/texthooks
13+
rev: 0.6.8
14+
hooks:
15+
- id: fix-smartquotes
16+
- id: fix-spaces
17+
- id: fix-ligatures
18+
1219
- repo: local
1320
hooks:
1421
- id: format

Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ else ifeq ($(PPPR_TOKEN),)
8585
@exit 1
8686
else
8787
@echo 'installing insiders packages...'
88-
@uv pip install -U \
88+
@uv pip uninstall mkdocs-material mkdocstrings-python
89+
@uv pip install \
8990
--extra-index-url https://pydantic:${PPPR_TOKEN}@pppr.pydantic.dev/simple/ \
9091
mkdocs-material mkdocstrings-python
9192
endif
@@ -103,6 +104,7 @@ cf-pages-build: ## Install uv, install dependencies and build the docs, used on
103104
curl -LsSf https://astral.sh/uv/install.sh | sh
104105
uv python install 3.12
105106
uv sync --python 3.12 --frozen --group docs
107+
uv pip uninstall mkdocs-material mkdocstrings-python
106108
uv pip install -U \
107109
--extra-index-url https://pydantic:${PPPR_TOKEN}@pppr.pydantic.dev/simple/ \
108110
mkdocs-material mkdocstrings-python

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -37,26 +37,26 @@ We built PydanticAI with one simple aim: to bring that FastAPI feeling to GenAI
3737
Built by the team behind [Pydantic](https://docs.pydantic.dev/latest/) (the validation layer of the OpenAI SDK, the Anthropic SDK, LangChain, LlamaIndex, AutoGPT, Transformers, CrewAI, Instructor and many more).
3838

3939
* __Model-agnostic__
40-
Supports OpenAI, Anthropic, Gemini, Ollama, Groq, and Mistral, and there is a simple interface to implement support for [other models](models.md).
40+
Supports OpenAI, Anthropic, Gemini, Ollama, Groq, and Mistral, and there is a simple interface to implement support for [other models](https://ai.pydantic.dev/models/).
4141

4242
* __Pydantic Logfire Integration__
43-
Seamlessly [integrates](logfire.md) with [Pydantic Logfire](https://pydantic.dev/logfire) for real-time debugging, performance monitoring, and behavior tracking of your LLM-powered applications.
43+
Seamlessly [integrates](https://ai.pydantic.dev/logfire/) with [Pydantic Logfire](https://pydantic.dev/logfire) for real-time debugging, performance monitoring, and behavior tracking of your LLM-powered applications.
4444

4545
* __Type-safe__
46-
Designed to make type checking as useful as possible for you, so it [integrates](agents.md#static-type-checking) well with static type checkers, like [`mypy`](https://github.com/python/mypy) and [`pyright`](https://github.com/microsoft/pyright).
46+
Designed to make [type checking](https://ai.pydantic.dev/agents/#static-type-checking) as powerful and informative as possible for you.
4747

4848
* __Python-centric Design__
49-
Leverages Pythons familiar control flow and agent composition to build your AI-driven projects, making it easy to apply standard Python best practices you'd use in any other (non-AI) project
49+
Leverages Python's familiar control flow and agent composition to build your AI-driven projects, making it easy to apply standard Python best practices you'd use in any other (non-AI) project.
5050

5151
* __Structured Responses__
52-
Harnesses the power of [Pydantic](https://docs.pydantic.dev/latest/) to [validate and structure](results.md#structured-result-validation) model outputs, ensuring responses are consistent across runs.
52+
Harnesses the power of [Pydantic](https://docs.pydantic.dev/latest/) to [validate and structure](https://ai.pydantic.dev/results/#structured-result-validation) model outputs, ensuring responses are consistent across runs.
5353

5454
* __Dependency Injection System__
55-
Offers an optional [dependency injection](dependencies.md) system to provide data and services to your agent's [system prompts](agents.md#system-prompts), [tools](tools.md) and [result validators](results.md#result-validators-functions).
55+
Offers an optional [dependency injection](https://ai.pydantic.dev/dependencies/) system to provide data and services to your agent's [system prompts](https://ai.pydantic.dev/agents/#system-prompts), [tools](https://ai.pydantic.dev/tools/) and [result validators](https://ai.pydantic.dev/results/#result-validators-functions).
5656
This is useful for testing and eval-driven iterative development.
5757

5858
* __Streamed Responses__
59-
Provides the ability to [stream](results.md#streamed-results) LLM outputs continuously, with immediate validation, ensuring rapid and accurate results.
59+
Provides the ability to [stream](https://ai.pydantic.dev/results/#streamed-results) LLM outputs continuously, with immediate validation, ensuring rapid and accurate results.
6060

6161
## In Beta!
6262

docs/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ Supports OpenAI, Anthropic, Gemini, Ollama, Groq, and Mistral, and there is a si
2323
Seamlessly [integrates](logfire.md) with [Pydantic Logfire](https://pydantic.dev/logfire) for real-time debugging, performance monitoring, and behavior tracking of your LLM-powered applications.
2424

2525
:material-shield-check:{ .md .middle .secure-green }&nbsp;<strong class="vertical-middle">Type-safe</strong><br>
26-
Designed to make type checking as useful as possible for you, so it [integrates](agents.md#static-type-checking) well with static type checkers, like [`mypy`](https://github.com/python/mypy) and [`pyright`](https://github.com/microsoft/pyright).
26+
Designed to make [type checking](agents.md#static-type-checking) as powerful and informative as possible for you.
2727

2828
:snake:{ .md .middle }&nbsp;<strong class="vertical-middle">Python-centric Design</strong><br>
29-
Leverages Pythons familiar control flow and agent composition to build your AI-driven projects, making it easy to apply standard Python best practices you'd use in any other (non-AI) project
29+
Leverages Python's familiar control flow and agent composition to build your AI-driven projects, making it easy to apply standard Python best practices you'd use in any other (non-AI) project.
3030

3131
:simple-pydantic:{ .md .middle .pydantic-pink }&nbsp;<strong class="vertical-middle">Structured Responses</strong><br>
3232
Harnesses the power of [Pydantic](https://docs.pydantic.dev/latest/) to [validate and structure](results.md#structured-result-validation) model outputs, ensuring responses are consistent across runs.

0 commit comments

Comments
 (0)