From 2a02f6c934add0dda467d1f1b31b0ee1fd8225eb Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Mon, 16 Dec 2024 09:57:56 +0000 Subject: [PATCH 01/10] Alternative intro --- docs/index.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/index.md b/docs/index.md index a0927f64ea..7fd7ef8381 100644 --- a/docs/index.md +++ b/docs/index.md @@ -2,11 +2,13 @@ --8<-- "docs/.partials/index-header.html" -When I first found FastAPI, I got it immediately. I was excited to find something so innovative and ergonomic built on Pydantic. +**PydanticAI is a Python Agent Framework designed to make it less painful to build production grade applications with Generative AI.** -Virtually every Agent Framework and LLM library in Python uses Pydantic, but when we began to use LLMs in [Pydantic Logfire](https://pydantic.dev/logfire), I couldn't find anything that gave me the same feeling. +FastAPI revolutionized web development by offering an innovative and ergonomic design, built on the foundation of [Pydantic](https://docs.pydantic.dev). -PydanticAI is a Python Agent Framework designed to make it less painful to build production grade applications with Generative AI. +Similarly, virtually every Agent Framework and LLM library in Python uses Pydantic, yet when we began to use LLMs in [Pydantic Logfire](https://pydantic.dev/logfire), we couldn't find anything that gave me the same feeling. + +We built PydanticAI with one simple aim: to bring the same feeling you get building with FastAPI to GenAI app development. ## Why use PydanticAI From 530d94fb1e55dc76fcf1d209304bb9b6c2c18280 Mon Sep 17 00:00:00 2001 From: Sydney Runkle <54324534+sydney-runkle@users.noreply.github.com> Date: Mon, 16 Dec 2024 11:00:36 -0500 Subject: [PATCH 02/10] Update docs/index.md Co-authored-by: Bradley --- docs/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index 7fd7ef8381..6b1fa61080 100644 --- a/docs/index.md +++ b/docs/index.md @@ -6,7 +6,7 @@ FastAPI revolutionized web development by offering an innovative and ergonomic design, built on the foundation of [Pydantic](https://docs.pydantic.dev). -Similarly, virtually every Agent Framework and LLM library in Python uses Pydantic, yet when we began to use LLMs in [Pydantic Logfire](https://pydantic.dev/logfire), we couldn't find anything that gave me the same feeling. +Similarly, virtually every Agent Framework and LLM library in Python uses Pydantic, yet when we began to use LLMs in [Pydantic Logfire](https://pydantic.dev/logfire), we couldn't find anything that gave us the same feeling. We built PydanticAI with one simple aim: to bring the same feeling you get building with FastAPI to GenAI app development. From d93b6a9b01908788f6a2aeab36e98c66efe56cc4 Mon Sep 17 00:00:00 2001 From: Laura Summers Date: Mon, 16 Dec 2024 12:01:30 -0500 Subject: [PATCH 03/10] Adding a new emphasis style --- docs/extra/tweaks.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/extra/tweaks.css b/docs/extra/tweaks.css index c3250f8b60..942e476ed1 100644 --- a/docs/extra/tweaks.css +++ b/docs/extra/tweaks.css @@ -16,3 +16,9 @@ img.index-header { width: 70%; max-width: 500px; } + +.text-emphasis { + font-size: 1rem; + font-weight: 300; + font-style: italic; +} \ No newline at end of file From 82294dcee68acec12e2190b557fefecf8c3e51aa Mon Sep 17 00:00:00 2001 From: Laura Summers Date: Mon, 16 Dec 2024 12:10:58 -0500 Subject: [PATCH 04/10] Apply emphasis style --- docs/index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index 6b1fa61080..646eef8a1f 100644 --- a/docs/index.md +++ b/docs/index.md @@ -2,7 +2,9 @@ --8<-- "docs/.partials/index-header.html" -**PydanticAI is a Python Agent Framework designed to make it less painful to build production grade applications with Generative AI.** +

+PydanticAI is a Python Agent Framework designed to make it less painful to build production grade applications with Generative AI. +

FastAPI revolutionized web development by offering an innovative and ergonomic design, built on the foundation of [Pydantic](https://docs.pydantic.dev). From 98563cc4ff56cb8d87d4b4441f057780aea05005 Mon Sep 17 00:00:00 2001 From: Laura Summers Date: Mon, 16 Dec 2024 12:13:57 -0500 Subject: [PATCH 05/10] Fix lint --- docs/extra/tweaks.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/extra/tweaks.css b/docs/extra/tweaks.css index 942e476ed1..28c98a189d 100644 --- a/docs/extra/tweaks.css +++ b/docs/extra/tweaks.css @@ -21,4 +21,4 @@ img.index-header { font-size: 1rem; font-weight: 300; font-style: italic; -} \ No newline at end of file +} From 5be213d1b5bc09334c9842cb26fc583c9599a093 Mon Sep 17 00:00:00 2001 From: Laura Summers Date: Mon, 16 Dec 2024 12:16:11 -0500 Subject: [PATCH 06/10] Factor files so the html is all together --- docs/.partials/index-header.html | 5 +++++ docs/index.md | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/.partials/index-header.html b/docs/.partials/index-header.html index 0d77917819..0a088a6ff8 100644 --- a/docs/.partials/index-header.html +++ b/docs/.partials/index-header.html @@ -24,3 +24,8 @@ license

+ +

+ PydanticAI is a Python Agent Framework designed to make it less painful to build production grade applications with Generative AI. +

+ \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index 646eef8a1f..3d8a3e1760 100644 --- a/docs/index.md +++ b/docs/index.md @@ -2,10 +2,6 @@ --8<-- "docs/.partials/index-header.html" -

-PydanticAI is a Python Agent Framework designed to make it less painful to build production grade applications with Generative AI. -

- FastAPI revolutionized web development by offering an innovative and ergonomic design, built on the foundation of [Pydantic](https://docs.pydantic.dev). Similarly, virtually every Agent Framework and LLM library in Python uses Pydantic, yet when we began to use LLMs in [Pydantic Logfire](https://pydantic.dev/logfire), we couldn't find anything that gave us the same feeling. From f0c37454cac6eaf894b3f277c7e331b8495e251c Mon Sep 17 00:00:00 2001 From: Laura Summers Date: Mon, 16 Dec 2024 12:18:09 -0500 Subject: [PATCH 07/10] Fix lint --- docs/.partials/index-header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/.partials/index-header.html b/docs/.partials/index-header.html index 0a088a6ff8..22cdb6cfc7 100644 --- a/docs/.partials/index-header.html +++ b/docs/.partials/index-header.html @@ -28,4 +28,4 @@

PydanticAI is a Python Agent Framework designed to make it less painful to build production grade applications with Generative AI.

- \ No newline at end of file + \ No newline at end of file From ae8048fbca637839f6c47a3b6d6f73c10bf19a94 Mon Sep 17 00:00:00 2001 From: Laura Summers Date: Mon, 16 Dec 2024 12:19:44 -0500 Subject: [PATCH 08/10] Prettier file --- docs/.partials/index-header.html | 46 ++++++++++++++++++++++++-------- 1 file changed, 35 insertions(+), 11 deletions(-) diff --git a/docs/.partials/index-header.html b/docs/.partials/index-header.html index 22cdb6cfc7..dec6f0ec5e 100644 --- a/docs/.partials/index-header.html +++ b/docs/.partials/index-header.html @@ -1,31 +1,55 @@
- PydanticAI + PydanticAI
- PydanticAI + PydanticAI

Agent Framework / shim to use Pydantic with LLMs

- - CI + + CI - - Coverage + + Coverage - PyPI + PyPI - versions + versions - license + license

- PydanticAI is a Python Agent Framework designed to make it less painful to build production grade applications with Generative AI. + PydanticAI is a Python Agent Framework designed to make it less painful to + build production grade applications with Generative AI.

- \ No newline at end of file From eec7f65396667dc668fcf24ebb24970d63f6203b Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Mon, 16 Dec 2024 21:17:02 +0000 Subject: [PATCH 09/10] feedback and fix docs build --- README.md | 10 +++++--- docs/.partials/index-header.html | 44 ++++++++------------------------ docs/index.md | 7 +++-- 3 files changed, 21 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index 1775b8dd89..d701b9988f 100644 --- a/README.md +++ b/README.md @@ -23,16 +23,18 @@ --- -When I first found FastAPI, I got it immediately. I was excited to find something so innovative and ergonomic built on Pydantic. +PydanticAI is a Python agent framework designed to make it less painful to build production grade applications with Generative AI. -Virtually every Agent Framework and LLM library in Python uses Pydantic, but when we began to use LLMs in [Pydantic Logfire](https://pydantic.dev/logfire), I couldn't find anything that gave me the same feeling. +FastAPI revolutionized web development by offering an innovative and ergonomic design, built on the foundation of [Pydantic](https://docs.pydantic.dev). -PydanticAI is a Python Agent Framework designed to make it less painful to build production grade applications with Generative AI. +Similarly, virtually every agent framework and LLM library in Python uses Pydantic, yet when we began to use LLMs in [Pydantic Logfire](https://pydantic.dev/logfire), we couldn't find anything that gave us the same feeling. + +We built PydanticAI with one simple aim: to bring that FastAPI feeling to GenAI app development. ## Why use PydanticAI * Built by the team behind Pydantic (the validation layer of the OpenAI SDK, the Anthropic SDK, LangChain, LlamaIndex, AutoGPT, Transformers, CrewAI, Instructor and many more) -* Model-agnostic — currently OpenAI, Gemini, Anthropic, Groq, and Mistral are supported. And there is a simple interface to implement support for other models. +* [Model-agnostic](https://ai.pydantic.dev/models/) — currently OpenAI, Anthropic, Gemini, Ollama, Groq, and Mistral are supported, and there is a simple interface to implement support for other models. * [Type-safe](https://ai.pydantic.dev/agents/#static-type-checking) * Control flow and agent composition is done with vanilla Python, allowing you to make use of the same Python development best practices you'd use in any other (non-AI) project * [Structured response](https://ai.pydantic.dev/results/#structured-result-validation) validation with Pydantic diff --git a/docs/.partials/index-header.html b/docs/.partials/index-header.html index dec6f0ec5e..9620376fbf 100644 --- a/docs/.partials/index-header.html +++ b/docs/.partials/index-header.html @@ -1,55 +1,31 @@
- PydanticAI + PydanticAI
- PydanticAI + PydanticAI

Agent Framework / shim to use Pydantic with LLMs

- - CI + + CI - - Coverage + + Coverage - PyPI + PyPI - versions + versions - license + license

- PydanticAI is a Python Agent Framework designed to make it less painful to + PydanticAI is a Python agent framework designed to make it less painful to build production grade applications with Generative AI.

diff --git a/docs/index.md b/docs/index.md index 3d8a3e1760..a9b4dfadb1 100644 --- a/docs/index.md +++ b/docs/index.md @@ -2,11 +2,14 @@ --8<-- "docs/.partials/index-header.html" +PydanticAI is a Python Agent Framework designed to make it less painful to +build production grade applications with Generative AI. + FastAPI revolutionized web development by offering an innovative and ergonomic design, built on the foundation of [Pydantic](https://docs.pydantic.dev). -Similarly, virtually every Agent Framework and LLM library in Python uses Pydantic, yet when we began to use LLMs in [Pydantic Logfire](https://pydantic.dev/logfire), we couldn't find anything that gave us the same feeling. +Similarly, virtually every agent framework and LLM library in Python uses Pydantic, yet when we began to use LLMs in [Pydantic Logfire](https://pydantic.dev/logfire), we couldn't find anything that gave us the same feeling. -We built PydanticAI with one simple aim: to bring the same feeling you get building with FastAPI to GenAI app development. +We built PydanticAI with one simple aim: to bring that FastAPI feeling to GenAI app development. ## Why use PydanticAI From 33940cc0c26d4534a67a103f4a311ab968f76601 Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Mon, 16 Dec 2024 21:23:48 +0000 Subject: [PATCH 10/10] disable lightbox on logo --- docs/.partials/index-header.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/.partials/index-header.html b/docs/.partials/index-header.html index 9620376fbf..8da53b01d7 100644 --- a/docs/.partials/index-header.html +++ b/docs/.partials/index-header.html @@ -1,8 +1,8 @@
- PydanticAI + PydanticAI
- PydanticAI + PydanticAI

Agent Framework / shim to use Pydantic with LLMs